diff options
author | Yehonal <yehonal.azeroth@gmail.com> | 2017-11-09 10:41:05 +0000 |
---|---|---|
committer | Yehonal <yehonal.azeroth@gmail.com> | 2017-11-19 16:25:05 +0100 |
commit | 817257c85b644433f61e47ce3f917a47af4a0b74 (patch) | |
tree | a0b7bc03a7cbed2b7fa62941e4da341c2ab960a4 /src/game/Scripting/ScriptMgr.h | |
parent | f669732d19666b31aae946945ebf96198ac4b198 (diff) |
Implemented OnUpdateArea hook
it's more accurate than UpdateZone
Diffstat (limited to 'src/game/Scripting/ScriptMgr.h')
-rw-r--r-- | src/game/Scripting/ScriptMgr.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/game/Scripting/ScriptMgr.h b/src/game/Scripting/ScriptMgr.h index 888fde265f..2e84a488e6 100644 --- a/src/game/Scripting/ScriptMgr.h +++ b/src/game/Scripting/ScriptMgr.h @@ -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*/) { } |