Soul Baker
New Member
- Joined
- Dec 8, 2015
- Messages
- 16
- Reaction score
- 0
hi i found a script for a 2x EXP boost that lasts 24 hours. but i don't know where to put these codes, Ive never tried this before so here are the scripts i was given. i tried to put in folders they said but i didn't have those folders. not sure where to put all this. if someone could solve this for me I'd be Very happy
#1
#2
and #3
#1
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local player = Player(cid)
if player:getStorageValue(1234) >= os.time() then
player:say('You already have double exp!', TALKTYPE_MONSTER_SAY)
return true
end
player:setStorageValue(1234, os.time() + 86400)
Item(item.uid):remove(1)
player:say('Your 24 hours of double XP has started!', TALKTYPE_MONSTER_SAY)
return true
end
#2
Code:
if self:getStorageValue(1234) >= os.time() then
exp = exp * 2
end
and #3
Code:
-- Stamina modifier
if configManager.getBoolean(configKeys.STAMINA_SYSTEM) then
useStamina(self)
local staminaMinutes = self:getStamina()
if staminaMinutes > 2400 and self:isPremium() then
exp = exp * 1.5
elseif staminaMinutes <= 840 then
exp = exp * 0.5
end
end
Last edited by a moderator: