Jump to content

[Help]ADD BELT to Fast Equip


Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



  • Similar Content

  • Activity

    1. 3

      Crystal Metinstone

    2. 3

      Feeding game source to LLM

    3. 113

      Ulthar SF V2 (TMP4 Base)

    4. 3

      Feeding game source to LLM

    5. 0

      Target Information System

    6. 3

      Feeding game source to LLM

    7. 2

      anti exp explanation pls

  • Recently Browsing

    • No registered users viewing this page.
×
×
  • 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.