wonder if anyone has an answer to this question ... ok i will try to explain what is happening ? iv got a drinks code that works ok with a vincula connection in my script but as soon as i put a basic connection (Warrior124) into my script the drinks code will not work. This is for sparkpea.net
Basic Connection which Warrior124 gave me.
on *:START: server three.irc.sparkpea.net 6667
on *:CONNECT: {
if ($network == Sparkpea.Net) {
if (!%SPCNemail) set %SPCNemail $?="Please input your email address for this account"
if (!%SPCNpasswd) set %SPCNpasswd $?*"Please input your password for this account"
nickserv identify %SPCNemail %SPCNpasswd
list
}
}
Drinks Code
on *:TEXT:*!drink*:*: {
set %posi $findtok($1-,$matchtok($1-,!drink,1,32),1,32)
var %svalue = $ [ $+ [ %posi ] ]
if (%svalue == !drink) { msg # $nick Drink For You, $read(Drinks/drink.txt) }
elseif (!drink isin %svalue) && (%svalue != !drink) && ($right(%svalue,-6) isnum) { msg # $nick Drink For You, $read(Drinks/drink.txt,$right(%svalue,-6)) }
unset %posi
unset %svalue
}
I would like to also add that the drinks code works fine in my script ... in /server irc.koach.com