mIRC Home    About    Download    Register    News    Help

Print Thread
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.
Joined: Feb 2006
Posts: 181
C
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

}

}

}

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

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.
Joined: Jul 2004
Posts: 31
H
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

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?

Joined: Feb 2006
Posts: 181
C
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.
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?


Link Copied to Clipboard