Steal random item from user
Please Register to submit score.
| Average Score | 3.5 |
| Scores Submitted | 2 |
| Date Added | Apr 28, 2008 |
| Last Updated | Apr 28, 2008 |
| Tags | awesome chat cool dragon from good irc item lucid ludicchat mirc name net nick nickname random snippet snippets steal user write |
Introduction
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.)
mIRC Snippet:
Steal random item from user
Posted on Apr 28, 2008 9:38 am
Posted on Apr 28, 2008 9:38 am
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.
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.
mIRC Snippet:
Steal random item from user
Posted on Apr 28, 2008 11:15 am
Posted on Apr 28, 2008 11:15 am
Okay! Thank you for the advice.
I'm kinda new to making IRC scripts, so it's still hard for me. Haha...
I'm kinda new to making IRC scripts, so it's still hard for me. Haha...
mIRC Snippet:
Steal random item from user
Posted on Apr 29, 2008 2:40 pm
Posted on Apr 29, 2008 2:40 pm
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.
makes the snippet alot smaller
$read(stolen.txt)
( reads a random line from the file )
/help <- Helps alot.
mIRC Snippet:
Steal random item from user
Posted on Apr 29, 2008 2:51 pm
Posted on Apr 29, 2008 2:51 pm
* Jonesy44 throws an overdated condom at dull
use locals instead of gloabals :P
they are a hell of a lot more helpfull sometimes :D
use locals instead of gloabals :P
they are a hell of a lot more helpfull sometimes :D
mIRC Snippet:
Steal random item from user
Posted on Apr 30, 2008 1:29 am
Posted on Apr 30, 2008 1:29 am
LOL! okay thanx for the tips all :)
mIRC Snippet:
Steal random item from user
Posted on Apr 30, 2008 6:34 am
Posted on Apr 30, 2008 6:34 am
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 ;(
mIRC Snippet:
Steal random item from user
Posted on Apr 30, 2008 8:11 am
Posted on Apr 30, 2008 8:11 am
@ 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:
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.`-.-´
| Code: |
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.`-.-´
mIRC Snippet:
Steal random item from user
Posted on Apr 30, 2008 8:12 am
Posted on Apr 30, 2008 8:12 am
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 _-_,,







