Jump to content

Zonni

Premium
  • Posts

    165
  • Joined

  • Last visited

  • Days Won

    4
  • Feedback

    0%

Everything posted by Zonni

  1. Exchange fix & explanation what you do wrong (in 1st post). in exchange.cpp when you told to change static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 2); // inven page 1 static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 2); // inven page 2 to static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 2); // inven page 1 static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 2); // inven page 2 static CGrid s_grid3(5, INVENTORY_MAX_NUM/5 / 2); // inven page 3 static CGrid s_grid4(5, INVENTORY_MAX_NUM/5 / 2); // inven page 4 you did huge mistake because invertory grid have only 45 slots (5 width, 9 height (9*5 = 45)). With your code we have 90 per page and this is nasty ;3 we must change it to original grid size - every CGrid related to equipment must have 45 slots - we must perform division with number 4 So, that's the right code. static CGrid s_grid1(5, INVENTORY_MAX_NUM/5 / 4); // inven page 1 static CGrid s_grid2(5, INVENTORY_MAX_NUM/5 / 4); // inven page 2 static CGrid s_grid3(5, INVENTORY_MAX_NUM/5 / 4); // inven page 3 static CGrid s_grid4(5, INVENTORY_MAX_NUM/5 / 4); // inven page 4 Before do modification:INVENTORY_MAX_NUM = 90 INVENTORY_MAX_NUM / 5 / 2 == 90 / 5 / 2 == 9 After your modification: INVENTORY_MAX_NUM = 180 INVENTORY_MAX_NUM / 5 / 2 == 180 / 5 / 2 == 18 After you apply my fix: INVENTORY_MAX_NUM = 180 INVENTORY_MAX_NUM / 5 / 4 == 180 / 5 / 4 == 180 / 20 == 9 Um, btw. If someone didn't know why 3 left slots in belt inventory didn't working... That's the explanation. +------------------------------------------------------+ 0 | Inventory (45 slots * 4 pages) 90 slots | +------------------------------------------------------+ 180 = INVENTORY_MAX_NUM(180) | Player equipment (items actually in use) 32 slots | +------------------------------------------------------+ 212 = INVENTORY_MAX_NUM(180) + WEAR_MAX_NUM(32) | DSS activated (6 slots * 2 pages) 12 slots | +------------------------------------------------------+ 224 = 212 + DS_SLOT_MAX(6) * DRAGON_SOUL_DECK_MAX_NUM(2) | DSS reserved (6 slots * 3 pages) 18 slos | +------------------------------------------------------+ 242 = 224 + DS_SLOT_MAX(6) * DRAGON_SOUL_DECK_RESERVED_MAX_NUM(3) | Belt inventory (16 slots (4x4 grid) | +------------------------------------------------------+ 258 = 242 + BELT_INVENTORY_SLOT_COUNT(16) = INVENTORY_AND_EQUIP_CELL_MAX | End of equipment | +------------------------------------------------------+ So. Cell.cell in game often have BYTE range (unsigned byte - 0 to 255). That's why your 3 slots in belt inventory didn't work. Change Cell.cell to WORD instead of BYTE. I don't tell you where you must change it. Figure out by yourself ^^Peace ;D
  2. Um. You can't use it like that. Please firstly study some C++ books.
  3. I'll try to add compression in next release but now i havent really much time to figure out function which respond to compress.
  4. Seriously I'm starting thinkin you're dumb. No offence but you cant read? You have an error related to your pkg installer. Your system requires to install it. Start reading this: [Hidden Content] Chapter 5.4.1
  5. Install compat6x, compat7x, compat8x and compat9x Sorry four double post, can someone merge it into one?
  6. It isnt related to game. Try to run one core, check errors witch should show in your ssh client
  7. Ow, nice ;D 50€ saved in pocket ;3 "Polaki cebulaki" Endymionie. That why i never do anything before they pay me.
  8. int pc_do_something(lua_State* L) { LPCHARACTER ch = CQuestManager::instance().GetCurrentCharacterPtr(); if (ch->GetExchange() || ch->GetMyShop() || ch->GetShopOwner() || ch->IsOpenSafebox() || ch->IsCubeOpen()) { lua_pushboolean(L, 1); } else { lua_pushboolean(L, 0); } return 1; } Untested but should work. When character do something function returns true, if not return false. Simple & clean & usefull.
  9. People usually use novaline branch for client and mainline branch for server because packets in this branches is equal without modifications but you can use what you want. It depends on how much work you want to put in.
  10. Thank you fo reply. I don't want to animate armor, i prefer to make new animation for new mob (rather convert from another game). I must animate mesh & skeleton too or only skeleton (animations in metin2 don't show any model). I know this questions is stupid but i don't want to start playing in 3ds without basic informations.
  11. Welcome everyone. I have one question because i never inderested on 3d modelling, so my question is - how to import skeleton from gr2 file? As i know we must have skleleton to create new armor. Someone have right skeleton for all characters in metin2? What tool i must use to import skeleton to 3ds max? Um another question ! If I want to add new animations i must animate only skeleton right?
  12. TEDE x P.A.F.F. - CMRT RUDEBWOY (#zofia_gambetti Blend) POPEK MONSTER - DIRTY DIANA (MATHEO PRODUCTION)
  13. WHAT ?! XD Every granny file works fine with 2089 game because granny files are used only in client O.o
  14. Yes. I understand because item names are stored in item_proto_names.txt. Check by yourself. Name in item_proto is used only for drop tables.
  15. yeah i now is posible edit for manal in notepad++ but a name for items is encript and is not easy edit in notepad++ maybe have 1 program convert item_proto.sql a item_proto.txt, i have mob_proto converter but not searc item_proto. i try use microsoft excel o openoffice say other but when save and put in a folder, error ---- item_proto_names is encrypted? What the helll are you talking about?
  16. View models with animation & assigned sound to it as i think. You can assign sound to animations too and set time while sound starting. Awesome, thanks
  17. 1. Use Notepad++. 2. Manually, there isn't any program for that. I prefer to use SQL databases than Text databases, so edit ClientManagerBoot in db source or use vanilla core. Thanks.
×
×
  • 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.