Jump to content
  • 0

ip check for event registeration


Question

Posted

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

2 answers to this question

Recommended Posts

Posted


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;

}

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...