TrinityCore
TrinityCore copied to clipboard
Core/Gossip: gossip_menu_option new params
Description
We need the following columns in gossip_menu_option:
- SpellID (spell to cast on player when gossip option is selected)
- IsTriggered (cast spell with triggered cast flag if set to 1 (needed for some spells))
- AutoClose (close gossip menu automatically after gossip is selected, if set to 1)
This is based on the following facts:
- On retail there's no AI hook OnGossipSelect
- On retail there's no action in AIGroup to close gossip
- I did some research back in the days and there are signs that gossip scripts are scripted by calling GameEvent. I don't remember details
- There is an enum in EnumeratedStrings that contains flags like 'Cast' and 'Start Pet Battle' or something like that, I don't remember correct names
Expected behaviour
above
Steps to reproduce the problem
none
Branch
3.3.5
TC rev. hash/commit
a1814cf13d24e7bb5142417a6f8f0dfd08db72e1
Operating system
Win 11
Custom changes
none
is this not exactly what Smart Scripting was invented for
though DB mentions type 4 isnt supported (yet)
SMART_SCRIPT_TYPE_GOSSIP
This script type will be a bad decision What I'm suggesting is exactly how it is implemented on retail