mIRC Home    About    Download    Register    News    Help

Print Thread
#164341 10/11/06 08:49 PM
Joined: Oct 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Oct 2006
Posts: 10
Hey i got this script but it doesn't work.. why not?

Code:
   on *:TEXT:!death *:#:{
    /set %dead $rand(1,15)
    if (%dead == 1) { describe $chan grabs a feather and kills $2 by tickling! }
    if (%dead == 2) { describe $chan grabs a set of knifes and throws them into $2 $+ 's face! }
    if (%dead == 3) { describe $chan throws a piano towards $2 $+ ! }
    if (%dead == 4) { describe $chan sneaks up behind $2 and says: Boo! $2 freezes and dies. }
    if (%dead == 5) { describe $chan asks $2 to shake hands. $2 agreed. $me took an electric cable and gave it to $2. BzZzT. $2 $+ 's dead! }
    if (%dead == 6) { describe $chan turns into a ninja and throws shurikens to $2 $+ ! }
    if (%dead == 7) { describe $chan let $2 game everyday day untill $2 passed away! }
    if (%dead == 8) { describe $chan cuts $2 $+ 's wrists! }
    if (%dead == 9) { describe $chan chops $2 $+ 's head off. }
    if (%dead == 10) { describe $chan grabs a chainsaw and cuts $2 to pieces! }
    if (%dead == 11) { describe $chan grabs $2 $+ 's tongue and wraps it around $2 $+ 's neck! $2 chokes to death! }
    if (%dead == 12) { describe $chan pokes $2 $+ 's eyes out with a spoon! }
    if (%dead == 13) { describe $chan takes out her voodoo dol and cuts it in half. $2 $+ 's body cuts in half too! }
    if (%dead == 14) { describe $chan rips $2 $+ 's chest open, grabs the heart and eats it! }
    if (%dead == 15) { describe $chan casts zombies which eat $2 $+ 's brains! }  
  } 

#164342 10/11/06 09:25 PM
Joined: Nov 2004
Posts: 842
Hoopy frood
Offline
Hoopy frood
Joined: Nov 2004
Posts: 842
Is there another on *:text: event in the same script that might be conflicting wif that one?


What do you do at the end of the world? Are you busy? Will you save us?
#164343 10/11/06 09:32 PM
Joined: Oct 2006
Posts: 10
S
Pikka bird
OP Offline
Pikka bird
S
Joined: Oct 2006
Posts: 10
Oh i just needed to add a script window x)

Thanks for your help though. smile

#164344 11/11/06 09:19 PM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
/set %dead $rand(1,15)

change that to

/var %dead = $rand(1,15)

unless u have some reason for storing the last %dead value used (which doesnt look like its the case)
Using the /VAR command means the variable exists only in the script it was created in, and well be deleted when that script ends. (u do need to have the = in there tho)

PS: the / is not needed in any script files by the way /set /var /describe is all the same as var set describe etc.


Link Copied to Clipboard