XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 4 of 4

Thread: Lua request! Use x item on x item in backpack

  1. #1

    Join Date
    Mar 2012
    Location
    USA
    Posts
    56
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)

    Lua request! Use x item on x item in backpack

    Just wondering if anyone could help with a simple request! I would like this item '21767'used onto this item '21816'! If anyone could help what would be awesome!!! Thanks smart xenobot community!

  2. #2
    Lifetime Subscriber Sheradial's Avatar
    Join Date
    Apr 2015
    Posts
    165
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    lua code:
    --- Uses item in the container on another item in a container.
    -- Uses an item in a specific spot in the container on a specific spot in a specific container.
    -- Class Container
    -- param spotfrom the specific slot the item to be used is at
    -- para]m contto the container index you want to use the item in
    -- param spotto the specific slot you want to use the item with in the new container
    -- @return boolean true or false
    function Container:UseItemWithContainerItem(spotfrom, contto, spotto)
    self = type(self) == 'table' and self or Container.New(self)
    return containerUseWithContainer(self._index, spotfrom, contto, spotto)
    end



    From xenobot's lib @The


  3. #3

    Join Date
    Mar 2012
    Location
    USA
    Posts
    56
    Mentioned
    18 Post(s)
    Tagged
    0 Thread(s)
    Thank you @Sheradial! I really appreciate it!

  4. #4
    Lifetime Subscriber Sheradial's Avatar
    Join Date
    Apr 2015
    Posts
    165
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by The View Post
    Thank you @Sheradial! I really appreciate it!
    no problemo


Posting Permissions

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