XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 6 of 6

Thread: Un-Equip Items Not swap

  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.

  2. #2
    Banned
    Join Date
    Sep 2013
    Location
    Sweden
    Posts
    48
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    seems good

  3. #3
    Banned
    Join Date
    Jun 2013
    Posts
    612
    Mentioned
    67 Post(s)
    Tagged
    0 Thread(s)
    Not sure if I'm allowed to dump this thread but is this possible yet?

  4. #4
    Senior Member gazgaz's Avatar
    Join Date
    Jun 2013
    Posts
    518
    Mentioned
    30 Post(s)
    Tagged
    0 Thread(s)
    to the best of my limited ability's i don't think its possible to do this yet
    mumble support +
    xenobot.mumble.com
    5846

  5. #5

    Join Date
    Apr 2013
    Posts
    314
    Mentioned
    65 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Eion View Post
    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.
    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.
    @DarkstaR Please add this to xeno if you get a chance. Would be useful for some scripts.

  6. #6
    Super Moderator Infernal Bolt's Avatar
    Join Date
    Dec 2011
    Location
    Skellefteċ, Sweden
    Posts
    2,880
    Mentioned
    217 Post(s)
    Tagged
    2 Thread(s)
    Fuckin signed, this would make my life a lot easier when I'm botting my pallys with spears in facc area.

    Self.DropItemFromEquipment()? GIEF^_^

Posting Permissions

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