mIRC Home    About    Download    Register    News    Help

Print Thread
A simple script to call out user's ip #153355 15/07/06 03:11 AM
Joined: Jul 2006
Posts: 6
X
xkyox Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
X
Joined: Jul 2006
Posts: 6
I just need a simple script whereby someone type !ip or something and I'm able auto /dns that person nick and provide him his ip. smile

This is what i was told to do by someone..but it dont seems to work..hope someone could correct me

Code:
on 1:text:!ip:*:{
  if (%*.IPOnOff) {
    set set %*.Chan $chan
    dns $nick
  }
}
on 1:DNS:{
  if (%*.IPOnOff) {
    if ($me != $nick) && (!%*.Nick. [ $+ [ $nick ] ]) && (%strChan) {
      msg %*.Chan  $+ $nick $+ , your IP Address is $dns(0).ip
    }
  }
} 

Last edited by xkyox; 15/07/06 03:45 AM.
Re: A simple script to call out user's ip #153356 15/07/06 11:42 PM
Joined: Feb 2006
Posts: 181
C
Crinul Offline
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
Try this:
----------
on 1:text:!ip:#:{

if (%IP == On) {

dns $nick

}

}

on 1:DNS:{

if (%IP == On) {

if ($me != $nick) {

.notice $nick $nick , your IP Address is $dns(0).ip

}

}

}

-------------

Re: A simple script to call out user's ip #153357 17/07/06 01:31 AM
Joined: Jul 2006
Posts: 6
X
xkyox Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
X
Joined: Jul 2006
Posts: 6
Oh...so its just some minor mistake in it..Thanks alot definitely will try grin

EDIT: frown I tried but unfortunately it dont work...

Last edited by xkyox; 17/07/06 02:12 AM.
Re: A simple script to call out user's ip #153358 17/07/06 09:49 AM
Joined: Jul 2004
Posts: 31
H
hmtX Offline
Ameglian cow
Offline
Ameglian cow
H
Joined: Jul 2004
Posts: 31
don't forget to /set %IP On
also replace $nick with $dns(0).nick

Re: A simple script to call out user's ip #153359 17/07/06 12:17 PM
Joined: Jul 2006
Posts: 6
X
xkyox Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
X
Joined: Jul 2006
Posts: 6
Hmm shd i replace every single $nick to $dns(0).nick? Or maybe just a selective few?

Re: A simple script to call out user's ip #153360 17/07/06 12:27 PM
Joined: Feb 2006
Posts: 181
C
Crinul Offline
Vogon poet
Offline
Vogon poet
C
Joined: Feb 2006
Posts: 181
Just /set %IP On
--------------------------
I tested the code it works fine ...
---------------------------

Last edited by Crinul; 17/07/06 12:36 PM.
Re: A simple script to call out user's ip #153361 19/07/06 05:59 AM
Joined: Jul 2006
Posts: 6
X
xkyox Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
X
Joined: Jul 2006
Posts: 6
Hmm i am quite noob in this...so where shd i place the /set %IP On at? Or do u mean i shd type this to enable it each time?