Jump to content
  • 0

Get the current Player coords


Question

Posted (edited)

Hello,

is there any way i can get the current coords from the player at the map? With Strcharinfo(3) i only get the map but not the coords?!

 

My second question is i want to update every 10 sec. the current map postion in a database from all player. Will this create a overload of the server because of the lot request's?

Edited by Vincent

5 answers to this question

Recommended Posts

Posted

 

My second question is i want to update every 10 sec. the current map postion in a database from all player. Will this create a overload of the server because of the lot request's?

 

Why? Your server already does this...

 

map_athena.conf

// Database autosave time
// All characters are saved on this time in seconds (example:
// autosave of 60 secs with 60 characters online -> one char is saved every 
// second)
autosave_time: 300

Inside char database look for last_map, last_x, and last_y.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...