mIRC Snippet:
Simple 8ball Snippet
Posted on Sep 19, 2007 5:25 pm
Posted on Sep 19, 2007 5:25 pm
sorry for the two use $read...forgot to erase the bottom one :P
mIRC Snippet:
Simple 8ball Snippet
Posted on Sep 19, 2007 5:24 pm
Posted on Sep 19, 2007 5:24 pm
why does everyone do if (%8ball == number) its such a waste of code...
i find a variable a lot easier than writing/readin a txt
x1gu10n3r: use $read(file.txt) to read a random line
just use $read(file.txt) to read random line
| Code: |
on *:text:!8ball*:#:{ var %8ball = No|Yes|Maybe|Try Later|Etc... msg $chan $gettok(%8ball,$r(1,$numtok(%8ball,124)),124) } |
i find a variable a lot easier than writing/readin a txt
x1gu10n3r: use $read(file.txt) to read a random line
just use $read(file.txt) to read random line
mIRC Snippet:
[Mimic]
Posted on Sep 19, 2007 5:11 pm
Posted on Sep 19, 2007 5:11 pm
um i couldn't get this to work at ALL i tried editing it alot adn i couldn't get anything to work
mIRC Snippet:
Simple 8ball Snippet
Posted on Jan 8, 2007 1:41 pm
Posted on Jan 8, 2007 1:41 pm
just keep things simple...but i'd rather use this...
on 1:text:!8ball*:#: {
var %8ball $r(1,$lines(8ball.txt))
msg $chan The Magical 8ball says " $+ $read(8ball.txt,%8ball) $+ "
}
menu * {
.Add 8ball Message: var %a $?="8ball Message:" | write 8ball.txt %a
}
but hell, i like yours too.
on 1:text:!8ball*:#: {
var %8ball $r(1,$lines(8ball.txt))
msg $chan The Magical 8ball says " $+ $read(8ball.txt,%8ball) $+ "
}
menu * {
.Add 8ball Message: var %a $?="8ball Message:" | write 8ball.txt %a
}
but hell, i like yours too.
mIRC Snippet:
Simple 8ball Snippet
Posted on Jan 8, 2007 1:20 pm
Posted on Jan 8, 2007 1:20 pm
Vengeance, how the hell is that complicated? That's not only redundant and poor coding, it's also extremely simple.
shugo103
-_- Let it be the way it is. There is nothing wrong with it no?
Besides the fact that you're denying suggestions to make it better? There's tons wrong with it that I can see.
shugo103
-_- Let it be the way it is. There is nothing wrong with it no?
Besides the fact that you're denying suggestions to make it better? There's tons wrong with it that I can see.
mIRC Snippet:
Simple 8ball Snippet
Posted on Jan 8, 2007 11:22 am
Posted on Jan 8, 2007 11:22 am
if you just want it complicated for fun use this
(yes its redundant and pretty pointless but its complicated :) )
on *:text:!8ball *:#: {
var %8ball $rand(1,5)
describe $chan dont take this stuff to seriously its just a thingermabob :)
if ((%8ball == 1 )) msg # The magic 8ball says " $+ $read(8ball.txt,1) $+ "
if ((%8ball == 2 )) msg # The magic 8ball says " $+ $read(8ball.txt,2) $+ "
if ((%8ball == 3 )) msg # The magic 8ball says " $+ $read(8ball.txt,3) $+ "
if ((%8ball == 4 )) msg # The magic 8ball says " $+ $read(8ball.txt,4) $+ "
if ((%8ball == 5 )) msg # The magic 8ball says " $+ $read(8ball.txt,5) $+ "
}
(yes its redundant and pretty pointless but its complicated :) )
on *:text:!8ball *:#: {
var %8ball $rand(1,5)
describe $chan dont take this stuff to seriously its just a thingermabob :)
if ((%8ball == 1 )) msg # The magic 8ball says " $+ $read(8ball.txt,1) $+ "
if ((%8ball == 2 )) msg # The magic 8ball says " $+ $read(8ball.txt,2) $+ "
if ((%8ball == 3 )) msg # The magic 8ball says " $+ $read(8ball.txt,3) $+ "
if ((%8ball == 4 )) msg # The magic 8ball says " $+ $read(8ball.txt,4) $+ "
if ((%8ball == 5 )) msg # The magic 8ball says " $+ $read(8ball.txt,5) $+ "
}
mIRC Snippet:
[Mimic]
Posted on Jul 29, 2006 11:08 pm
Posted on Jul 29, 2006 11:08 pm
I made a mimic/copy script that has all the functions. You should add on so that it can copy a person or everone.
mIRC Snippet:
[Mimic]
Posted on Jul 27, 2006 6:54 pm
Posted on Jul 27, 2006 6:54 pm
Or just to spam channels and be annoying :P
mIRC Snippet:
Random Topic Styles
Posted on Jul 19, 2006 2:10 pm
Posted on Jul 19, 2006 2:10 pm
Uhh, this is open to abuse.
Someone just needs to join and type the command, and you'll change the topic of the channel.
I don't think you can activate your own scripts through a text, so try changing this to an Alias.
Someone just needs to join and type the command, and you'll change the topic of the channel.
I don't think you can activate your own scripts through a text, so try changing this to an Alias.
mIRC Snippet:
Simple 8ball Snippet
Posted on Jul 4, 2006 10:22 am
Posted on Jul 4, 2006 10:22 am
wtf@Raichu. This type of snippet would be more proficient if it were reading from a .txt, this way u can just add the result to the end of a list, instead of expanding the $rand and making another if statement
mIRC Snippet:
Simple 8ball Snippet
Posted on Jul 2, 2006 2:57 pm
Posted on Jul 2, 2006 2:57 pm
i wasnt puttin down his coding
i was just suggestings
it to Read From a .txt file
i was just suggestings
it to Read From a .txt file
mIRC Snippet:
Simple 8ball Snippet
Posted on Jul 2, 2006 4:04 am
Posted on Jul 2, 2006 4:04 am
this snipped needs mirc...
and a 8ball snippet is ment for fun.
Odd how people would want a .txt as a question file. He got his own style of scripting.
and a 8ball snippet is ment for fun.
Odd how people would want a .txt as a question file. He got his own style of scripting.
mIRC Snippet:
Simple 8ball Snippet
Posted on Jul 1, 2006 8:03 am
Posted on Jul 1, 2006 8:03 am
for what this script is needed? :S
mIRC Snippet:
Randomness
Posted on Jun 28, 2006 7:02 pm
Posted on Jun 28, 2006 7:02 pm
on *:text:*:#: {
tokenize 32 $strip($1-)
if ($1 == @new8) { .write 8.txt $2- }
if ($1 == @addk) { .write k.txt $2- }
if ($1 == @8ball) { .msg $chan $read(8.txt) }
if ($1 == @k) && ($nick isop $chan) { .kick $chan $2 $read(k.txt) }
if ($1 == @kb) && ($nick isop $chan) { .ban $chan $2 | .kick $chan $2 $read(k.txt) }
}
tokenize 32 $strip($1-)
tokenize 32 $strip($1-)
if ($1 == @new8) { .write 8.txt $2- }
if ($1 == @addk) { .write k.txt $2- }
if ($1 == @8ball) { .msg $chan $read(8.txt) }
if ($1 == @k) && ($nick isop $chan) { .kick $chan $2 $read(k.txt) }
if ($1 == @kb) && ($nick isop $chan) { .ban $chan $2 | .kick $chan $2 $read(k.txt) }
}
tokenize 32 $strip($1-)
mIRC Snippet:
Randomness
Posted on Jun 28, 2006 3:44 pm
Posted on Jun 28, 2006 3:44 pm
Umm, Just look at the Kiss the bottle script.








