Krixius 13 Posted September 18, 2015 Share Posted September 18, 2015 Hi dev I want if anyone know if its posible to block the teleport to X maps with the ring of marriage. If its posible can u tell me how i need to do it?. Regards Akroma Link to comment Share on other sites More sharing options...
Active Member Koray 2001 Posted September 18, 2015 Active Member Share Posted September 18, 2015 char_item.cpp case ITEM_MARRIAGE_RING: if (idx == pMarriage->ch1->GetMapIndex() || idx == pMarriage->ch2->GetMapIndex()){ ... } 1 Link to comment Share on other sites More sharing options...
Krixius 13 Posted September 18, 2015 Author Share Posted September 18, 2015 (edited) what i need to put in the ...? And its posible to do a array with a while for do a less code? Edited September 18, 2015 by akroma Link to comment Share on other sites More sharing options...
Active Member Koray 2001 Posted September 18, 2015 Active Member Share Posted September 18, 2015 (edited) int iBadMapIdx[2] = { 66, 208 }; for (int i = 0; i < _countof(iBadMapIdx); i++){ if (iBadMapIdx[i] == pMarriage->ch1->GetMapIndex() || iBadMapIdx[i] == pMarriage->ch2->GetMapIndex()){ ChatPacket(CHAT_TYPE_INFO, "warn msg"); break; } } #Edit: has more than one "case ITEM_MARRIAGE_RING:" case ITEM_MARRIAGE_RING: { marriage::TMarriage* pMarriage = marriage::CManager::instance().Get(GetPlayerID()); add in under Edited September 18, 2015 by Koray Link to comment Share on other sites More sharing options...
Krixius 13 Posted September 18, 2015 Author Share Posted September 18, 2015 thx koray but i solve it fast. btw thx for ur suport 1 Link to comment Share on other sites More sharing options...
Krixius 13 Posted September 18, 2015 Author Share Posted September 18, 2015 (edited) well i have news about that, i don't know why the block don't work properly. Anyone knows why?. https://metin2.download/picture/r3F9504x09DVmF8K988YXgTtGTP6KMUj/.gif Edited August 19, 2022 by Metin2 Dev Core X - External 2 Internal 2 1 1 Link to comment Share on other sites More sharing options...
Premium Lufbert 20 Posted September 19, 2015 Premium Share Posted September 19, 2015 Don't do like you do. Open char_item.cpp Find: bool IS_SUMMONABLE_ZONE(int map_index) and add your blocked map index under: case 208 : like this: case 208 : case your_map_index : Link to comment Share on other sites More sharing options...
myenglishisbad 0 Posted June 12, 2016 Share Posted June 12, 2016 Still Need Help?, I have a Solution 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