mIRC Home    About    Download    Register    News    Help

Print Thread
#192824 11/01/08 12:16 PM
Joined: Jan 2008
Posts: 8
M
MrX Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2008
Posts: 8
Euh i got a bot that needs to check IP's but it doesn't work as it needs to be becouse there's a : in text...

What can i do against this?

Joined: Jul 2006
Posts: 4,151
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,151
Simply use
Code:
on *:text:*:*:{
;here check $1 or $1- 
}


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jan 2008
Posts: 8
M
MrX Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2008
Posts: 8
u don't realy understand me,

There's a bot that is connected to a game
everytime somebudy joins i get this message(from that bot)
"[NR] Player (nickname) has joined the game, fighting for team (team). (IP: **.***.***.***)"

And i want to use the " On *:Text: IP: * :*: {

But beacouse that : behind that IP isn't it working...

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
He understood you perfectly. Use something like:
Code:
on *:TEXT:*:*:{
  if ( IP: * iswm $1- ) { dostuff }
}

Joined: Jan 2008
Posts: 8
M
MrX Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
M
Joined: Jan 2008
Posts: 8
ok thx!

Would this example work?
Exemple:
Code:
on *:TEXT:*:*:{
  if ( IP: * iswm $1- ) { 
    dns $1- 
  }
}

Btw Mandai is the name of the most dangerous hacker from that game.

Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Yes, it's possible to use nest /if statements. $raddress is only valid in the on DNS event, though.


Link Copied to Clipboard