Jump to content
  • 0

help [dual client script] how to change this to per computer not per ip


pukay

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  05/10/14
  • Last Seen:  

Can anyone help how can I change this to per Computer not per IP can you provide it for me here is the script that I found 

 

 

- script Only2perIP -1,{
OnPCLoginEvent:
if(getgmlevel()>=99){
end;
} else {
set .@name$, strcharinfo(0);
if (query_sql("SELECT login.account_id 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=1", .@account_id) > 2) {
  announce "Sorry, only 2 accounts per IP are allowed!", bc_self;
  sleep 1000;
  atcommand "@kick " + .@name$;
}
end;
}
}
 
I want to change it to 2 dual client per computer not per IP address..
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  36
  • Topics Per Day:  0.01
  • Content Count:  403
  • Reputation:   245
  • Joined:  12/17/11
  • Last Seen:  

From what I have been told, this isn't possible unless you have Harmony, or a server-side src modification that's similar to Harmony. 

 

In that case, you could use last_mac instead of last_ip. But again, without Harmony, this won't work. :[

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  05/10/14
  • Last Seen:  

thanks for the answer I Hope some one can make a script like that

Link to comment
Share on other sites


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

just like Najara told you .... it only work if you have Harmony installed in your server ...

otherwise, there is no way for you to build a NPC script to detect the MAC address.

 

or maybe you have some 3rd party tools that grab the MAC Address and stored it in your database accordingly.

 

i dont think any members out there willing to try to write the script knowing that your server unable to detect MAC address but you still trying to ask for a MAC address detection script.

Edited by Emistry
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   1
  • Joined:  05/10/14
  • Last Seen:  

OH I see thank's for the reply sir Emistry ... 

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