• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

|HELP|Double EXP/Stamina item | Change cooldown time |

Shabba001

New Member
Joined
Apr 11, 2014
Messages
40
Reaction score
0
Hi guys,
I cant find scripts to create a item that will gives double exp for month and potion of stamina, if anyone have this i'll be grateful.
And how can i decrease the cooldown time ?

OBS: Using TFS 1.0

Many thanks.
 
Last edited:
thats because you didn't use the search function xD

http://otland.net/threads/stamina-refil.215131/#post-2062892

Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
local delaytime = 86400
local cfg = {}
cfg.refuel = 42 * 60 * 1000
if getPlayerStorageValue(cid, 63344) >= os.time() then
doPlayerPopupFYI(cid, "You may only use this once a day!")
elseif(getPlayerStamina(cid) >= cfg.refuel) then
doPlayerSendCancel(cid, "Your stamina is already full.")
else
setPlayerStorageValue(cid, 63344, os.time()+delaytime)
doPlayerSetStamina(cid, cfg.refuel)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.")
doRemoveItem(item.uid)
end
return true
end
 
Back
Top