mIRC script, trigger problem?
|
|||
|
Rank: ? (1)
Member #: 28998 |
on *:TEXT:!setpcw *:*:{
if ($nick isop $chan) || ($nick ishop $chan) { if ($2- isnum 2-132) { set $+(%,pcw.,$chan) $2- | set $+(%,pcw.,$chan,.nick) $nick | set $+(%,pcw.,$chan,.time) $ctime | .msg $chan 12New PCW! 6The New PCW was Set by 12 $eval($+(%,pcw.,$chan,.nick),2) $+ ! 6Type 12!pcw 6To View the Updated World. } } } on *:TEXT:!pcw*:#:{ if ($nick isop $chan) || ($nick ishop $chan) || ($nick isvoice $chan) { .notice $nick 6The PCW For12 $chan 6is Currently:12 $eval($+(%,pcw.,$chan),2) $+ . 6And Was Last Set12 $duration($calc($ctime - $($+(%,pcw.,$chan,.time),2))) 6ago by12 $($+(%,pcw.,$chan,.nick),2) $+ . } } This script is supposed to allow me to set a world number and then when users enter !pcw the number is recalled in a notice. It all works fine except that the command to see the set world number does not work for me if I am on the same PC as the bot I run this script on. Im not sure if its a trigger problem or what. Any help greatly appreciated. |
||
|
|||
|
|||
|
Rank: ? (134)
Member #: 28863 |
It is normally a script run from the client or a separate computer. However, you can be the bot if you wish by simply loading the bot script into your chatting client rather than another copy of it.
|
||
|
|||
|
|||
|
Rank: ? (48)
Member #: 20714 |
I dunno what exactly you are doing, but it works for me.
on *:TEXT:!setpcw *:#:{ if ($nick isop $chan) || ($nick ishop $chan) { if ($2- isnum 2-132) { set %pcw. [ $+ [ $chan ] ] $2- set %pcw. [ $+ [ $chan $+ .nick ] ] $nick set %pcw. [ $+ [ $chan $+ .time ] ] $ctime msg $chan 12New PCW! 6The New PCW was Set by12 %pcw. [ $+ [ $chan $+ .nick ] ] $+ ! 6Type 12!pcw 6To View the Updated World. } } } on *:TEXT:!pcw:#:{ if ($nick !isreg $chan) { notice $nick 6The PCW For12 $chan 6is Currently:12 %pcw. [ $+ [ $chan ] ] $+ . 6And Was Last Set12 $duration($calc($ctime - %pcw. [ $+ [ $chan $+ .time ] ] )) 6ago by12 %pcw. [ $+ [ $chan $+ .nick ] ] $+ . } } Let me know if it doesnt work for you.
Behold the power of cheese!
|
||
|
Please login or register to post a reply.