Hades03 Posted May 29, 2012 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 242 Reputation: 3 Joined: 01/01/12 Last Seen: August 14, 2015 Share Posted May 29, 2012 i want to do 1 ip on this maps schg_cas06 schg_cas07 schg_cas08 only can enter 1 ip if same ip will go @ prontera ty Quote Link to comment Share on other sites More sharing options...
Brian Posted October 30, 2012 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted October 30, 2012 (edited) - script Only1perIP -1,{ OnPCLoadMapEvent: // Which maps to check? (remember to add 'loadevent' mapflag at the bottom) set .@maps$, "schg_cas06,schg_cas07,schg_cas08"; if (!compare(","+.@maps$+"," , ","+strcharinfo(3)+",")) end; // check for other online characters from their IP if (query_sql("SELECT `char`.`name` FROM login LEFT JOIN `char` ON login.account_id=`char`.account_id " + "WHERE login.last_ip=(SELECT last_ip FROM login WHERE account_id="+getcharid(3)+") AND `char`.online AND login.account_id!="+getcharid(3), .@name$) > 0) { // check if they are on the same map for (set .@i,0; .@i<getarraysize(.@name$); set .@i,.@i+1) { getmapxy .@map$, .@x,.@y,0, .@name$[.@i]; if (.@map$ == strcharinfo(3)) { announce "Sorry, only 1 character per IP is allowed on this map.", bc_blue|bc_self; sleep2 1000; warp "SavePoint",0,0; } } } end; } schg_cas06 mapflag loadevent schg_cas07 mapflag loadevent schg_cas08 mapflag loadevent Edited October 30, 2012 by Brian : sleep2 - thanks Annie <3 Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted October 30, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted October 30, 2012 announce "Sorry, only 1 character per IP is allowed on this map.", bc_blue|bc_self; sleep 1000; warp "SavePoint",0,0; [Error]: script_rid2sd: fatal error ! player not attached! lol... xD damn ... bumping old topics ! so cheating >.< 1 Quote Link to comment Share on other sites More sharing options...
Question
Hades03
i want to do 1 ip on this maps
schg_cas06
schg_cas07
schg_cas08
only can enter 1 ip if same ip will go @ prontera ty
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.