PDA

View Full Version : Un-Equip Items Not swap



Eion
09-29-2013, 12:37 AM
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.
--- 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.

HeHao
10-01-2013, 07:06 PM
seems good

Glowingstick
12-02-2013, 03:40 AM
Not sure if I'm allowed to dump this thread but is this possible yet?

gazgaz
12-02-2013, 03:55 AM
to the best of my limited ability's i don't think its possible to do this yet

only4tibia
03-12-2014, 12:13 AM
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.

Infernal Bolt
03-12-2014, 06:05 AM
Fuckin signed, this would make my life a lot easier when I'm botting my pallys with spears in facc area.

Self.DropItemFromEquipment()? GIEF^_^