Skip to content

Quest: Cluck #26

@scotty0100

Description

@scotty0100

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions