mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 10:55:43 +00:00
Implemented OnUpdateArea hook
it's more accurate than UpdateZone
This commit is contained in:
@@ -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*/) { }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user