mIRC Home    About    Download    Register    News    Help

Print Thread
#184675 31/08/07 01:51 PM
Joined: Jun 2007
Posts: 156
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 156
what needs to be done thru script so mirc does NOT show
of some user changeing nickname, i tried the lame way:

on ^1:NICK:{
if (name isin $nick) { halt }
}

doesnt go...


Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Code:
on ^*:nick:{ if (name isin $nick) { haltdef } }

hixxy #184678 31/08/07 01:54 PM
Joined: Jun 2007
Posts: 156
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 156
doesnt work eaither :P

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
It does. Bare in mind that $nick is the old nickname, $newnick is the new one.

* x is now known as y

x = $nick
y = $newnick

hixxy #184680 31/08/07 02:00 PM
Joined: Jun 2007
Posts: 156
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 156
well i did

if (name isin $nick) || (name isin $newnick) { haltdef }

then i tried just with $newnick

and both dont work for me :S

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
Try making sure remote is on by typing /remote on and also make sure that there are no other on nick events above that one in the same file.

hixxy #184682 31/08/07 02:16 PM
Joined: Jun 2007
Posts: 156
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jun 2007
Posts: 156
hmm it seems my previous on nick evet fuxed all up laugh
thanks.

Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
The only time they don't work together is the events are identical I believe, so if you had:

Code:
on *:nick:{ xyz }
on 1:nick:{ abc }


Both events would trigger, because the first one triggers for everyone (*), but the second only triggers for level 1 users.

But if you had:

Code:
on *:nick:{ xyz }
on *:nick:{ abc }


The second wouldn't trigger, and you'd have to combine the two events.

hixxy #184747 01/09/07 03:57 AM
Joined: Oct 2004
Posts: 8,061
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Oct 2004
Posts: 8,061
Uh, hixxy... the second one doesn't just trigger for level 1 users. It triggers for level 1 and higher. Also, even if it did trigger for only level 1 users, wouldn't only the first matching item (the first one since it covers everything) trigger? Just like when changing the trigger text in an on TEXT event, you would put a word trigger before a * trigger to make both trigger? Or am I confusing myself?


Link Copied to Clipboard