how can i edit this item and lua ?.. please help me guys
i use this script, but dont know how edit items for use
i use this script, but dont know how edit items for use
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
if player:getStorageValue(1234) >= os.time() then
return true
end
player:setStorageValue(1234, os.time() + 86400)
Item(item.uid):remove(1)
return true
end
function Player:onGainExperience(source, exp, rawExp)
if self:getStorageValue(1234) >= os.time() then
exp = exp * 2
end
return exp
end