Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def __PutItem(self, attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount, dstChrID):
- if app.ENABLE_SPECIAL_STORAGE_SYSTEM:
- if player.SLOT_TYPE_INVENTORY == attachedType or\
- player.SLOT_TYPE_DRAGON_SOUL_INVENTORY == attachedType or\
- player.SLOT_TYPE_SKILLBOOK_INVENTORY == attachedType or\
- player.SLOT_TYPE_UPPITEM_INVENTORY == attachedType or\
- player.SLOT_TYPE_GHOSTSTONE_INVENTORY == attachedType or\
- player.SLOT_TYPE_GENERAL_INVENTORY == attachedType:
- attachedInvenType = player.SlotTypeToInvenType(attachedType)
- if True == chr.HasInstance(self.PickingCharacterIndex) and player.GetMainCharacterIndex() != dstChrID:
- if player.IsEquipmentSlot(attachedItemSlotPos) and\
- player.SLOT_TYPE_DRAGON_SOUL_INVENTORY != attachedType and\
- player.SLOT_TYPE_SKILLBOOK_INVENTORY != attachedType and\
- player.SLOT_TYPE_UPPITEM_INVENTORY != attachedType and\
- player.SLOT_TYPE_GHOSTSTONE_INVENTORY != attachedType and\
- player.SLOT_TYPE_GENERAL_INVENTORY != attachedType:
- self.stream.popupWindow.Close()
- self.stream.popupWindow.Open(localeInfo.EXCHANGE_FAILURE_EQUIP_ITEM, 0, localeInfo.UI_OK)
- else:
- if chr.IsNPC(dstChrID):
- if app.ENABLE_REFINE_RENEWAL:
- constInfo.AUTO_REFINE_TYPE = 2
- constInfo.AUTO_REFINE_DATA["NPC"][0] = dstChrID
- constInfo.AUTO_REFINE_DATA["NPC"][1] = attachedInvenType
- constInfo.AUTO_REFINE_DATA["NPC"][2] = attachedItemSlotPos
- constInfo.AUTO_REFINE_DATA["NPC"][3] = attachedItemCount
- net.SendGiveItemPacket(dstChrID, attachedInvenType, attachedItemSlotPos, attachedItemCount)
- else:
- net.SendExchangeStartPacket(dstChrID)
- net.SendExchangeItemAddPacket(attachedInvenType, attachedItemSlotPos, 0)
- else:
- self.__DropItem(attachedType, attachedItemIndex, attachedItemSlotPos, attachedItemCount)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement