Cripplez 40 Posted October 3, 2019 Share Posted October 3, 2019 Hello, i would like to add the belt in my Fast Equip, the problem is that the belt has no WearableFlag like neck, ear, foots etc.. The Belt in the item_proto has only ITEM_BELT, how could i add it in this part then? thank you def SelectItemSlot(self, itemSlotIndex): isAttached = mouseModule.mouseController.isAttached() if isAttached: attachedSlotType = mouseModule.mouseController.GetAttachedType() attachedSlotPos = mouseModule.mouseController.GetAttachedSlotNumber() itemIndex = player.GetItemIndex(attachedSlotPos) itemCount = player.GetItemCount(attachedSlotPos) item.SelectItem(itemIndex) itemType = item.GetItemType() itemSubType = item.GetItemSubType() if itemSlotIndex == 1 and item.IsWearableFlag(item.WEARABLE_BODY): self.tokens[itemSlotIndex-1] = attachedSlotPos elif itemSlotIndex == 2 and item.IsWearableFlag(item.WEARABLE_HEAD): self.tokens[itemSlotIndex-1] = attachedSlotPos elif itemSlotIndex == 3 and item.IsWearableFlag(item.WEARABLE_FOOTS): self.tokens[itemSlotIndex-1] = attachedSlotPos elif itemSlotIndex == 4 and item.IsWearableFlag(item.WEARABLE_WRIST): self.tokens[itemSlotIndex-1] = attachedSlotPos elif itemSlotIndex == 5 and item.IsWearableFlag(item.WEARABLE_WEAPON): self.tokens[itemSlotIndex-1] = attachedSlotPos elif itemSlotIndex == 6 and item.IsWearableFlag(item.WEARABLE_NECK): self.tokens[itemSlotIndex-1] = attachedSlotPos elif itemSlotIndex == 7 and item.IsWearableFlag(item.WEARABLE_EAR): self.tokens[itemSlotIndex-1] = attachedSlotPos elif itemSlotIndex == 8 and item.IsWearableFlag(item.WEARABLE_SHIELD): self.tokens[itemSlotIndex-1] = attachedSlotPos elif itemSlotIndex == 9 and ?????? ITEM_BELT: self.tokens[itemSlotIndex-1] = attachedSlotPos else: return Link to comment Share on other sites More sharing options...
Contributor MrQuin 6409 Posted October 3, 2019 Contributor Share Posted October 3, 2019 item.GetItemType()==item.ITEM_TYPE_BELT 1 My only accounts are here and on M2D, Don't trust anyone else from other shitty sites. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now