XenoBot Forums - Powered by vBulletin

User Tag List

Results 1 to 2 of 2

Thread: Use one item on another, both inside BPs

  1. #1
    gledsonrt's Avatar
    Join Date
    Sep 2013
    Posts
    62
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Use one item on another, both inside BPs

    Hey guys!

    I was wondering if there's a way to use one item on another, when both of them are inside the same backpack.
    IE. if I wanted to use a pick on a shiny stone.

    Thanks!

  2. #2
    gledsonrt's Avatar
    Join Date
    Sep 2013
    Posts
    62
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)
    Nevermind, found it!
    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
    -- @param 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

Posting Permissions

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