roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
why it dont work?
i receive the msg:
but in bag have only 1 stone.
Obs: a stone inst a stackable item! how can i add 5 stones into a bag?
Lua:
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if item.itemid == 2567 then
local bag = player:addItem(1988, 1)
local quant = math.random(1, 5)
bag:addItem(8300, quant)
player:sendTextMessage(17, "You received "..quant.." stones!")
item:remove()
end
return true
end
Code:
17:19 You received 5 stones!
Obs: a stone inst a stackable item! how can i add 5 stones into a bag?
Last edited: