XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 6 of 6

Thread: Un-Equip Items Not swap

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Senior Member Eion's Avatar
    Join Date
    Dec 2011
    Posts
    558
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)

    Exclamation Un-Equip Items Not swap

    We currently have this function for moving items to equipment, but if you want to remove an item and have nothing to replace it with then you are shit out of luck.
    lua code:
    --- Moves an item in the container to equipment.
    -- Moves an item in the container to a specific equipment slot
    -- @ class Container
    -- @ param spot the specific slot to use
    -- @ param slot the equipment slot to move to
    -- @ param count optional; amount of item stack to move (default is entire stack)
    -- @ return boolean true or false
    function Container:MoveItemToEquipment(spot, slot, count)
    self = type(self)=='table' and self or Container.New(self)
    return containerMoveItemToSlot(self._index, spot, slot, count or -1)
    end


    My suggestion:

    Please add a "Container:MoveItemFromEquipment(slot, spot, count)" function.

    Also -> "Container:MoveItemFromEquipmentToGround(slot, spot, count)" function. (the first one is good enough though)

    There are a lot of things I can't do because of this, or at least it makes it unpractical (in certain situations) because of needing other items to switch out gear.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •