Ejemplo n.º 1
0
    void OnSelectOption(Object* pObject, Player* plr, uint32 Id, const char* Code)
    {
        auto quest_entry = plr->GetQuestLogForEntry(11142);
        if (quest_entry == nullptr)
            return;
        quest_entry->SendQuestComplete();

        plr->TaxiStart(sTaxiMgr.GetTaxiPath(724), 1147, 0);     // Gryph
    }
Ejemplo n.º 2
0
    void OnReachWP(uint32 iWaypointId, bool /*bForwards*/) override
    {
        if (iWaypointId == 19)
        {
            getCreature()->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "Tell Marshal Marris. I'm outta here!");
            getCreature()->Despawn(5000, 1000);
            getCreature()->DeleteWaypoints();
            if (getCreature()->m_escorter == NULL)
                return;

            Player* plr = getCreature()->m_escorter;
            getCreature()->m_escorter = NULL;

            auto quest_entry = plr->GetQuestLogForEntry(219);
            if (quest_entry == nullptr)
                return;
            quest_entry->SendQuestComplete();
        }
    }
Ejemplo n.º 3
0
        void OnReachWP(uint32 iWaypointId, bool bForwards)
        {
            if(iWaypointId == 15)
            {
                _unit->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "Thanks, I found the fact that, it searched");
                _unit->Despawn(5000, 1000);
                sEAS.DeleteWaypoints(_unit);

                if (_unit->m_escorter == nullptr)
                    return;

                Player* plr = _unit->m_escorter;
                _unit->m_escorter = nullptr;

                auto quest_entry = plr->GetQuestLogForEntry(665);
                if (quest_entry == nullptr)
                    return;
                quest_entry->SendQuestComplete();
            }
        }
Ejemplo n.º 4
0
        // makes no sense... why do we check on wp 72 if player has this quest.... too late?
        void OnReachWP(uint32 iWaypointId, bool bForwards)
        {
            if(iWaypointId == 72)
            {
                _unit->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "I appreciate the help you have shown Pao'ka. I hope this covers any misfortunes this deed has cost you.");
                _unit->Despawn(5000, 1000);
                sEAS.DeleteWaypoints(_unit);
                if(_unit->m_escorter == NULL)
                    return;
                Player* plr = _unit->m_escorter;
                _unit->m_escorter = NULL;

                if (plr->HasQuest(4770))
                {
                    auto quest_entry = plr->GetQuestLogForEntry(4770);
                    if (quest_entry == nullptr)
                        return;
                    quest_entry->SendQuestComplete();
                }
            }
        }
Ejemplo n.º 5
0
        void OnReachWP(uint32 iWaypointId, bool bForwards)
        {
            if (iWaypointId == 19)
            {
                _unit->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "Tell your master that this is where Van Cleef is hiding. I'm outta here!");
                _unit->Despawn(5000, 1000);
                sEAS.DeleteWaypoints(_unit);

                if (_unit->m_escorter == nullptr)
                    return;

                Player* plr = _unit->m_escorter;
                _unit->m_escorter = nullptr;

                auto quest_entry = plr->GetQuestLogForEntry(155);
                if (quest_entry == nullptr)
                    return;

                quest_entry->SendQuestComplete();
            }
        }
Ejemplo n.º 6
0
    void OnReachWP(uint32 iWaypointId, bool /*bForwards*/) override
    {
        switch (iWaypointId)
        {
            case 15:
            {
                getCreature()->SendChatMessage(CHAT_MSG_MONSTER_SAY, LANG_UNIVERSAL, "Thanks for your help. I'll continue from here!");
                if (getCreature()->m_escorter == NULL)
                    return;
                Player* plr = getCreature()->m_escorter;
                getCreature()->m_escorter = NULL;

                auto quest_entry = plr->GetQuestLogForEntry(6523);
                if (quest_entry == nullptr)
                    return;
                quest_entry->SendQuestComplete();
            }break;
            case 17:
            {
                getCreature()->Despawn(5000, 1000);
            }break;
        }
    }