mIRC Home    About    Download    Register    News    Help

Print Thread
#169427 23/01/07 12:51 AM
Joined: Dec 2006
Posts: 37
T
THE_ADZ Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Dec 2006
Posts: 37
I want to make a script that if a certain nick is banned to unban it...but ONLY if the ban reason was a specific reason.

Code:
on 1:BAN:#avatarrp: {
if ($banmask == *Crystal*) || if ($banmask == *Krystal*)
{ if ($nick == ADZBot) }
/mode -b Crystal | /mode -b Krystal


That's all I got as of yet frown

THE_ADZ #169431 23/01/07 01:30 AM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
ok, when you use astericks, use "iswm", I haven't tested this script, but, i think it should work.
*note: not good with on ban at all, lol

Code:
Code:
on *:BAN:#avatarrp: {
  if (*Krystal* iswm $bnick) { mode $chan -b $banmask }
  if (*Crystal* iswm $bnick) { mode $chan -b $banmask }
}

Hope this works.


-Kurdish_Assass1n
THE_ADZ #169436 23/01/07 02:09 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
to take this a tad further (and nothing against your coding Kurdish), you could also do this:

Code:
on *:BAN:#avatarrp: {
  if (*Krystal* iswm $bnick) || (*Crystal* iswm $bnick) { mode $chan -b $banmask }
}



As for the ban reason, you'd have to utilize the KICK reason in an on kick event. An EXAMPLEM (untested) would be:

Code:
on @*:kick:#avatarrp: {
  if (because I said so == $1-) { /unban the stored address used for the ban placed a moment ago }
}



That is an example of HOW to do it, this was merely example coding and will NOT work as coded


Those who fail history are doomed to repeat it
Kurdish_Assass1n #169437 23/01/07 02:39 AM
Joined: Apr 2006
Posts: 400
K
Fjord artisan
Offline
Fjord artisan
K
Joined: Apr 2006
Posts: 400
Originally Posted By: Kurdish_Assass1n
ok, when you use astericks, use "iswm", I haven't tested this script, but, i think it should work.
*note: not good with on ban at all, lol

Code:
Code:
on *:BAN:#avatarrp: {
  if (*Krystal* iswm $bnick) { mode $chan -b $banmask }
  if (*Crystal* iswm $bnick) { mode $chan -b $banmask }
}

Hope this works.


lol, wow, what was I thinking when I did the double if statement and they did the same command!? lol, thanks for telling me landonsandor.


-Kurdish_Assass1n
Kurdish_Assass1n #169444 23/01/07 04:11 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
oh hey, happens to the best of us smile and btw, to the original poster, you'd want to change the event to be like this:

Code:
on @*:ban:#avatarrp: {
  if (*Krystal* iswm $bnick) || (*Crystal* iswm $bnick) { mode $chan -b $banmask }
}


.... so it only happens IF you're an op. Also, the BAN vs ban doesnt matter, I just like using lowercase on events though when I first started out I used caps - it doesnt matter though.


Those who fail history are doomed to repeat it

Link Copied to Clipboard