PDA

View Full Version : Lua request! Use x item on x item in backpack



The
04-07-2016, 08:26 PM
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!

Sheradial
04-08-2016, 12:48 AM
--- 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

The
04-08-2016, 07:12 AM
Thank you Sheradial! I really appreciate it!

Sheradial
04-08-2016, 02:42 PM
Thank you Sheradial! I really appreciate it!

no problemo ;)