Jump to content
  • 0
serverkid

where is user's current map saved in database?

Question

7 answers to this question

Recommended Posts

  • 0

isn't save_map field is where you're character is saved.

 

what i mean is the character's current location. last_map is only updated when you warped to another location or when the player relogs.

Share this post


Link to post
Share on other sites
  • 0

Your current map is saved as `last_map` (including `last_x` and `last_y`) every n seconds (defined in /conf/map-server.conf as `autosave_time`; see also `save_settings` setting).

Share this post


Link to post
Share on other sites
  • 0

which is better, getting the last_map from database or attaching the account_id (from sql) then doing something like

[...]

If you already did a mysql query to fetch anything for char or login table, its a simple JOIN to fetch the online character including his last_map info too.

But in general, if you got the choice, getmapxy should be faster i guess.

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

×
×
  • Create New...

Important Information

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