Jump to content
×
×
  • Create New...

How To Fix Belt Inventory Bug 2


Recommended Posts

Is Bug : https://www.youtube.com/watch?v=Sev7dsUrkdk&feature=youtu.be


Open char_item.cpp


Search:

 

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 by Rideas
  • Love 7
Link to comment
Share on other sites

  • Moon
	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

  • Love 1

Do not be sorry, be better.

Link to comment
Share on other sites

	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

	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

place the 1st or 2nd?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Activity

    1. 6
    2. 9

      Help in implementing a switch bot

    3. 0

      Special Inventory System Can't Sell To Npc's

    4. 0

      ROV2.GLOBAL | International | Server start 14.05.2022

    5. 75

      Services - System Ard [C ++ / Python / Lua]

    6. 76

      Chatting Window Renewal (Mini Version)

    7. 2

      ItemShop GM ZONE TAB

    8. 9

      Help in implementing a switch bot

  • Recently Browsing

    • No registered users viewing this page.

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.