MappingHell

Archive => The Mega Archive => Resources => Topic started by: Lazy Kat on November 04, 2011, 11:31:34 PM

Title: Query on timed death script
Post by: Lazy Kat on November 04, 2011, 11:31:34 PM
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
Title: Re: Query on timed death script
Post by: Pupskuchen on November 05, 2011, 12:09:03 AM

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

explode = [
  echo "Exploding in..."
  count 10
  sleep 10000 [sound 6; kill; echo "BoOm"]
]
Title: Re: Query on timed death script
Post by: Lazy Kat on November 05, 2011, 12:42:13 AM
Ill do it later when I UNDERFUCKINGLOVE IT!
Title: Re: Query on timed death script
Post by: Zoocata on November 05, 2011, 01:21:23 AM
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"]
]
Title: Re: Query on timed death script
Post by: Lazy Kat on November 08, 2011, 05:28:22 AM
Is this in a single line of binding?
Title: Re: Query on timed death script
Post by: Apollo on November 09, 2011, 02:10:15 AM
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.