Rideas 167 Posted September 29, 2015 Share Posted September 29, 2015 (edited) Is Bug : https://www.youtube.com/watch?v=Sev7dsUrkdk&feature=youtu.beOpen char_item.cppSearch: const int ITEM_BROKEN_METIN_VNUM = 28960; Add: #define ERROR_MSG(exp, msg) \ if (true == (exp)) { \ ChatPacket(CHAT_TYPE_INFO, msg); \ return false; \ } Search: bool CHARACTER::UseItem(TItemPos Cell, TItemPos DestCell) { WORD wCell = Cell.cell; BYTE window_type = Cell.window_type; //WORD wDestCell = DestCell.cell; //BYTE bDestInven = DestCell.window_type; LPITEM item; if (!CanHandleItem()) return false; if (!IsValidItemPosition(Cell) || !(item = GetItem(Cell))) return false; Add: if (ITEM_BELT == item->GetType()) ERROR_MSG(CBeltInventoryHelper::IsExistItemInBeltInventory(this), "Error text"); Best Regards Rideas. Edited September 30, 2015 by Rideas 7 Link to comment Share on other sites More sharing options...
Rideas 167 Posted October 1, 2015 Author Share Posted October 1, 2015 Update 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...
Honorable Member Mali 41894 Posted October 4, 2015 Honorable Member Share Posted October 4, 2015 bu bug fixli normalde ama şey lazım kemerde pot varken diğer kemer giyilmemeli Link to comment Share on other sites More sharing options...
Rideas 167 Posted October 5, 2015 Author Share Posted October 5, 2015 bu bug fixli normalde ama şey lazım kemerde pot varken diğer kemer giyilmemeli Öyle zaten kemerde pot varken diğer kemer giyilemiyor. 1 Link to comment Share on other sites More sharing options...
Ken 904 Posted October 5, 2015 Share Posted October 5, 2015 if (ITEM_BELT == item->GetType()) ERROR_MSG(CBeltInventoryHelper::IsExistItemInBeltInventory(this), "Error text"); if (item->GetType() == ITEM_BELT && CBeltInventoryHelper::IsExistItemInBeltInventory(this)) ChatPacket(CHAT_TYPE_INFO, LC_TEXT("이는에러 메시지 이다")); At first, ERROR_MSG define is useless here for me. This condition will be helpful for everyone. Kind Regards ~ Ken 1 Do not be sorry, be better. Link to comment Share on other sites More sharing options...
Rideas 167 Posted October 5, 2015 Author Share Posted October 5, 2015 if (ITEM_BELT == item->GetType()) ERROR_MSG(CBeltInventoryHelper::IsExistItemInBeltInventory(this), "Error text"); if (item->GetType() == ITEM_BELT && CBeltInventoryHelper::IsExistItemInBeltInventory(this)) ChatPacket(CHAT_TYPE_INFO, LC_TEXT("이는에러 메시지 이다")); At first, ERROR_MSG define is useless here for me. This condition will be helpful for everyone. Kind Regards ~ Ken Thanks Link to comment Share on other sites More sharing options...
str0nd3r 0 Posted October 11, 2015 Share Posted October 11, 2015 if (ITEM_BELT == item->GetType()) ERROR_MSG(CBeltInventoryHelper::IsExistItemInBeltInventory(this), "Error text"); if (item->GetType() == ITEM_BELT && CBeltInventoryHelper::IsExistItemInBeltInventory(this)) ChatPacket(CHAT_TYPE_INFO, LC_TEXT("이는에러 메시지 이다")); At first, ERROR_MSG define is useless here for me. This condition will be helpful for everyone. Kind Regards ~ Kenplace the 1st or 2nd? Link to comment Share on other sites More sharing options...
Recommended Posts