Premium Iηfιηιт²⁴ᵏ 33 Posted November 15, 2018 Premium Share Posted November 15, 2018 Hello,I want a quest teleport players to map1 when die Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted November 15, 2018 Premium Share Posted November 15, 2018 quest ondie begin state start begin when die begin go_home() end end end Considering you have those functions in your source. Link to comment Share on other sites More sharing options...
Premium Iηfιηιт²⁴ᵏ 33 Posted November 15, 2018 Author Premium Share Posted November 15, 2018 And if I do not have?Can you help with that? Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted November 15, 2018 Premium Share Posted November 15, 2018 You need to add "go_home" and "die" functions to your source, a bit busy atm, will post when i get a bit more time unless someone does it first Link to comment Share on other sites More sharing options...
Silver Sonitex 1437 Posted November 15, 2018 Silver Share Posted November 15, 2018 This is already public just search for 'metin2 death quest trigger' and to warp a player use warp_to_village(). Link to comment Share on other sites More sharing options...
Premium Iηfιηιт²⁴ᵏ 33 Posted November 15, 2018 Author Premium Share Posted November 15, 2018 Can give me link with this?? Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted November 16, 2018 Premium Share Posted November 16, 2018 Die File quest.h Look for: QUEST_EVENT_COUNT Add before: QUEST_DIE_EVENT, File questmanager.h Look for: void Kill (unsigned int pc, unsigned int npc); Add after: void Die (unsigned int pc, unsigned int npc); File questnpc.h Look for: bool OnPartyKill (PC &pc); Add after: bool OnDie (PC &pc); File char_battle.cpp Inside the function void CHARACTER::Dead (LPCHARACTER pkKiller, bool bImmediateDead) Look for: m_dwKillerPID = 0; Add after: if (IsPC()) { if (pkKiller) { SetQuestNPCID (pkKiller->GetVID()); } quest::CQuestManager::instance().Die (GetPlayerID(), (pkKiller) ? pkKiller->GetRaceNum() : quest::QUEST_NO_NPC); } File questmanager.cpp Look for: m_mapEventName.insert (TEventNameMap::value_type ("item_informer", QUEST_ITEM_INFORMER_EVENT)); Add after: m_mapEventName.insert (TEventNameMap::value_type ("die", QUEST_DIE_EVENT)); Look for: bool CQuestManager::ServerTimer (unsigned int npc, unsigned int arg) Add before: void CQuestManager::Die (unsigned int pc, unsigned int npc) { PC *pPC; sys_log (0, "CQuestManager::Kill QUEST_DIE_EVENT (pc=%d, npc=%d)", pc, npc); if ((pPC = GetPC (pc))) { if (!CheckQuestLoaded (pPC)) { return; } m_mapNPC[QUEST_NO_NPC].OnDie (*pPC); } else { sys_err ("QUEST: no such pc id : %d", pc); } } File questnpc.cpp Look for: bool NPC::OnLevelUp (PC &pc) Add before: bool NPC::OnDie (PC &pc) { return HandleReceiveAllEvent (pc, QUEST_DIE_EVENT); } You can use warp_to_village() instead of go_home() like written above. Just replace it in the quest. 1 Link to comment Share on other sites More sharing options...
Premium Iηfιηιт²⁴ᵏ 33 Posted December 11, 2018 Author Premium Share Posted December 11, 2018 (edited) https://metin2.download/picture/cqE1F82X36SqokxIXCip5wGKd1A2xCad/.png Edited September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted December 11, 2018 Premium Share Posted December 11, 2018 Dont copy-paste stuff from here, write it instead. BBcode is all fucked up and will add ? to your copied content. You can see it when copying everything, changing file encoding to ANSI and pasting. Link to comment Share on other sites More sharing options...
Premium Iηfιηιт²⁴ᵏ 33 Posted December 12, 2018 Author Premium Share Posted December 12, 2018 when I kill someone the server sends me on map1 not the other Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted December 12, 2018 Premium Share Posted December 12, 2018 On 12/12/2018 at 7:25 PM, Iηfιηιт²⁴ᵏ said: when I kill someone the server sends me on map1 not the other Do exactly as its written here and with the quest above. Link to comment Share on other sites More sharing options...
Chriss 1922 Posted December 14, 2018 Share Posted December 14, 2018 I forgot about the bbcode , if you still need it give me a private message. Link to comment Share on other sites More sharing options...
PandiCore 9 Posted March 11, 2021 Share Posted March 11, 2021 solution i have this problem ? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now