Jump to content
  • 0

Anti Double Log Script


Zenn Wahrheit

Question


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  07/06/19
  • Last Seen:  

Hi, i just have a online server and i have tested some scripts but no one of them were working , and there are some people using their accounts to get 2 rewards instead of 1  on BG and WoE.

I tested an npc that ''did'' the job, but it was checking merchants with autotrade, so the owners of those accounts needed to kick'em out to go to WoE and BG. And also it was checking the fact that an user was logged with 2 accounts, i mean , the mapflag was charged in a map , let's say geffen, and i have 2 chars logged in , if one of them go to geffen , will be automatically kicked out of the map without having the other one on geffen too. 

So i would like to know if you guys have a npc that kicks double accounts just on the same map. (I'm using latest version).

Thanks in advance ?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2345
  • Joined:  10/28/11
  • Last Seen:  

you can try something like this.

-	script	sample	-1,{
	OnInit:
		.map$ = "geffen";
		setmapflag .map$, mf_loadevent;
		end;
		
	OnPCLoadMapEvent:
		if (strcharinfo(3) == .map$) {
			.@size = query_sql("SELECT c.`account_id` FROM `char` c INNER JOIN `login` acc ON acc.`account_id` = c.`account_id` WHERE c.`account_id` <> "+getcharid(3)+" AND c.`online` = 1 AND acc.`last_ip` = '"+getcharip()+"'", .@aid);
			.@cid = getcharid(0);
			for (.@i = 0; .@i < .@size; .@i++)
				if (attachrid(.@aid)) {
					if (strcharinfo(3) == .map$) {
						.@count++;
						if (.@count >= 2) {
							warp "SavePoint", 0, 0, .@cid;
							end;
						}
					}
				}
		}
		end;
}

you should just disable dual client feature when diff the client.

and implement client hash checking to avoid other using custom hexed client to bypass that.

 

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  26
  • Reputation:   21
  • Joined:  07/05/18
  • Last Seen:  

i really dont remember the author of this script, it´s not mine but i downloaded that from rA Forum, so, credits to the unknown author i guess~

There u have ~

 

antidl.txt

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  07/06/19
  • Last Seen:  

thanks bro , but i used your script and it didn't work ? i went to geffen (the city that had loaded the mapflag) and i used  another char to go there and they didn't even have a message or something

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  7
  • Reputation:   0
  • Joined:  07/06/19
  • Last Seen:  

Thank u so much Guys ! i did what you said and it did work! ❤️  

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