• 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!

Lua Stamina Refiller

guigui768

New Member
Joined
Oct 11, 2010
Messages
81
Reaction score
1
I use this code to my stamina refiller:

function onUse(cid, item, fromPosition, itemEx, toPosition)
local cfg = {}
cfg.refuel = 42 * 60 * 1000
if(getPlayerStamina(cid) >= cfg.refuel) then
doPlayerSendCancel(cid, "Your stamina is already full.")
elseif(not isPremium(cid)) then
doPlayerSendCancel(cid, "You must have a premium account.")
else
doPlayerSetStamina(cid, cfg.refuel)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_ORANGE, "Your stamina has been refilled.")
doRemoveItem(item.uid)
end
return true
end


Its configured to just premium account use this...I would like just players that has vip account could use this..
I use VIP SYSTEM BY mock...

And This scrpit the same think...Just vip account could use:


function onUse(cid, item, frompos, item2, topos)
local pausa = 60*60*1000 -- (1000 = 1 segundos) Tempo que o script durará
local texto = "You have 3 times more experience for 1 hour, do not logout or else you will loose the bonus."
textofinal = "Your bonus time is gone." -- Texto que irá receber quando o efeito da potion acabar.
local exp = 3.0 -- O quanto que você quer que dobre sua experiencia, por exemplo 2 é 2x as rates do seu server.
expfinal = 1 --Não mude, isso é para a experiencia voltar ao normal.
if item.itemid == 6527 then
doRemoveItem(item.uid,1)
doPlayerSetExperienceRate(cid,exp)
doSendMagicEffect(frompos,13)
doPlayerSendTextMessage(cid,22,texto)
addEvent(potion,pausa,cid)
end
end

function potion(pos, cid)
doPlayerSetExperienceRate(pos,expfinal)
doPlayerSendTextMessage(pos,22,textofinal)
end
 
Back
Top