feat(Pointers): Added trigger script event pointer and function definitions

This commit is contained in:
Yimura 2020-12-28 01:33:40 +01:00
parent 939da8769d
commit 4f0cfcba75
No known key found for this signature in database
GPG Key ID: 54EFAD29393A6E78
3 changed files with 7 additions and 0 deletions

View File

@ -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);
}

View File

@ -98,6 +98,11 @@ namespace big
m_script_event_handler = ptr.as<decltype(m_script_event_handler)>();
});
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<decltype(m_trigger_script_event)>();
});
main_batch.run(memory::module(nullptr));
m_hwnd = FindWindowW(L"grcWindow", nullptr);

View File

@ -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{};