From 80b3e1b5f96696d5c8a1406f0705ac5e3cca71a3 Mon Sep 17 00:00:00 2001 From: Foereaper Date: Mon, 29 Jan 2024 21:52:54 +0100 Subject: [PATCH] Add OnExplore hook --- src/server/game/Entities/Player/Player.cpp | 4 ++++ src/server/game/LuaEngine | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index 79db1bdd95..aca4b54953 100644 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -6460,6 +6460,10 @@ void Player::CheckAreaExploreAndOutdoor() if (!(currFields & val)) { +#ifdef ELUNA + if (Eluna* e = GetEluna()) + e->OnDiscoverArea(this, GetAreaId()); +#endif SetUInt32Value(PLAYER_EXPLORED_ZONES_1 + offset, (uint32)(currFields | val)); UpdateAchievementCriteria(ACHIEVEMENT_CRITERIA_TYPE_EXPLORE_AREA, GetAreaId()); diff --git a/src/server/game/LuaEngine b/src/server/game/LuaEngine index c7a9d72a83..89d4c1da8b 160000 --- a/src/server/game/LuaEngine +++ b/src/server/game/LuaEngine @@ -1 +1 @@ -Subproject commit c7a9d72a835dc3af4bcf48c61be4c572392f6096 +Subproject commit 89d4c1da8bd8d8a1bc82438f69e9ca33268427a4