Query on timed death script

Started by Lazy Kat, November 04, 2011, 11:31:34 PM

Previous topic - Next topic

Lazy Kat

Hey guys I have a question that I'd like to have, that will do a countdown before I die.

I tried:
/bind K [say *Self-Destruct in 10* ; sleep 50 ; say *9* etc....]
I got this:
Garm_Kralljj: *Self-destruct in 10*
Garm_Kralljj: *9*
Garm_Kralljj: etc
The result: There was no time gaps between the numbers, and I never finished the bind.

My Query: How would you set a timed suicide script, so I sound like a robot killing myself? I would like this for it is neat :D
Meowy Chwysmiss

Pupskuchen


count = [ loop i $arg1 [ sleep (* $i 1000) [ echo (- @arg1 @i) ] ] ]

explode = [
  echo "Exploding in..."
  count 10
  sleep 10000 [sound 6; kill; echo "BoOm"]
]

Lazy Kat

Ill do it later when I UNDERFUCKINGLOVE IT!
Meowy Chwysmiss

Zoocata

fixed the sound :P
count = [ loop i $arg1 [ sleep (* $i 1000) [ echo (- @arg1 @i) ] ] ]

explode = [
  echo "Exploding in..."
  count 10
  sleep 10000 [sound 7; kill; echo "BoOm"]
]

Lazy Kat

Is this in a single line of binding?
Meowy Chwysmiss

Apollo

Garm
He created a function called count, which is simply a timer.
'Explode' calls the timer, which counts down, and then the rest of the explode script executes after the sleep time initiating the sound and what else have you.

Save the script somewhere.

Call /explode in-game or bind explode to a key or alias if you feel necessary.

If I could rearrange the alphabet, I'd put your sister and I side by side.

Heav’n hath no rage like love to hatred turn’d, Nor Hell a fury, like a woman scorn’d.