Core/SAI: Allow using default npc_text from gossip_menu with SMART_ACTION_SEND_GOSSIP_MENU

Port From (https://github.com/TrinityCore/TrinityCore/commit/9ca8cf66e60c95ec3d20ed2c276623be2bb98713)
This commit is contained in:
hondacrx
2022-07-09 12:31:37 -04:00
parent 52523ce8ee
commit 5404654d65
2 changed files with 8 additions and 2 deletions
+3 -1
View File
@@ -2581,6 +2581,7 @@ namespace Game.Entities
ModifyMoney(-cost);
}
public uint GetGossipTextId(WorldObject source)
{
if (source == null)
@@ -2588,7 +2589,8 @@ namespace Game.Entities
return GetGossipTextId(GetDefaultGossipMenuForSource(source), source);
}
uint GetGossipTextId(uint menuId, WorldObject source)
public uint GetGossipTextId(uint menuId, WorldObject source)
{
uint textId = SharedConst.DefaultGossipMessage;