Core/Quests: Fixed questgiver icons

Port From (https://github.com/TrinityCore/TrinityCore/commit/5f3a2d2abf296d1eaf9788244100c91de8b7a619)
This commit is contained in:
hondacrx
2020-12-14 14:01:25 -05:00
parent 5d6f0d6401
commit 56d007da4c
11 changed files with 178 additions and 48 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ namespace Game.AI
/// <summary>
/// Called when the dialog status between a player and the gameobject is requested.
/// </summary>
public virtual uint GetDialogStatus(Player player) { return 100; }
public virtual QuestGiverStatus GetDialogStatus(Player player) { return QuestGiverStatus.ScriptedDefault; }
// Called when a Player clicks a GameObject, before GossipHello
// prevents achievement tracking if returning true
+1 -1
View File
@@ -529,7 +529,7 @@ namespace Game.AI
public virtual void OnGameEvent(bool start, ushort eventId) { }
// Called when the dialog status between a player and the creature is requested.
public virtual QuestGiverStatus GetDialogStatus(Player player) { return QuestGiverStatus.ScriptedNoStatus; }
public virtual QuestGiverStatus GetDialogStatus(Player player) { return QuestGiverStatus.ScriptedDefault; }
public virtual void WaypointStarted(uint nodeId, uint pathId) { }
-5
View File
@@ -1079,11 +1079,6 @@ namespace Game.AI
GetScript().ProcessEventsFor(SmartEvents.RewardQuest, player, quest.Id, opt, false, null, me);
}
public override uint GetDialogStatus(Player player)
{
return 100;
}
public override void Destroyed(Player player, uint eventId)
{
GetScript().ProcessEventsFor(SmartEvents.Death, player, eventId, 0, false, null, me);