Jump to content

Jira

Premium
  • Posts

    191
  • Joined

  • Days Won

    2
  • Feedback

    0%

Posts posted by Jira

  1. 54 minutes ago, AltanOzkan said:

    Is it working at gcc49? What should i change at your codes ?

    At my codes

    
    	ALUA(item_select_cell)
    	{
    		lua_pushboolean(L, 0);
    		if (!lua_isnumber(L, 1))
    		{
    			return 1;
    		}
    		DWORD cell = (DWORD) lua_tonumber(L, 1);
    
    		LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr();
    		LPITEM item = ch ? ch->GetInventoryItem(cell) : NULL;
    
    		if (!item)
    		{
    			return 1;
    		}
    
    		CQuestManager::instance().SetCurrentItem(item);
    		lua_pushboolean(L, 1);
    
    		return 1;
    	}

    At your codes 

    
    	int item_get_flag(lua_State* L)
    	{
    		LPITEM item = CQuestManager::instance().GetCurrentItem();
    
    		lua_pushnumber(L, item ? item->GetFlag() : 0);
    		return 1;
    	}

     

    	ALUA (item_get_flag)
    	{
    		LPITEM item = CQuestManager::instance().GetCurrentItem();
    
    		lua_pushnumber(L, item ? item->GetFlag() : 0);
    		return 1;
    	}
    54 minutes ago, AltanOzkan said:

    Is it working at gcc49?

    Yes.

    • Love 1
  2. char_item.cpp

    case ITEM_GIFTBOX:

    https://metin2.download/picture/EMOyYX9HMkctTNhnFBC7CAja82QR0pp8/.png

    Spoiler
    
    		int iEmptyCell;
    		const char* string;
    		if (item->IsDragonSoul())
    		{
    			iEmptyCell = GetEmptyDragonSoulInventory(item);
    			string = "There isn't enough space in your ds inventory.";
    		}
    		else
    		{
    			iEmptyCell = GetEmptyInventory(item->GetSize());
    			string = "There isn't enough space in your inventory.";
    		}
    
    		if (iEmptyCell == -1)
    		{
    			ChatPacket(CHAT_TYPE_INFO, LC_TEXT(string));
    			return false;
    		}

     

     

    • Good 2
×
×
  • Create New...

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.