Minion

[C++]DEAD_EVENT

6 posts in this topic

Open quest.h
find the line

 

QUEST_ITEM_INFORMER_EVENT,

 

Add after 

 

QUEST_DEAD_EVENT,

Open questmanager.cpp

find the line

 

m_mapEventName.insert(TEventNameMap::value_type("item_informer", QUEST_ITEM_INFORMER_EVENT));

 

Add after 

 

m_mapEventName.insert(TEventNameMap::value_type("dead", QUEST_DEAD_EVENT));

 

add function 

 

void CQuestManager::Dead(unsigned int pc)

    {
        PC * pPC;

        if ((pPC = GetPC(pc)))
        {
            if (!CheckQuestLoaded(pPC))
                return;

            m_mapNPC[QUEST_NO_NPC].OnDead(*pPC);
        }
        else
            sys_err("QUEST no such pc id : %d", pc);
    }

 

open questmanager.h

find the line 

 

void        Kill(unsigned int pc, unsigned int npc);

 

add after

 

void        Dead(unsigned int pc);

 

open questnpc.quest

add function

 

    bool NPC::OnDead(PC& pc)

    {
        return HandleReceiveAllEvent(pc, QUEST_DEAD_EVENT);
    }

 

questnpc.h

find the line 

 

bool    OnKill(PC& pc);

 

add after 

 

bool    OnDead(PC& pc);

 

open char_battle.cpp

 

fine the line

 

void CHARACTER::Dead(LPCHARACTER pkKiller, bool bImmediateDead)

 

added at the beginning

 

quest::CQuestManager::instance().Dead(GetPlayerID());

 

 

Sorry my bad English and bad decor

 

  • Like 3

Share this post


Link to post
Share on other sites

Open quest.h

find the line

QUEST_ITEM_INFORMER_EVENT,

Add after 

QUEST_DEAD_EVENT,

Open questmanager.cpp

find the line

m_mapEventName.insert(TEventNameMap::value_type("item_informer", QUEST_ITEM_INFORMER_EVENT));

Add after 

m_mapEventName.insert(TEventNameMap::value_type("dead", QUEST_DEAD_EVENT));

add function 

void CQuestManager::Dead(unsigned int pc)
    {
        PC * pPC;

        if ((pPC = GetPC(pc)))
        {
            if (!CheckQuestLoaded(pPC))
                return;

            m_mapNPC[QUEST_NO_NPC].OnDead(*pPC);
        }
        else
            sys_err("QUEST no such pc id : %d", pc);
    }

open questmanager.h

find the line 

void        Kill(unsigned int pc, unsigned int npc);

add after

void        Dead(unsigned int pc);

open questnpc.quest

add function

    bool NPC::OnDead(PC& pc)
    {
        return HandleReceiveAllEvent(pc, QUEST_DEAD_EVENT);
    }

questnpc.h

find the line 

bool    OnKill(PC& pc);

add after 

bool    OnDead(PC& pc);

open char_battle.cpp

 

fine the line

void CHARACTER::Dead(LPCHARACTER pkKiller, bool bImmediateDead)

added at the beginning

quest::CQuestManager::instance().Dead(GetPlayerID());

Sorry my bad English and bad decor

 

use the code next time

and i think your english is usefull for topic like this ^^

thanks anyway

Share this post


Link to post
Share on other sites

 

Open quest.h

find the line

QUEST_ITEM_INFORMER_EVENT,

Add after 

QUEST_DEAD_EVENT,

Open questmanager.cpp

find the line

m_mapEventName.insert(TEventNameMap::value_type("item_informer", QUEST_ITEM_INFORMER_EVENT));

Add after 

m_mapEventName.insert(TEventNameMap::value_type("dead", QUEST_DEAD_EVENT));

add function 

void CQuestManager::Dead(unsigned int pc)
    {
        PC * pPC;

        if ((pPC = GetPC(pc)))
        {
            if (!CheckQuestLoaded(pPC))
                return;

            m_mapNPC[QUEST_NO_NPC].OnDead(*pPC);
        }
        else
            sys_err("QUEST no such pc id : %d", pc);
    }

open questmanager.h

find the line 

void        Kill(unsigned int pc, unsigned int npc);

add after

void        Dead(unsigned int pc);

open questnpc.quest

add function

    bool NPC::OnDead(PC& pc)
    {
        return HandleReceiveAllEvent(pc, QUEST_DEAD_EVENT);
    }

questnpc.h

find the line 

bool    OnKill(PC& pc);

add after 

bool    OnDead(PC& pc);

open char_battle.cpp

 

fine the line

void CHARACTER::Dead(LPCHARACTER pkKiller, bool bImmediateDead)

added at the beginning

quest::CQuestManager::instance().Dead(GetPlayerID());

Sorry my bad English and bad decor

 

use the code next time

and i think your english is usefull for topic like this ^^

thanks anyway

 

 

I am from Russia. therefore use translate.google.ru :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.