Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quest: Cluck #26

Open
scotty0100 opened this issue Sep 29, 2014 · 2 comments
Open

Quest: Cluck #26

scotty0100 opened this issue Sep 29, 2014 · 2 comments

Comments

@scotty0100
Copy link

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!

@xfurry
Copy link
Member

xfurry commented Jan 14, 2015

Well chances are 0.033333%
Maybe you were unlucky.

@Schmoozerd
Copy link
Member

3.3..% :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants