-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
in npcs_special.cpp, the following code doesn't seem to work. Unless my luck is just really really bad, tried about 250+ times :0
Does the random even work?
Also you can skip the whole /chicken part, by just saying /cheer to the chicken which isn't correct. So we need a check on TEXTEMOTE_CHEER to make sure the target is friendly.
if (uiEmote == TEXTEMOTE_CHICKEN)
{
if (!urand(0, 29))
{
if (pPlayer->GetQuestStatus(QUEST_CLUCK) == QUEST_STATUS_NONE)
{
m_creature->SetFlag(UNIT_NPC_FLAGS, UNIT_NPC_FLAG_QUESTGIVER);
m_creature->setFaction(FACTION_FRIENDLY);
DoScriptText(EMOTE_A_HELLO, m_creature);
/* are there any difference in texts, after 3.x ?
if (pPlayer->GetTeam() == HORDE)
DoScriptText(EMOTE_H_HELLO, m_creature);
else
DoScriptText(EMOTE_A_HELLO, m_creature);
*/
}
}
}
Source: http://www.wowwiki.com/Quest:CLUCK!
Metadata
Metadata
Assignees
Labels
No labels