jimmydunphy
New Member
When I use the exp scroll I get 50% less exp instead of double exp?
This is the script I've used and im using tfs 1.2
This is the updated and working copy of the exp scroll for tfs 1.2 that I'm using. Credits to @Ninja for re-writing this whole thing for me and thanks to @J.Dre and @Codex NG for their help aswell!
Happy New Year!
This is the script I've used and im using tfs 1.2
Code:
local config = {
time = 2,
storage = 200011
}
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
if player:getStorageValue(config.storage) >= os.time() then
player:sendTextMessage(MESSAGE_INFO_DESCR, "You still have extra experience time left.")
return true
end
player:setStorageValue(config.storage, os.time() + config.time * 3600)
player:sendTextMessage(MESSAGE_INFO_DESCR, string.format("You have activated %d hour%s of double experience.", config.time, config.time ~= 1 and "s" or ""))
item:getPosition():sendMagicEffect(CONST_ME_MAGIC_RED)
item:remove(1)
return true
end
This is the updated and working copy of the exp scroll for tfs 1.2 that I'm using. Credits to @Ninja for re-writing this whole thing for me and thanks to @J.Dre and @Codex NG for their help aswell!
Happy New Year!
Last edited: