From 01dbb4099e1e2705f518e9406cfb5b06b5c9bf84 Mon Sep 17 00:00:00 2001 From: Kaytotes Date: Sun, 13 Oct 2024 13:25:48 +0100 Subject: [PATCH] Extended Flight Path Hooks --- tswow-core/Private/TSEventsLua.cpp | 3 ++- tswow-core/Public/TSEvents.h | 3 ++- tswow-core/Public/global.d.ts | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/tswow-core/Private/TSEventsLua.cpp b/tswow-core/Private/TSEventsLua.cpp index e8380a51..15aa6a68 100644 --- a/tswow-core/Private/TSEventsLua.cpp +++ b/tswow-core/Private/TSEventsLua.cpp @@ -75,7 +75,8 @@ void TSLua::load_events(sol::state& state) LUA_HANDLE(player_events, PlayerEvents, OnMovieComplete); LUA_HANDLE(player_events, PlayerEvents, OnPlayerRepop); LUA_HANDLE(player_events, PlayerEvents, OnSendMail); - LUA_HANDLE(player_events, PlayerEvents, OnFlightPathMount); + LUA_HANDLE(player_events, PlayerEvents, OnActivateTaxiPathEarly); + LUA_HANDLE(player_events, PlayerEvents, OnSendDoFlight); LUA_HANDLE(player_events, PlayerEvents, OnGossipSelect); LUA_HANDLE(player_events, PlayerEvents, OnGossipSelectCode); LUA_HANDLE(player_events, PlayerEvents, OnGenerateItemLoot); diff --git a/tswow-core/Public/TSEvents.h b/tswow-core/Public/TSEvents.h index 4148fd5b..50018f97 100644 --- a/tswow-core/Public/TSEvents.h +++ b/tswow-core/Public/TSEvents.h @@ -181,7 +181,8 @@ struct TSEvents EVENT(OnPlayerRepop, TSPlayer) EVENT(OnSendMail, TSPlayer, TSMailDraft, TSMutableNumber) - EVENT(OnFlightPathMount, TSPlayer, TSMutableNumber, TSMutable) + EVENT(OnActivateTaxiPathEarly, TSPlayer, TSMutable) + EVENT(OnSendDoFlight, TSPlayer, TSNumber, TSMutableNumber, TSMutable) EVENT(OnGenerateItemLoot, TSPlayer, TSItem, TSLoot, TSNumber) EVENT(OnLootCorpse, TSPlayer, TSCorpse) diff --git a/tswow-core/Public/global.d.ts b/tswow-core/Public/global.d.ts index 7eee1e9c..7b298ffb 100644 --- a/tswow-core/Public/global.d.ts +++ b/tswow-core/Public/global.d.ts @@ -8108,7 +8108,8 @@ declare namespace _hidden { OnMovieComplete(callback: (player : TSPlayer,movieId : uint32)=>void); OnPlayerRepop(callback: (player : TSPlayer)=>void); OnSendMail(callback: (player: TSPlayer, draft: TSMailDraft, delay: TSMutableNumber)=>void); - OnFlightPathMount(callback: (player: TSPlayer, display: TSMutableNumber, cancel: TSMutable)=>void); + OnActivateTaxiPathEarly(callback: (player: TSPlayer, cancel: TSMutable)=>void); + OnSendDoFlight(callback: (player: TSPlayer, path: TSNumber, display: TSMutableNumber, cancel: TSMutable)=>void); OnGenerateItemLoot(callback: (player: TSPlayer, item: TSItem, loot: TSLoot, type: uint32)=>void); OnLootCorpse(callback: (player: TSPlayer, corpse: TSCorpse)=>void); OnTradeCompleted(callback: (me: TSPlayer, him: TSPlayer, myItems: TSArray, hisItems: TSArray, myGold: uint32, hisGold: uint32) => void);