Guest Johnson Posted September 1, 2008 Report Share Posted September 1, 2008 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 Link to comment Share on other sites More sharing options...
Guest X-Fusion Posted September 1, 2008 Report Share Posted September 1, 2008 Have you put each code in a seperate file? Link to comment Share on other sites More sharing options...
err0r Posted September 1, 2008 Report Share Posted September 1, 2008 try this for the on text code on *:TEXT:*!drink*:*: { tokenize 32 $strip($1-) 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 } Link to comment Share on other sites More sharing options...
Guest Travis Posted September 1, 2008 Report Share Posted September 1, 2008 Verify what $1 is. It could be font code. on *:text:!test:#:{ msg $chan 1= $1 2= $2 3= $3 4= $4 5- $5- } Link to comment Share on other sites More sharing options...
Guest Johnson Posted September 2, 2008 Report Share Posted September 2, 2008 Have you put each code in a seperate file? yes X ... i remembered everything you told me last time mate Folder - Named Drinks and text document - Named drink err0r your code did the job ... thanks very much mate. Link to comment Share on other sites More sharing options...
err0r Posted September 2, 2008 Report Share Posted September 2, 2008 yw glad you got it Link to comment Share on other sites More sharing options...
Kronicdreamer Posted September 2, 2008 Report Share Posted September 2, 2008 so you left koach Johnson? i noticed it a lil quieter around there lately Link to comment Share on other sites More sharing options...
Guest Johnson Posted September 2, 2008 Report Share Posted September 2, 2008 so you left koach Johnson? i noticed it a lil quieter around there lately no chance lololol your not getting rid of me that quick KD my pc i use for koach will be up and running in the next 1/2hour Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now