Johnson
Historical / Guest
you sed it was ok to ask for a "flood protection" to this code ......... and thankyou for the help 
on *:TEXT:*!drink*:*: {
set %posi $findtok($1-,$matchtok($1-,!drink,1,32),1,32)
var %svalue = $ [ $+ [ %posi ] ]
if (%svalue == !drink) { msg # 0 $nick Drink For You, $read(Drinks/drink.txt) }
elseif (!drink isin %svalue) && (%svalue != !drink) && ($right(%svalue,-6) isnum) { msg # 0 $nick Drink For You, $read(Drinks/drink.txt,$right(%svalue,-6)) }
unset %posi
unset %svalue
}
Edited Sep 3, 2008 7:57 PM by Johnson
Ozzy10
Aerial Photographer Member #2
as request , you pain in the ass lol
on *:TEXT:*!drink*:*: {
if (%drinky == off) halt
var %posi $findtok($1-,$matchtok($1-,!drink,1,32),1,32)
var %svalue = $ [ $+ [ %posi ] ]
var %dcolour $r(1,15)
if (%svalue == !drink) { msg # $+ %dcolour $nick Drink For You, $read(Drinks/drink.txt) }
elseif (!drink isin %svalue) && (%svalue != !drink) && ($right(%svalue,-6) isnum) { msg # $+ %dcolour $nick Drink For You, $read(Drinks/drink.txt,$right(%svalue,-6)) }
set -u10 %drinky off
}
Edited Sep 3, 2008 8:24 PM by Ozzy10
My code does NOT have bugs. It just develops random features.
X-Fusion
Historical / Guest
What, no %ozvars?!?!?!?!?!
Johnson
Historical / Guest

took a while but you got there in the end lololol ... seriously thankyou very much ozzy im very grateful for your help on that code ... ty mate