Jump to content

Den

Inactive Member
  • Posts

    110
  • Joined

  • Last visited

  • Days Won

    5
  • Feedback

    0%

Everything posted by Den

  1. 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.
  2. 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.
  3. Just start working with source and remove things that you don't need. I think it'll be the best choice for you.
  4. Maybe you've included ".cpp" files somewhere instead of ".h" files?
  5. 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);
  6. Check char_battle (line 1332). You probably wanted to use GetWear() on null object.
  7. Just type "bt full" in gdb and you will get more information.
  8. 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.
  9. It wasn't so hard to find - try to search before making a thread.
×
×
  • 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.