here is my first script i made it to piss people off on frostwire that join my room and siad hey hi hello and whats up? and it also has a !gay script in it that i made tell me what you think
on *:text:hey*:#:{ describe $chan hey $nick you can type hey do you want a fucking cookie? !yes or !no
}
on *:text:hi*:#:{ describe $chan hi $nick you can type hi do you want a fucking cookie? !yes or !no
}
on *:text:whats up?*:#:{ describe $chan hello $nick you can type whats and/or up? do you want a fucking cookie? !yes or !no
}
on *:text:hello*:#:{ describe $chan hello $nick you can type hello do you want a fucking coookie? !yes or !no
}
on *:text:!yes*:#:{ describe $chan TO FUCKING BAD!!
}
on *:text:!no*:#:{ describe $chan i wans't going to give you a fucking cookie anyway
}
on *:text:!maybe*:#:{ describe $chan that wasn't a fucking answer
}
on *:text:!gay*:#:{ describe $chan !!! $nick would like to tell you that they r a fucking homo!! and you need to cover your assholes
or you can also do this as well
on *:text:*:#:{
var %b = hi|hello|whatsup?, %c = 1, %d = $strip($1-)
while ($gettok(%b,%c,124)) {
if ($istok(%d,$gettok(%b,%c,124),32)) {
describe $chan $gettok(%b,%c,124) $nick you can type $gettok(%b,%c,124) do you want a fucking cookie? !yes or !no
}
inc %c
}
}
then add on from there
thats how u start pwnisher3
on *:text:*:#:{
if (hey isin $strip($1-)) $$ (%wait = wait) { describe $chan Please wait 10 seconds }
if (hey isin $strip($1-)) $$ (%wait = null) { describe $chan hey $nick you can type hey do you want a !@#$ cookie? !yes or !no | set -u10 %wait wait }
}
and do u guys mean stripping color from incoming msgs ?
I won\'t pull a full Napa182 and recode the whole thing all |33+ an such but for one u don\'t need all those On TEXT events one will do fine an stack them like so:
on *:text:*:#:{
if (hey isin $strip($1-)) { describe $chan hey $nick you can type hey do you want a fucking cookie? !yes or !no }
if (hi isin $strip($1-)) { describe $chan hi $nick you can type hi do you want a fucking cookie? !yes or !no }
if (whats up? isin $strip($1-)) { describe $chan hello $nick you can type whats and/or up? do you want a fucking cookie? !yes or !no }
if (hello isin $strip($1-)) { describe $chan hello $nick you can type hello do you want a fucking coookie? !yes or !no }
if ($strip($1-) == !yes) { describe $chan TO FUCKING BAD!! }
if ($strip($1-) == !no) { describe $chan i wans\'t going to give you a fucking cookie anyway }
if ($strip($1-) == !maybe) { describe $chan that wasn\'t a fucking answer }
if ($strip($1-) == !gay) { describe $chan !!! $nick would like to tell you that they r a fucking homo!! and you need to cover your assholes }
}
Should add some flood protection as well but tbh it cba atm so.`-.-´
PS: Your missing a closing bracket make sure you hit the little bracket checker on the right top side of your editor and add or remove accordingly.Not to bad tho.`-.-´
nice work man
try this
on *:text:*:#: {
if (hey isin $$1-) { describe $chan hey $nick you can type hey do you want a fucking cookie? !yes or !no }
if (hi isin $$1-) { describe $chan hi $nick you can type hi do you want a fucking cookie? !yes or !no }
if (whats up isin $$1-) { describe $chan hello $nick you can type whats and/or up? do you want a fucking cookie? !yes or !no }
if (hello isin $$1-) { describe $chan hello $nick you can type hello do you want a fucking coookie? !yes or !no }
if (!yes == $$1) { describe $chan TO FUCKING BAD!! }
if (!no == $$1) { describe $chan i wans\'t going to give you a fucking cookie anyway }
if (!maybe == $$1) { describe $chan that wasn\'t a fucking answer }
if (!gay == $$1) { describe $chan !!! $nick would like to tell you that they r a fucking homo!! and you need to cover your assholes }
}
there is no need for multiple on text\'s
you can use if statements to check whether the word is in the sentence