-
Posts
110 -
Joined
-
Last visited
-
Days Won
5 -
Feedback
0%
Content Type
Forums
Store
Third Party - Providers Directory
Feature Plan
Release Notes
Docs
Events
Everything posted by Den
-
You don't have an item with 21560 ID in your item_proto. Open special_item_group.txt and search which groups have this ID and simply delete it from them. Remember to correct the numeration if the ID isn't the last one.
-
Problem with belt system slot
Den replied to netmarlis's topic in Community Support - Questions & Answers
You need to have the correct belt slot index in inventorywindow.py and make it refresh in RefreshEquipSlotWindow (uiinventory.py). That's what I have: inventorywindow.py { "name" : "EquipmentSlot", "type" : "slot", "x" : 3, "y" : 3, "width" : 150, "height" : 182, "slot" : ( {"index":EQUIPMENT_START_INDEX+0, "x":39, "y":37, "width":32, "height":64}, {"index":EQUIPMENT_START_INDEX+1, "x":39, "y":2, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+2, "x":39, "y":145, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+3, "x":75, "y":67, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+4, "x":3, "y":3, "width":32, "height":96}, {"index":EQUIPMENT_START_INDEX+5, "x":114, "y":67, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+6, "x":114, "y":35, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+7, "x":2, "y":145, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+8, "x":75, "y":145, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+9, "x":114, "y":2, "width":32, "height":32}, {"index":EQUIPMENT_START_INDEX+10, "x":75, "y":35, "width":32, "height":32}, {"index":item.EQUIPMENT_BELT, "x":39, "y":106, "width":32, "height":32}, #belt slot ), }, RefreshEquipSlotWindow (uiinventory.py) def RefreshEquipSlotWindow(self): getItemVNum=player.GetItemIndex getItemCount=player.GetItemCount setItemVNum=self.wndEquip.SetItemSlot for i in xrange(player.EQUIPMENT_PAGE_COUNT): slotNumber = player.EQUIPMENT_SLOT_START + i itemCount = getItemCount(slotNumber) if itemCount <= 1: itemCount = 0 setItemVNum(slotNumber, getItemVNum(slotNumber), itemCount) if app.ENABLE_NEW_EQUIPMENT_SYSTEM: for i in xrange(player.NEW_EQUIPMENT_SLOT_COUNT): slotNumber = player.NEW_EQUIPMENT_SLOT_START + i itemCount = getItemCount(slotNumber) if itemCount <= 1: itemCount = 0 setItemVNum(slotNumber, getItemVNum(slotNumber), itemCount) print "ENABLE_NEW_EQUIPMENT_SYSTEM", slotNumber, itemCount, getItemVNum(slotNumber) Check what you are missing. -
Help - How to Use Basic Source Metin2
Den replied to ruben's topic in Community Support - Questions & Answers
Just start working with source and remove things that you don't need. I think it'll be the best choice for you. -
Maybe you've included ".cpp" files somewhere instead of ".h" files?
-
Server crashs after killing metin/moobs
Den replied to Karbust's topic in Community Support - Questions & Answers
I had this problem some days ago. Killing metin stone triggers Dead() two times but once without pkKiller. Try to change this line like that: if (pkKiller && pkKiller->IsPC()) LPITEM pWeaponCostume = pkKiller->GetWear(WEAR_COSTUME_WEAPON); -
Server crashs after killing metin/moobs
Den replied to Karbust's topic in Community Support - Questions & Answers
Check char_battle (line 1332). You probably wanted to use GetWear() on null object. -
Server crashs after killing metin/moobs
Den replied to Karbust's topic in Community Support - Questions & Answers
Just type "bt full" in gdb and you will get more information. -
Need help in Cpp function
Den replied to danio475's topic in Community Support - Questions & Answers
else if (GetWearFlag() & WEARABLE_UNIQUE) { int wear[4] = { WEAR_UNIQUE1, WEAR_UNIQUE2, WEAR_UNIQUE3, WEAR_UNIQUE4 }; for (int i = 0; i <= 3; i++) { if (!ch->GetWear(wear[i])) break; } return wear[i]; } Didn't test but should work as well. -
It wasn't so hard to find - try to search before making a thread.