Author Topic: savePosition / loadPosition events  (Read 554 times)

Simple enough to explain; the events work work just like the item saving/loading events, except it saves your current position and then loads it.

One example of this would be to use command and teleport events, having players able to say /cmd shop to teleport to the shop. Before teleporting, their position would be saved and then loaded when they leave the shop.

So, you want a load and a save position event basically with string names? Do you want it to autoload when they spawn (prefs) or do they have to manually use the event to load a type of position?

So, you want a load and a save position event basically with string names? Do you want it to autoload when they spawn (prefs) or do they have to manually use the event to load a type of position?

Simple enough to explain; the events work work just like the item saving/loading events, except it saves your current position and then loads it.

Basically just loadPosition and savePosition. What he meant by the example:
/cmd shop
Saves the player's current position with the savePostition event.
Teleports the player to the shop.
Then leaving the shop:
Loads the player's save position to exit the shop with the loadPosition event.

I imagine this also needs to save when the player leaves/rejoins the server?

This seems like a feature I could bundle into TotalRPG. Considering I already have a big update practically ready to push out, I suppose I could add this as well.

I imagine this also needs to save when the player leaves/rejoins the server?

You could throw it in, but I doubt that would be absolutely necessary