mIRC Home    About    Download    Register    News    Help

Print Thread
#157256 23/08/06 07:54 PM
Joined: Nov 2005
Posts: 15
M
Pikka bird
OP Offline
Pikka bird
M
Joined: Nov 2005
Posts: 15
i have a bot which has a latest offers optio nbut the variable wont change, i dont know why

code to display offers:

Code:
on *:TEXT:!offers:#:{ //msg #mychannel  latest Offers:4 %offers }


works fine.

Code to assign new one:

Code:
on *:TEXT:!setoffers *:#mychannel: { if ($nick isop $chan) { //unset %offers  | //set %offers $2- | //notice $nick 4,140 Current offers Changed To: %offers } }  


When i do !setoffers test. Nothing happens :9

Any ideas?

Last edited by markspec87; 23/08/06 07:55 PM.
#157257 23/08/06 08:34 PM
Joined: Mar 2005
Posts: 420
X
Fjord artisan
Offline
Fjord artisan
X
Joined: Mar 2005
Posts: 420
Were you an OP when you typed that command?


If you have a plastic floor runner over your tiles, then you're one Hella Pinoy!
#157258 23/08/06 08:38 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
make sure you have no other "on text" that is conflicting
and that you have the channel specified right
Code:
on *:TEXT:!offers:#channel:{ 
  msg #channel latest Offers:4 %offers 
}
on *:TEXT:!setoffers *:#channel:{ 
  if ($nick isop $chan) { 
    set %offers $2-
    notice $nick 4,140 Current offers Changed To: %offers 
  }
}  

tested and this worked


Link Copied to Clipboard