mIRC Home    About    Download    Register    News    Help

Print Thread
#88971 03/07/04 01:48 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Code:
on 1:OPEN:?:!tag*: {
  msg $2 $nick has tagged you!
  msg $2 Type !tag <nickname> to tag somebody else!
  msg $nick The tag to $2 has been sent.
  write taglog.txt $date(mm/dd/yy) $asctime(hh:nn:ss) $+ : $nick has tagged $2 $+ .
}


How can I have it where the person that got tagged can't tag the person that sent them the tag, until that parts over with. For example:
[Query TagBot]
<John> !tag Steve
<TagBot> The tag to Steve has been sent!
------
[Query TagBot] (Steve is querying the bot now)
<Steve> !tag John
<TagBot> Sorry, he just tagged you, if someone other than John tags you, then you can tag him.

#88972 03/07/04 06:34 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
You'll have to make a %variable with the nick of the last one tagged in it: set %lasttag $nick
You should find a place for this so that you have the previous tagger and not the current in %lasttag.

To check: if (%lasttag == $2) { msg $nick no can do }

Maybe also check the $2 really exists, something like if ($2 ison #chan) ?


Link Copied to Clipboard