Jump to content
  • 0

Track IP


DJFUNK

Question


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  115
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

I need the NPC script for track IP for my player as GM tool in game :D (include the features that player's same IP,etc...)

so I can use it in game nor in gameCP :)/no1

Edited by DJFUNK
Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

-    script    flsdfjlskdfj    -1,{
OnInit:
   bindatcmd "whoip", strnpcinfo(0)+"::Onaaa",60,99;
   end;
Onaaa:
   while ( getusers(1) > .@count ) {
       .@nb = query_sql("select name, last_ip from `char` left join login on `char`.account_id = login.account_id where online = 1 order by last_ip limit 128 offset "+ .@count, .@name$, .@ip$ );
       .@i = 0;
       while ( .@i < .@nb ) {
           message strcharinfo(0), ( .@count + .@i +1 )+". "+ .@name$ +" -> "+ .@ip$;
           .@i++;
       }
       .@count += 128;
   }
   freeloop 0;
}

hmm .. ?

this is just listing all players name and their IP

otherwise, please specify more in detail of your request

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  115
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

how can I use that?

hhm... I think the NPC that I can input the ID or Char name, and track their IP.

just like this :Dgmassistant.txt

it doesn't work for rAthena.. /spin

how I can use it /hmm

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

[sql]: DB error - Unknown column 'level' in 'field list'
[Debug]: at d:\eathena\rathena sql 16819\src\map\script.c:14506 - select `sex`,`
email`,`level`,`unban_time`,`logincount`,`lastlogin`,`last_ip` from `login` wher
e `account_id` = '2000000'
[Debug]: Source (NPC): GM Assistant at prontera (156,181)

that's because rathena has changed `level` field into `group_id` field

run a replace all

find

`level'

replace all with

`group_id`

and this script will works in rathena

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  115
  • Reputation:   4
  • Joined:  10/25/12
  • Last Seen:  

DONE... it's work.. :D

only that changes? to use in rAthena :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

only that changes? to use in rAthena :D

as far as I can tell, yeah that's it

though sometimes I can be wrong too, because everyone might make mistakes in their scripts

so if you have spotted another bug that you couldn't able to solve it on your own

always welcome to make a discussion here and we can discuss how to solve your problem together

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...