mIRC Homepage
Posted By: Lenooox on join - 17/12/11 05:52 PM
hello

possible to create a script
on join counter and Location? In QuakeNet?
Posted By: sparta Re: on join - 17/12/11 06:39 PM
Everyone joining including you

on *:JOIN:#: inc %join_counter

If you only want to count your own joins.

on $me:JOIN:#: inc %join_counter

If you want to count everyone but your self.

on *:JOIN:#:if ($nick != $me) { inc %join_counter }

one of this codes goes in your remote, ALT + R in mirc.

The location i dont know what you mean, but look at http://www.mircscripts.org/ if you can find anything that do what you want there.
Posted By: Lenooox Re: on join - 17/12/11 07:35 PM
i think of this

i tried to make one ! but dunno why not work frown

Code:
alias resolve {
  set %resolve.ip $$1
  sockopen resolve.ip www.topwebhosts.org 80
  .timer 1 3 sockclose resolve.ip
}
on *:sockopen:resolve.ip: {
  var %a = sockwrite -n $sockname
  %a GET $+(/tools/ip-locator.php?query=,%resolve.ip) HTTP/1.1
  %a HOST: topwebhosts.org
  %a $crlf
}
on *:sockread:resolve.ip: {
  sockread %sockread
  if (href='http://www.ip2location.com'> isin %sockread) { 

    ; Geolocation data from IP2Location (Product: DB4)
    set %resolve.country1 $remove($gettok($gettok(%sockread,17,47),3-,62),$+($chr(60),img src,$chr(61),$chr(39)))

    ; Geolocation data from IPligence (Product: Max)
    set %resolve.country2 Country: $remove($gettok($gettok(%sockread,50,47),3-,62),$+($chr(60),img src,$chr(61),$chr(39)))
  }
  if (Registry Information for isin %sockread) { 
    if ($gettok($regsubex(%sockread,/^[^<]*>|<[^>]*>|<[^>]*$/g,),4,32) == %resolve.ip) { 
      msg $($+(%,join.chan),2) Welcome to $($+(%,join.chan),2) $($+(%,join.nick),2) $+ . We are glad to have a visitor from $iif(%resolve.country1,%resolve.country1,%resolve.country2) $+ . $&
        You are the $ord($($+(%,$($+(%,join.chan),2),joinstotal),2)) visitor and it's your $ord($($+(%,$($+(%,join.nick),2),$($+(%,join.chan),2),joins),2)) join here in %join.chan $+ .
    }
  }
  if (is not a valid IP address isin %sockread) { 
    msg $($+(%,join.chan),2) Welcome to $($+(%,join.chan),2) $($+(%,join.nick),2) $+ . We are glad to have a visitor from $iif(%resolve.country1,%resolve.country1,%resolve.country2) $+ . $&
      You are the $ord($($+(%,$($+(%,join.chan),2),joinstotal),2)) visitor and it's your $ord($($+(%,$($+(%,join.nick),2),$($+(%,join.chan),2),joins),2)) join here in %join.chan $+ .
  }
}

on *:join:#: {
  set %join.chan $chan
  set %join.nick $nick
  inc $+(%,#,joinstotal) 1
  inc $+(%,$nick,#,joins) 1 
  userip $nick
}
raw 340:*: { resolve $gettok($$1-,2,64) }
raw 340:*: { resolve $gettok($$1-,2,64) }
Posted By: Lenooox Re: on join - 18/12/11 06:38 PM
nobody? :s
Posted By: Tomao Re: on join - 20/12/11 08:07 AM
Originally Posted By: sparta
on $me:JOIN:#:
That is the wrong format. The correct one is:
Code:
on me:*:join:#:
Posted By: Lenooox Re: on join - 20/12/11 03:43 PM
yes i know it smile
but i want creat an on join Location and join counter script.
i tried , but mine version dont respond for me :s
see above the script
Posted By: MarieHelene1 Re: on join - 21/12/11 03:37 PM
wawww help... I don't speak english but I'll try... if a person speak french i will be happy... I have a big problem... when I want to enter in mirc , I have a message... Infected with a virus or trojan, please clean your system. Cleaner @ http://www.moosoft.com .... the problem its I DON'T HAVE ANY VIRUS OR TROJAN... I had clean my computer yesterday by my technician... help me please
Posted By: MarieHelene1 Re: on join - 21/12/11 03:40 PM
I know... my english is beurk!
Posted By: Riamus2 Re: on join - 21/12/11 04:39 PM
NOTE: Instead of replying, you should create a new message so we keep the different topics separated.

To answer your question, in most cases, this error message means that someone with a similar IP address was banned and they included a range of IP addresses that happens to include yours. The best thing to do is go to the network's website and email them. You can use Google to find their website. For example, searching for Undernet will tell you that their website is www.undernet.org . Their website should include contact information. Just email them and tell them about your problem and give them your IP address and they should be able to help you.
Posted By: MarieHelene1 Re: on join - 21/12/11 05:18 PM
thxxx
Posted By: Lenooox Re: on join - 21/12/11 05:20 PM
and can anyone help me? :$
© mIRC Discussion Forums