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

Need help exp potion

dervin13

Active Member
Joined
Apr 26, 2008
Messages
459
Solutions
1
Reaction score
28
I pay 20 USD if you do this script be used like a potion(using above charactr)... Because this potion is used like item...

AND

Do something that if player loged off and log in, the double exp continue, if the time not ended!

lua:
PHP:
function onUse(cid, item, frompos, item2, topos)
  local pausa = 30*60*1000 -- (1000 = 1 segundos) Tempo que o script durará
  local texto = "You received ' .. exp .. 'x the experience to kill a monster for ' .. pausa/60/1000 .. ' minutes." -- Texto que irá receber ao usar a potion.
  textofinal = "It is just minutes." -- Texto que irá receber quando o efeito da potion acabar.
  local exp = 2 -- 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 == 7443 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


xml:
PHP:
<action itemid="7443" script="exppotion.lua" />
 
Back
Top