Implemented OnUpdateArea hook

it's more accurate than UpdateZone
This commit is contained in:
Yehonal
2017-11-09 10:41:05 +00:00
parent f669732d19
commit 817257c85b
3 changed files with 18 additions and 4 deletions

View File

@@ -842,6 +842,9 @@ class PlayerScript : public ScriptObject
// Called when a player switches to a new zone
virtual void OnUpdateZone(Player* /*player*/, uint32 /*newZone*/, uint32 /*newArea*/) { }
// Called when a player switches to a new area (more accurate than UpdateZone)
virtual void OnUpdateArea(Player* /*player*/, uint32 /*oldArea*/, uint32 /*newArea*/) { }
// Called when a player changes to a new map (after moving to new map)
virtual void OnMapChanged(Player* /*player*/) { }