Jump to content
  • 0

ip check for event registeration


kelvin

Question


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  07/14/13
  • Last Seen:  

Who can help me on event registeration with ip checker. EXP: random event need register to go in the map and the registeration npc will check player in map if same ip will reject the registeration. sorry for my bad english

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  


prontera,150,175,5 script inin 75,{

select( "register" );

.@my_aid = getcharid(3);

while( .@i < .size_aid && .aid_reg[.@i] != .@my_aid ) .@i++;// check if already register

if ( .@i < .size_aid ) {// already register, can enter

warp "geffen",0,0;

end;

}

.@ip = getcharip();

if ( getd( ".ip_"+ .@ip ) ) {// check the ip

dispbottom "access denied. same ip detected.";

end;

}

setd ".ip_"+ .@ip, 1;// save the ip

.aid_reg[.size_aid] = .@my_aid;// save the account id

.size_aid++;

warp "geffen",0,0;

end;

}

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  12
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  07/14/13
  • Last Seen:  

Thanks will try this script

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...