Rideas 167 Posted September 25, 2015 Share Posted September 25, 2015 (edited) Open : cmd_general.cpp Search: ACMD(do_unmount) { if (true == ch->UnEquipSpecialRideUniqueItem()) { ch->RemoveAffect(AFFECT_MOUNT); ch->RemoveAffect(AFFECT_MOUNT_BONUS); if (ch->IsHorseRiding()) { ch->StopRiding(); } } else { ch->ChatPacket( CHAT_TYPE_INFO, LC_TEXT("Àκ¥Å丮°¡ ²Ë Â÷¼ ³»¸± ¼ö ¾ø½À´Ï´Ù.")); } } Replace:ACMD(do_unmount) { LPITEM item = ch->GetWear(WEAR_UNIQUE1); LPITEM item2 = ch->GetWear(WEAR_UNIQUE2); if (item && item->IsRideItem()) ch->UnequipItem(item); if (item2 && item2->IsRideItem()) ch->UnequipItem(item2); if (true == ch->UnEquipSpecialRideUniqueItem()) { ch->RemoveAffect(AFFECT_MOUNT); ch->RemoveAffect(AFFECT_MOUNT_BONUS); if (ch->IsHorseRiding()) { ch->StopRiding(); } } else { ch->ChatPacket( CHAT_TYPE_INFO, LC_TEXT("Àκ¥Å丮°¡ ²Ë Â÷¼ ³»¸± ¼ö ¾ø½À´Ï´Ù.")); } } Open char_battle.cpp Search: RemoveAffect(AFFECT_MOUNT_BONUS); Add: LPITEM item = GetWear(WEAR_UNIQUE1); LPITEM item2 = GetWear(WEAR_UNIQUE2); if (item && item->IsRideItem()) UnequipItem(item); if (item2 && item2->IsRideItem()) UnequipItem(item2); Best Regards Rideas. Edited October 5, 2015 by Rideas 6 Link to comment Share on other sites More sharing options...
Night 366 Posted September 25, 2015 Share Posted September 25, 2015 if (true == ch->UnEquipSpecialRideUniqueItem()) ymirist. if (ch->UnEquipSpecialRideUniqueItem()) this is a bit normal. Link to comment Share on other sites More sharing options...
Ken.Kaneki 46 Posted September 25, 2015 Share Posted September 25, 2015 (edited) Thanks bro Edited September 25, 2015 by Ken.Kaneki Link to comment Share on other sites More sharing options...
Rideas 167 Posted September 26, 2015 Author Share Posted September 26, 2015 Thanks bro No problem if (true == ch->UnEquipSpecialRideUniqueItem()) ymirist. if (ch->UnEquipSpecialRideUniqueItem()) this is a bit normal. :) Link to comment Share on other sites More sharing options...
Premium AndreiYildirim 5 Posted September 26, 2015 Premium Share Posted September 26, 2015 if (true == ch->UnEquipSpecialRideUniqueItem()) ymirist. if (ch->UnEquipSpecialRideUniqueItem()) this is a bit normal. Its the same thing. Link to comment Share on other sites More sharing options...
Premium V0iĐ 114 Posted September 27, 2015 Premium Share Posted September 27, 2015 Yes, but the first is very ugly and unnecessary I think so real Ymir coding style! 1 Link to comment Share on other sites More sharing options...
Rideas 167 Posted October 3, 2015 Author Share Posted October 3, 2015 Update Link to comment Share on other sites More sharing options...
Ken 904 Posted October 5, 2015 Share Posted October 5, 2015 ACMD(do_unmount) { LPITEM pItem = ch->GetWear(WEAR_UNIQUE1); LPITEM pItem2 = ch->GetWear(WEAR_UNIQUE2); if (pItem && pItem->IsRideItem()) ch->UnequipItem(pItem) else if (pItem2 && pItem2->IsRideItem()) ch->UnequipItem(pItem2); if (ch->UnequipSpecialRideUniqueItem()) { ch->RemoveAffect(AFFECT_MOUNT); ch->RemoveAffect(AFFECT_MOUNT_BONUS); if (ch->IsHorseRiding()) ch->StopRiding(); } else ch->ChatPacket( CHAT_TYPE_INFO, LC_TEXT("Àκ¥Å丮°¡ ²Ë Â÷¼ ³»¸± ¼ö ¾ø½À´Ï´Ù.")); } ///////////////////////////////////////////////////////////////////////////////////////////////// LPITEM pItem = ch->GetWear(WEAR_UNIQUE1); LPITEM pItem2 = ch->GetWear(WEAR_UNIQUE2); if (pItem && pItem->IsRideItem()) UnequipItem(pItem) else if (pItem2 && pItem2->IsRideItem()) UnequipItem(pItem2); Much better and thank you for share this fix with us. Kind Regards ~ Ken 1 Do not be sorry, be better. Link to comment Share on other sites More sharing options...
daredevil09 5 Posted February 21, 2016 Share Posted February 21, 2016 what bug? Link to comment Share on other sites More sharing options...
Bot Metin2 Dev 4884 Posted February 21, 2016 Bot Share Posted February 21, 2016 what is the actual bug, can you explain that pls? Link to comment Share on other sites More sharing options...
Recommended Posts