Trinitycore: OnGameEvent hook only gets called when event stops, several game events are broken.

Created on 31 Jul 2019  路  7Comments  路  Source: TrinityCore/TrinityCore

Description:

OnGameEvent hook only gets called when event stops.
When a event starts, OnGameEvent doesn't get called.
Breaks Hourly Bells (https://github.com/TrinityCore/TrinityCore/issues/23638)

Current behaviour:

doesn't get called on start.

* Reproduce *
breakpoint OnGameEvent of go_bells
event start 73 (doesn't get called)
event stop 73 (it does get called)
stand in a major city to listen to the bells

Branch(es):

CHANGEME 3.3.5

TC rev. hash/commit:

c3619f42a56fb6aaadc15ca63fe95fc0f519428d

Branch-3.3.5a Comp-Core

Most helpful comment

I tested without https://github.com/TrinityCore/TrinityCore/commit/d9ae19d974a8026b0fd4eb8b1d11fa59c758f5d1 and the event "On Game Event " didn't trigger

All 7 comments

Thank you for pointing that out. Good to know that there are still people around who knows how to figure out these mysteries.

@illfated yes, but finding out why it broke is another thing.

Fixed, thanks.

@Killyana could you check the SAI scripts with SMART_EVENT_GAME_EVENT_START to confirm that they still work (I wonder if they even worked at all before if they were attached to Creatures/GameObjects spawned by the event itself)

Yes it works fine, just add the creature guid 102700 to the event night 25, then .go c 102700 and .event stop 25 and .event start 25, the npc will start a waypoint upon spawned: Windle Sparkshine - On Game Event 25 Started - Start Waypoint (No Repeat) (Dungeon)

I tested without https://github.com/TrinityCore/TrinityCore/commit/d9ae19d974a8026b0fd4eb8b1d11fa59c758f5d1 and the event "On Game Event " didn't trigger

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chilito picture chilito  路  3Comments

Rushor picture Rushor  路  3Comments

funjoker picture funjoker  路  3Comments

ZenoX92 picture ZenoX92  路  3Comments

Jildor picture Jildor  路  3Comments