From 4f0cfcba758d9486a035a66078bce16b50334531 Mon Sep 17 00:00:00 2001 From: Yimura Date: Mon, 28 Dec 2020 01:33:40 +0100 Subject: [PATCH] feat(Pointers): Added trigger script event pointer and function definitions --- BigBaseV2/src/function_types.hpp | 1 + BigBaseV2/src/pointers.cpp | 5 +++++ BigBaseV2/src/pointers.hpp | 1 + 3 files changed, 7 insertions(+) diff --git a/BigBaseV2/src/function_types.hpp b/BigBaseV2/src/function_types.hpp index af951a03..c9830038 100644 --- a/BigBaseV2/src/function_types.hpp +++ b/BigBaseV2/src/function_types.hpp @@ -14,4 +14,5 @@ namespace big::functions using get_player_name = char*(Player player); using script_event_handler = bool(void* events, CNetGamePlayer* sourcePlayer, CNetGamePlayer* targetPlayer); using sync_local_time = void(int h, int m); + using trigger_script_event = int(bool unk0, uint64_t* args, int argCount, int bitFlags); } diff --git a/BigBaseV2/src/pointers.cpp b/BigBaseV2/src/pointers.cpp index 90639972..dbddbc69 100644 --- a/BigBaseV2/src/pointers.cpp +++ b/BigBaseV2/src/pointers.cpp @@ -97,6 +97,11 @@ namespace big { m_script_event_handler = ptr.as(); }); + + main_batch.add("Trigger Script Event", "48 8B C4 48 89 58 08 48 89 68 10 48 89 70 18 48 89 78 20 41 56 48 81 EC ? ? ? ? 45 8B F0 41 8B F9", [this](memory::handle ptr) + { + m_trigger_script_event = ptr.as(); + }); main_batch.run(memory::module(nullptr)); diff --git a/BigBaseV2/src/pointers.hpp b/BigBaseV2/src/pointers.hpp index a95f01ef..4e70175c 100644 --- a/BigBaseV2/src/pointers.hpp +++ b/BigBaseV2/src/pointers.hpp @@ -40,6 +40,7 @@ namespace big functions::increment_stat_event* m_increment_stat_event{}; functions::script_event_handler* m_script_event_handler{}; functions::sync_local_time* m_sync_local_time{}; + functions::trigger_script_event* m_trigger_script_event{}; }; inline pointers *g_pointers{};