Minion 75 Posted August 22, 2014 Share Posted August 22, 2014 M2 Download Center This is the hidden content, please Sign In or Sign Up ( Internal ) 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()); Usage: when dead begin syschat("You are dead.") end Enjoy! 6 1 2 5 Link to comment Share on other sites More sharing options...
Night 367 Posted August 22, 2014 Share Posted August 22, 2014 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 Link to comment Share on other sites More sharing options...
Minion 75 Posted August 22, 2014 Author Share Posted August 22, 2014 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 Link to comment Share on other sites More sharing options...
Denis 1477 Posted August 22, 2014 Share Posted August 22, 2014 At least give some credits http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/3064054-sammelthread-40k-function-wishes-5.html#post26757916 1 Link to comment Share on other sites More sharing options...
Minion 75 Posted August 22, 2014 Author Share Posted August 22, 2014 At least give some credits http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/3064054-sammelthread-40k-function-wishes-5.html#post26757916 5. Die Funktion in Dead-Funktion der CHARACTER-Klasse aufrufen Not work. 1 Link to comment Share on other sites More sharing options...
Risan 115 Posted August 29, 2014 Share Posted August 29, 2014 This Code is not works, is correctly but why is not works.. I have no idea 1 Link to comment Share on other sites More sharing options...
Recommended Posts