@@ -42,7 +42,8 @@ EndContentData */
4242
4343enum
4444{
45- EMOTE_A_HELLO = 4714 ,
45+ EMOTE_HELLO = 4714 ,
46+ EMOTE_TEXT2 = 5170 ,
4647
4748 QUEST_CLUCK = 3861 ,
4849 FACTION_FRIENDLY = 35 ,
@@ -72,7 +73,7 @@ struct npc_chicken_cluckAI : public CritterAI
7273
7374 void Reset ()
7475 {
75- m_uiResetFlagTimer = 120000 ;
76+ m_uiResetFlagTimer = 20000 ;
7677
7778 m_creature->SetFactionTemplateId (FACTION_CHICKEN);
7879 m_creature->RemoveFlag (UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
@@ -89,7 +90,7 @@ struct npc_chicken_cluckAI : public CritterAI
8990 m_creature->SetFlag (UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
9091 m_creature->SetFactionTemplateId (FACTION_FRIENDLY);
9192
92- DoScriptText (EMOTE_A_HELLO , m_creature);
93+ DoScriptText (EMOTE_HELLO , m_creature);
9394 }
9495 }
9596 }
@@ -100,6 +101,8 @@ struct npc_chicken_cluckAI : public CritterAI
100101 {
101102 m_creature->SetFlag (UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
102103 m_creature->SetFactionTemplateId (FACTION_FRIENDLY);
104+
105+ DoScriptText (EMOTE_TEXT2, m_creature);
103106 }
104107 }
105108 }
@@ -110,7 +113,7 @@ struct npc_chicken_cluckAI : public CritterAI
110113 if (m_creature->HasFlag (UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER))
111114 {
112115 if (m_uiResetFlagTimer < uiDiff)
113- EnterEvadeMode ();
116+ Reset ();
114117 else
115118 m_uiResetFlagTimer -= uiDiff;
116119 }
@@ -124,28 +127,6 @@ CreatureAI* GetAI_npc_chicken_cluck(Creature* pCreature)
124127 return new npc_chicken_cluckAI (pCreature);
125128}
126129
127- bool QuestAccept_npc_chicken_cluck (Player* pPlayer, Creature* pCreature, Quest const * pQuest)
128- {
129- if (pQuest->GetQuestId () == QUEST_CLUCK)
130- {
131- if (npc_chicken_cluckAI* pChickenAI = dynamic_cast <npc_chicken_cluckAI*>(pCreature->AI ()))
132- pChickenAI->Reset ();
133- }
134-
135- return true ;
136- }
137-
138- bool QuestComplete_npc_chicken_cluck (Player* pPlayer, Creature* pCreature, Quest const * pQuest)
139- {
140- if (pQuest->GetQuestId () == QUEST_CLUCK)
141- {
142- if (npc_chicken_cluckAI* pChickenAI = dynamic_cast <npc_chicken_cluckAI*>(pCreature->AI ()))
143- pChickenAI->Reset ();
144- }
145-
146- return true ;
147- }
148-
149130/* ######
150131## Triage quest
151132######*/
@@ -2293,8 +2274,6 @@ void AddSC_npcs_special()
22932274 newscript = new Script;
22942275 newscript->Name = " npc_chicken_cluck" ;
22952276 newscript->GetAI = &GetAI_npc_chicken_cluck;
2296- newscript->pQuestAcceptNPC = &QuestAccept_npc_chicken_cluck;
2297- newscript->pQuestComplete = &QuestComplete_npc_chicken_cluck;
22982277 newscript->RegisterSelf ();
22992278
23002279 newscript = new Script;
0 commit comments