mimus
New Member
- Joined
- Mar 14, 2012
- Messages
- 168
- Reaction score
- 2
hello everybody!!! well i have this script but i need 2 things
1) know if the doble exp expire in 1 hour... so in os.time() + 86400 how can i set it to 3 mins?, and second one
2) how to make the scroll says "Doble EXP for 1 Hour"
tank u so much for reeding! see u
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
if player:getStorageValue(16101) >= os.time() then
return true
end
player:setStorageValue(16101, os.time() + 86400)
Item(item.uid):remove(1)
return true
end
function Player:onGainExperience(source, exp, rawExp)
if self:getStorageValue(16101) >= os.time() then
exp = exp * 2
end
return exp
end
1) know if the doble exp expire in 1 hour... so in os.time() + 86400 how can i set it to 3 mins?, and second one
2) how to make the scroll says "Doble EXP for 1 Hour"
tank u so much for reeding! see u