Jump to content
  • 0

Check if the player is in characters screen.


Cyrix

Question


  • Group:  Members
  • Topic Count:  44
  • Topics Per Day:  0.01
  • Content Count:  150
  • Reputation:   13
  • Joined:  02/16/12
  • Last Seen:  

I need help to Check if the player is in select characters screen or logged in loginserver

 

 

[Notice]: Authentication accepted (account: xxxxxx, id: 2000000, ip: 127.0.0.1) 
[status]: Connection of the account xxxxxxx' accepted.

 

Dprvvlc.png

 

 

If yes, then sql query in source record into some table, values 0 or 1

1 = logged in (login server)

0 = not logged in (login server)

 

thanks

Edited by Cyrix
Link to comment
Share on other sites

1 answer 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:  

You can use getmapxy to get the location of both players.

Then do 2 checks:

1) if both players are on the same map

2) AND if distance is less than getbattleflag("area_size")

--> then this means both players are on the same screen.

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