Steal random item from user

By dull on Apr 28, 2008

With this script, users can steal random objects from users... (But you dont have to enter a nickname, could be a normal name too.)
To use it, write down -steal- <(nick)name>

(You yourself cannot use it... sorry for that
you can use it by putting yourself two times in the channel you are in.)

on *:TEXT:-steal-*:#:{
  { describe # 1,0 sneaks up to $2 without $2 noticing. | describe # 0,1disappears, then reappearing in back of $2 as he grabs into the pockets of $2 }
  /set %lulz $rand(1,15)
  if (%lulz == 1) { describe # 1,0has stolen a condom?! }
  if (%lulz == 2) { describe # 1,0has stolen a pack of sigarettes.. Yuck. }
  if (%lulz == 3) { describe # 1,0has stolen a rotten apple. }
  if (%lulz == 4) { describe # 1,0has stolen a joint. }
  if (%lulz == 5) { describe # 1,0has stolen a mini book of black magic... Suspicious. }
  if (%lulz == 6) { describe # 1,0has stolen a GBA Advance. }
  if (%lulz == 7) { describe # 1,0has stolen used bandages. }
  if (%lulz == 8) { describe # 1,0has stolen pepper spray... }
  if (%lulz == 9) { describe # 1,0has stolen 50 bucks!!! }
  if (%lulz == 10) { describe # 1,0has stolen a pot of nails... }
  if (%lulz == 11) { describe # 1,0has stolen fish remains... Phew they smell. }
  if (%lulz == 12) { describe # 1,0has stolen a mars bar! But it's half molten. }
  if (%lulz == 13) { describe # 1,0has stolen pieces of broken glass... }
  if (%lulz == 14) { describe # 1,0has stolen a note with... Login information! It's for... mIRC!! WOOH!! }
  if (%lulz == 15) { describe # 1,0has stolen an overdated condom?! GROSS. }
}

Comments

Sign in to comment.
EL   -  Apr 30, 2008

Haha i left my bots nick in there ..der yeah replace \"Eve\" with your nickname or just that that part out an any one can access the command.Sorry about that lol she helps me test everything -,,

 Respond  
EL   -  Apr 30, 2008

@ Viper,Its common that people do not read the descriptions and fail caues they cant hardly read the code either so..Best thing you can do is add a \'\'On *:LOAD: \'\' event so they are notified of what they need to do such as this small example i just made:

on *:LOAD: { 
  if (%_Test_File) { halt }
  var %_Test = $Input(Please type a file name that you would like your data to be sent and called from here.,yeuw,Please Create A File)
  write %_Test $+ .txt
  $Input(The file name \" $+ %_Test $+ \" has been created.Please type !test <Text> to add data to the file to be called and stored.,io,File Created!)
  set %_Test_File   %_Test $+ .txt
}

on *:TEXT:*:#: {
  if ($nick == Eve) && ($strip($1) == !Test) {
    if (!$strip($2)) { .notice $nick Please type something after !test | halt }
    write %_Test_File $strip($2-)
    .notice $nick $strip($2-) has been added to the file  $+ %_Test_File $+ .
  }
}

So more often then not people dont understand what to do so try to be clear and not half ass descriptions.Remember others are useing this an may need good instructions other wise they fail an you fail with them.Half the code is coding the other half is makin it useful an easy to sue for others in the case you have released it.`-.-

 Respond  
Viper01   -  Apr 30, 2008

criminal\'s idea is a good one as well, my Mortal Kombat Kicker(which is somewhere on this site...) reads from a .txt file to function. I give people the script and they try using it before they find out that they need a txt file for it to read from ;(

 Respond  
dull   -  Apr 30, 2008

LOL! okay thanx for the tips all :)

 Respond  
Jonesy44   -  Apr 29, 2008
  • Jonesy44 throws an overdated condom at dull

use locals instead of gloabals :P
they are a hell of a lot more helpfull sometimes :D

 Respond  
criminal   -  Apr 29, 2008

You should write the messages in a file :)
makes the snippet alot smaller
$read(stolen.txt)
( reads a random line from the file )
/help <- Helps alot.

 Respond  
dull   -  Apr 28, 2008

Okay! Thank you for the advice.
I\'m kinda new to making IRC scripts, so it\'s still hard for me. Haha...

 Respond  
Viper01   -  Apr 28, 2008

instead of using global variables, try using:

Var %lulz $r(1,5)

also, you don\'t have to use the opening brackets after every \'If (%lulz == #)\', which also means the closing brackets at the end are rendered useless.

Also, timer functions would be a good addition, since the way it\'s setup now would spam the channel with all the text at the same time.
Try:
If (%lulz == 1) .timer 1 3 describe # has stolen <w/e> from $2 $+ !
Then it will wait 3 seconds before it shows the channel what you stole from the target.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.