Jump to content
metin2dev
Ekstasia2

Search the Community

Showing results for tags 'inventory'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Community
    • Announcements
    • Feedback
  • Metin2
    • General
    • Questions and Answers
    • Guides & HowTo
    • Design
    • Private Servers
    • Services
    • Videos
  • Releases
    • General
    • Tools
    • Programming / Scripts
    • Quests
    • Binaries & Clients/Serverfiles
    • 3D Models
    • 2D Graphics
    • Operating Systems
  • Safe Zone
    • Offtopic
    • Games Talk
    • Music/Videos/Art

Categories

There are no results to display.

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


ICQ


Yahoo


Skype


Location

Found 24 results

  1. Hello everyone. It's a good day to share an old code with you. First of all you need to know: I don't help to install it. Don't even take the contact with me about it. The whole code is written by me, and reversed from official binaries. At the beginning do a backup for your files(srcs+pys) and READ CAREFULLY the readme. W/o brain.exe please close this tab, or your browser, thank you for your understanding. Preview: Download.exe Enjoy & #h4v3fun, pngr
  2. Hi all. My client has a very annoying bug. My inventory sidebar is like this: If I warp from commands (with inventory open too) or from quest with inventory closed all is ok, but when I warp from teleport ring or any other quest with inventory open it does this: Thank you!
  3. passaport

    open Inventory Expansion Bug

    Hi, metin2dev The bug is manifest like this : My exchange.cpp file: bool CExchange::CheckSpace() { static CGrid s_grid1(5, 9); // 9 Rows a 5 Columns static CGrid s_grid2(5, 9); // 9 Rows a 5 Columns static CGrid s_grid3(5, 9); // 9 Rows a 5 Columns static CGrid s_grid4(5, 9); // 9 Rows a 5 Columns s_grid1.Clear(); s_grid2.Clear(); s_grid3.Clear(); s_grid4.Clear(); LPCHARACTER victim = GetCompany()->GetOwner(); LPITEM item; int i; const int perPageSlotCount = INVENTORY_MAX_NUM / 4; for (i = 0; i < INVENTORY_MAX_NUM; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; BYTE itemSize = item->GetSize(); if (i < perPageSlotCount) // Notice: This is adjusted for 4 Pages only! s_grid1.Put(i, 1, itemSize); else if (i < perPageSlotCount * 2) s_grid2.Put(i - perPageSlotCount, 1, itemSize); else if (i < perPageSlotCount * 3) s_grid3.Put(i - perPageSlotCount * 2, 1, itemSize); else s_grid4.Put(i - perPageSlotCount * 3, 1, itemSize); } static std::vector <WORD> s_vDSGrid(DRAGON_SOUL_INVENTORY_MAX_NUM); bool bDSInitialized = false; for (i = 0; i < EXCHANGE_ITEM_MAX_NUM; ++i) { if (!(item = m_apItems[i])) continue; #ifdef NEW_ADD_INVENTORY int envanterblack; if (item->IsDragonSoul()) envanterblack = victim->GetEmptyDragonSoulInventory(item); else envanterblack = victim->GetEmptyInventory(item->GetSize()); if (envanterblack < 0) { victim->ChatPacket(CHAT_TYPE_INFO, "Text Bug1"); GetOwner()->ChatPacket(CHAT_TYPE_INFO, "Text Bug2"); return false; } #endif BYTE itemSize = item->GetSize(); if (item->IsDragonSoul()) { if (!victim->DragonSoul_IsQualified()) return false; if (!bDSInitialized) { bDSInitialized = true; victim->CopyDragonSoulItemGrid(s_vDSGrid); } bool bExistEmptySpace = false; WORD wBasePos = DSManager::instance().GetBasePosition(item); if (wBasePos >= DRAGON_SOUL_INVENTORY_MAX_NUM) return false; for (int i = 0; i < DRAGON_SOUL_BOX_SIZE; i++) { WORD wPos = wBasePos + i; if (0 == s_vDSGrid[wBasePos]) { bool bEmpty = true; for (int j = 1; j < item->GetSize(); j++) { if (s_vDSGrid[wPos + j * DRAGON_SOUL_BOX_COLUMN_NUM]) { bEmpty = false; break; } } if (bEmpty) { for (int j = 0; j < item->GetSize(); j++) { s_vDSGrid[wPos + j * DRAGON_SOUL_BOX_COLUMN_NUM] = wPos + 1; } bExistEmptySpace = true; break; } } if (bExistEmptySpace) break; } if (!bExistEmptySpace) return false; } else { int iPos = s_grid1.FindBlank(1, itemSize); if (iPos >= 0) { s_grid1.Put(iPos, 1, itemSize); continue; } iPos = s_grid2.FindBlank(1, itemSize); if (iPos >= 0) { s_grid2.Put(iPos, 1, itemSize); continue; } iPos = s_grid3.FindBlank(1, itemSize); if (iPos >= 0) { s_grid3.Put(iPos, 1, itemSize); continue; } iPos = s_grid4.FindBlank(1, itemSize); if (iPos >= 0) { s_grid4.Put(iPos, 1, itemSize); continue; } return false; // No space left in inventory } } return true; } If i don't have any space in inventory and i make a trade i recive the message : Text Bug 1 and the victim(another player) Text Bug 2 and the trade don't make..but if i have 2 slots for a sword and i give 2 sword ,the another player recive 1 sword and 1 stay in my inventory... Soory for my bad english but i worked 4 days to it and i don't know what to do anymore...
  4. Hi , i want to know how could i implement this system with buttons , i tried someting but doesnt work , cause i need to add some width , and use buttons , but there is an transparent board along inventory , and i dont know how could i put these buttons, and use the belt inventory too , but without transparent board wich can move the inventory
  5. Denny2399

    open Fixing problem

    Hello, I have a little question about some function.. I have some line of code which has to delete "new" mark and I want to implement it after I unequip an item. So I would like to know where to put it. Or atleast create some function which will delete the mark if item is unequipped like: if (item_is_unequipped) del constInfo.NEWITEMS. Code: PS.: Sorry for my english Regards.
  6. How can I check if a player has an item in inventory? Something like: when 40002.inventory begin quest_happens end
  7. Hello guys, as you know, on the official servers was added a new system (last year i think) called Inventory Expansion System. Does anyone of you know how to obtain this system? Official server's "pack" folder may have this system, but there are much files... too much files... So... can you help me?
  8. Hello , does anyone know how to add the extra space on inventory in order to add buttons ? Anything will help me since i don't know the line in inventorywindow that add it , and i'm not sure that it's there too .
  9. kaique

    Time to open inventory

    Time to open inventory or inventory block after login
  10. kagamatosama

    Inventory lock system

    Hello guys. Somebody have this system? (When you click to 3-4. inventory these are locked and you can unlock these with item...) Tnx in advance
  11. Mind Rapist

    ITEM_RING Slot problem

    Hey guys I have a problem my ITEM_RING items are going in the positions for ITEM_UNIQUE instead left or right of the belt part. I checked my GamtType and python parts and it's all good. Can someone help me please?
  12. Hello devs I'm looking for the function in the safebox (python) that checks if safebox is open or not. For example this is for trade and this is for shop so I'm looking that function in safebox Thanks in advance
  13. hi guys inventory is full
  14. monarchis2

    Inventory problem

    Hey community! I have a problem with my inventory. I had 5 inventory page system and i change it to 2, and this is my problem.. the items are hidden.
  15. likeabeast

    Switchbot inventory button

    Hello devs, How can i add a button (switchbot) upper itemshop inventory button , i have switchbot implemented.. If you don't understand i uploaded a photo. P.S. This is photoshop , i don't have the button implemented. Thanks.
  16. Hello i try to add Ingame Inventory Viewer for C++ i do like this: Python client: uitarget.py: self.showingButtonList.append(self.buttonDict[localeInfo.TARGET_BUTTON_VIEW_EQUIPMENT]) locale_game.txt TARGET_BUTTON_VIEW_EQUIPMENT Podgląd EQ C++: Char.cpp: To: packet.h: cmd_general.cpp: To: Error: 0609 11:06:33761 :: Cannot find item by -1729354753 0609 11:06:33761 :: Unknown packet header: 200, last: 99 17 Gif: Any suggestion?
  17. 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.
  18. Is Bug : https://www.youtube.com/watch?v=gOprjTnNiQ8 Open : input_main.cpp Search: CSafebox * pkSafebox = ch->GetSafebox(); LPITEM pkItem = ch->GetItem(p->ItemPos); if (!pkSafebox || !pkItem) return; Add: if (pkItem->GetType() == ITEM_BELT && pkItem->IsEquipped()) // Belt inventory new bug fixed by Rideas { ch->ChatPacket(CHAT_TYPE_INFO, "Belt before equip!"); return; } Best Regards Rideas
  19. gummyantifi

    Belt inventory bug

    Hello people, I have two minor bugs belt inventory. Could someone advise a solution? Thanks for any help https://youtu.be/eyos21mTEzM
  20. Hi, I have this problem when I follow the post of AvelineTM : I follow this step by step and then I see that Bug Can anywhere help me please? Thx!
  21. Hey guys, I wonder if i cloud help with two problems: 1º: When i try to move any inventory item goes to the character login. I think that's the file exchange.cpp in the funtion CExchange::CheckSpace() bool CExchange::CheckSpace() { static CGrid s_grid1(5, INVENTORY_MAX_NUM / 5 / 4); // inven page 1 9 Rows a 5 Columns static CGrid s_grid2(5, INVENTORY_MAX_NUM / 5 / 4); // inven page 2 9 Rows a 5 Columns static CGrid s_grid3(5, INVENTORY_MAX_NUM / 5 / 4); // inven page 3 9 Rows a 5 Columns static CGrid s_grid4(5, INVENTORY_MAX_NUM / 5 / 4); // inven page 4 9 Rows a 5 Columns s_grid1.Clear(); s_grid2.Clear(); s_grid3.Clear(); s_grid4.Clear(); LPCHARACTER victim = GetCompany()->GetOwner(); LPITEM item; int i; const int perPageSlotCount = INVENTORY_MAX_NUM / 4; for (i = 0; i < INVENTORY_MAX_NUM; ++i) { if (!(item = victim->GetInventoryItem(i))) continue; BYTE itemSize = item->GetSize(); if (i < perPageSlotCount) // Notice: This is adjusted for 4 Pages only! s_grid1.Put(i, 1, itemSize); else if (i < perPageSlotCount * 2) s_grid2.Put(i - perPageSlotCount, 1, itemSize); else if (i < perPageSlotCount * 3) s_grid3.Put(i - perPageSlotCount * 2, 1, itemSize); else s_grid4.Put(i - perPageSlotCount * 3, 1, itemSize); } static std::vector <WORD> s_vDSGrid(DRAGON_SOUL_INVENTORY_MAX_NUM); bool bDSInitialized = false; for (i = 0; i < EXCHANGE_ITEM_MAX_NUM; ++i) { if (!(item = m_apItems[i])) continue; BYTE itemSize = item->GetSize(); if (item->IsDragonSoul()) { if (!victim->DragonSoul_IsQualified()) return false; if (!bDSInitialized) { bDSInitialized = true; victim->CopyDragonSoulItemGrid(s_vDSGrid); } bool bExistEmptySpace = false; WORD wBasePos = DSManager::instance().GetBasePosition(item); if (wBasePos >= DRAGON_SOUL_INVENTORY_MAX_NUM) return false; for (int i = 0; i < DRAGON_SOUL_BOX_SIZE; i++) { WORD wPos = wBasePos + i; if (0 == s_vDSGrid[wBasePos]) { bool bEmpty = true; for (int j = 1; j < item->GetSize(); j++) { if (s_vDSGrid[wPos + j * DRAGON_SOUL_BOX_COLUMN_NUM]) { bEmpty = false; break; } } if (bEmpty) { for (int j = 0; j < item->GetSize(); j++) { s_vDSGrid[wPos + j * DRAGON_SOUL_BOX_COLUMN_NUM] = wPos + 1; } bExistEmptySpace = true; break; } } if (bExistEmptySpace) break; } if (!bExistEmptySpace) return false; } else { int iPos = s_grid1.FindBlank(1, itemSize); if (iPos >= 0) { s_grid1.Put(iPos, 1, itemSize); continue; } iPos = s_grid2.FindBlank(1, itemSize); if (iPos >= 0) { s_grid2.Put(iPos, 1, itemSize); continue; } iPos = s_grid3.FindBlank(1, itemSize); if (iPos >= 0) { s_grid3.Put(iPos, 1, itemSize); continue; } iPos = s_grid4.FindBlank(1, itemSize); if (iPos >= 0) { s_grid4.Put(iPos, 1, itemSize); continue; } return false; // No space left in inventory } } return true; }Use 4 Inventories. And 2º: I implemented everything to shop offline system but when trying to open the interface does nothing and giver me these errors Syserr the server. RunState: LUA_ERROR: [string "nixo_private_shops"]:2: attempt to call field `split' (a nil value) WriteRunningStateToSyserr: LUA_ERROR: quest nixo_private_shops.start clickFuntion in quest: when button or info begin infos = nixo_private_shops.get_input("get_input") data = string.split(infos, '|') if (nixo_private_shops.checkVariables(data, 0) == true and data[1] == "OPEN") then local shop_id = nixo_private_shops.RefreshShops() if (shop_id != 0) then nixo_private_shops.RefreshItems(shop_id) cmdchat("open_shop_gui") end end if (nixo_private_shops.checkVariables(data, 0) == true and data[1] == "REFRESH") then local shop_id = nixo_private_shops.RefreshShops() if (shop_id != 0) then nixo_private_shops.RefreshItems(shop_id) cmdchat("open_shop_gui_now") else cmdchat("close_shop_gui") end end if (nixo_private_shops.checkVariables(data, 1) == true and data[1] == "SELECT_SHOP") then if (nixo_private_shops.isMyShop(tonumber(data[2])) == true) then nixo_private_shops.RefreshItems(tonumber(data[2])) end end if (nixo_private_shops.checkVariables(data, 2) == true and data[1] == "WITH_DRAW") then if (nixo_private_shops.isMyShop(tonumber(data[2])) == true) then if (nixo_private_shops.getShopStatus(tonumber(data[2])) == 2) then if (nixo_private_shops.getEarnings(tonumber(data[2]), tonumber(data[3])) > 0) then nixo_private_shops.withDraw(tonumber(data[2]), tonumber(data[3])) nixo_private_shops.RefreshItems(tonumber(data[2])) else syschat("Nie mo¿na wyp³aciæ.") end else syschat("Aby wyp³aciæ zarobione waluty musisz zamkn¹æ sklep.") end end end if (nixo_private_shops.checkVariables(data, 2) == true and data[1] == "GET_ITEM") then if (nixo_private_shops.isMyShop(tonumber(data[2])) == true) then nixo_private_shops.getItem(tonumber(data[2]), tonumber(data[3])) nixo_private_shops.RefreshItems(tonumber(data[2])) end end if (nixo_private_shops.checkVariables(data, 1) == true and data[1] == "CLOSE_SHOP") then if (nixo_private_shops.isMyShop(tonumber(data[2])) == true and nixo_private_shops.getShopStatus(tonumber(data[2])) == 1) then pc.close_shop(tonumber(data[2])) local shop_id = nixo_private_shops.RefreshShops() if (shop_id != 0) then nixo_private_shops.RefreshItems(shop_id) else cmdchat("close_shop_gui") end syschat("Sklep zosta³ zamkniêty.") end endInfinitely appreciate your help. Sorry for my bad english!
  22. Hi, I want to put the horizontal inventory (game source) so the items not place above others. Anyone? Thanks.
  23. brianman

    inventory viewer bug

    Hello! I have a little problem. It isn't show me the costume system, the alchemy, slots of the rings and belts. I hope someone can help me, I'd be really happy, thanks.
  24. Can anyone help me with a bug in the game 40250. Actually I do not know if it's the same game, but whenever I try to move an iten from one slot to another he is in the same slot.
×