Jump to content
  • 0

can you make me an anti dual ip


Hades03

Question


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  242
  • Reputation:   3
  • Joined:  01/01/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

-	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 by Brian
: sleep2 - thanks Annie <3
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:  

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

  • Upvote 1
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...