Originally Posted By: KindOne
https://en.wikichip.org/wiki/mirc/on_events/on_text


https://en.wikichip.org/wiki/mirc/raw_events


You cannot have one event inside of another event.

I guess you want something like this:


Code:
ON *:TEXT:*:?:{

if ( server1 isin $server ) { echo -a $nick usa simosnap }
if ( server2 isin $server ) { whois $nick }

}

raw 311:*:{ echo -a $1- }


yes, I solved this , the events cannot be embedded.

But I have another problem with this code:
Code:

raw 311:*:{

  set $+(%,server,_,$2) $1-
  if (server_name isin $+(%,server,_,$2)) { timer 1 10 msg $2 $read(C:\mIRC\testi\6b.txt) }
  else { timer 1 10 msg $2 $read(C:\mIRC\testi\6-skype.txt) }
}



This piece of code execure ever else statement , and not if. And I don't understand why.

$2 is the nick_name of the user.
Excuse me per my ignorance, but I amn't expert with
mIRC scripting.

Thanks for you help



Last edited by Anti; 28/11/18 01:34 AM.