where is user's current map saved in database?

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.

 
yeah, save_map is where your character is saved. i'm looking for the field where you're character is currently at.

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

 
which is better, getting the last_map from database or

attaching the account_id (from sql) then doing something like

Code:
getmapxy(.@qmap$,.@qmapx,.@qmapy,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.

 
Back
Top