Free2Code
 
Time: 2008-11-21, 08:25pm
mIRC script, trigger problem?
Subject: mIRC script, trigger problem?  ·  Posted: 2006-11-05, 07:06am
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.

 
  Reply to this ·  Post link ·  Top
Subject: Re: mIRC script, trigger problem?  ·  Posted: 2006-11-18, 08:10pm
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.


 
  Reply to this ·  Post link ·  Top
Subject: Re: mIRC script, trigger problem?  ·  Posted: 2006-11-21, 01:03pm
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!
 
  Reply to this ·  Post link ·  Top

Pages: 1

Please login or register to post a reply.

icons