Jump to content
  • 0
Sign in to follow this  
tmav94

How to check if the character are in Autotrade with mysql

Question

4 answers to this question

Recommended Posts

  • 0

not possible I guess, but if you try to explain what exactly you are trying to do we may think of another way of achieving it

Share this post


Link to post
Share on other sites
  • 0

This is my security code to prevent player to enter in a Game Event with two accounts in the same ip
 

 

	.@query_result = 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);		if ( .@query_result > 1 && compare( $whiteList$,getcharid(3) +"" ) == 0 ) {		mes "[AVISO]";		mes "Você não poderá acessar as funções deste npc enquanto houverem mais de 1 conta conectada no mesmo IP. Foram encontrados "+ .@query_result +" registros.";		end;	} 

But, some players are using autotrade...I won't count the Autotraders.

Share this post


Link to post
Share on other sites
  • 0

Add this to your sql, not tested
 

....online=1 AND login.account_id NOT IN (SELECT account_id FROM autotrade_merchants WHERE account_id="+getcharid(3)+")"
Edited by mleo1

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.