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

when the player logout it will save its last location. the last warp and save map is not the same. the save map only save if you talk to kafra.

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

getmapxy(.@qmap$,.@qmapx,.@qmapy,0);

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×
×
  • Create New...

Important Information

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