potinho
Intermediate OT User
Hi guys, how are you?
I have an action who i use an item and it give 1 premium point to me. There is a way to use all stackable itens? When i click on pile with 100 itens, it use only one, i want to use all itens in a stack and add all points referent a stack. My action:
I have an action who i use an item and it give 1 premium point to me. There is a way to use all stackable itens? When i click on pile with 100 itens, it use only one, i want to use all itens in a stack and add all points referent a stack. My action:
Lua:
function onUse(cid, item, frompos, item2, topos)
local points = 1
doAccountAddPoints(cid, points)
doRemoveItem(item.uid, 1)
return doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE,"You received "..points.." premium points.")
end