mIRC Homepage
Posted By: xkyox A simple script to call out user's ip - 15/07/06 03:11 AM
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
    }
  }
} 
Posted By: Crinul Re: A simple script to call out user's ip - 15/07/06 11:42 PM
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

}

}

}

-------------
Posted By: xkyox Re: A simple script to call out user's ip - 17/07/06 01:31 AM
Oh...so its just some minor mistake in it..Thanks alot definitely will try grin

EDIT: frown I tried but unfortunately it dont work...
Posted By: hmtX Re: A simple script to call out user's ip - 17/07/06 09:49 AM
don't forget to /set %IP On
also replace $nick with $dns(0).nick
Posted By: xkyox Re: A simple script to call out user's ip - 17/07/06 12:17 PM
Hmm shd i replace every single $nick to $dns(0).nick? Or maybe just a selective few?
Posted By: Crinul Re: A simple script to call out user's ip - 17/07/06 12:27 PM
Just /set %IP On
--------------------------
I tested the code it works fine ...
---------------------------
Posted By: xkyox Re: A simple script to call out user's ip - 19/07/06 05:59 AM
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?
© mIRC Discussion Forums