Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

Preciso de um script para double exp pot ( URGENTE )

oque eu to usando é ruim pois qnd o player desloga a xp buga e fica infinita portanto nao presta. se alguem tiver um script para compartilhar agradeço!

Mulher e dinheiro, dinheiro e mulher,


quanto mais você tem muito mais você quer


BREVE! NOVO SERVIDOR GLOBAL... AGUARDE

  • Respostas 5
  • Visualizações 4.7k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Achei um aqui, pode ser útil. Vá na pasta mods e adicione um arquivo.xml com o nome de ExpPotion.xml e bote isso: <?xml version="1.0" encoding="UTF-8"?> <mod name="Advan

Postado

Achei um aqui, pode ser útil.

Vá na pasta mods e adicione um arquivo.xml com o nome de ExpPotion.xml e bote isso:


<?xml version="1.0" encoding="UTF-8"?>

<mod name="AdvancedExpPotionSystem" enabled="yes" author="MatheusMkalo" forum="tibiaking.com">

<!-- Configs and Functions -->

<config name="PotionExpConfigs"><![CDATA[

------ CONFIGURE SEU SCRIPT ------ TRUE ou FALSE

configs = {

time = 1, ---- TIME IN MINUTES

needpa = TRUE,

needlvl = {TRUE, level = 50},

costmana = {TRUE, mana = 300},

addrate = 20, -- Exp que vai adicionar em %

removeonuse = TRUE

}

function getTime(s)

    local n = math.floor(s / 60)

    s = s - (60 * n)

    return n, s

end

CreatureEventChecker = function(event, ...) -- Colex

    if isCreature(arg[1]) then

	    event(unpack(arg))

    end

end

creatureEvent = function(event, delay, ...) -- Colex

    addEvent(CreatureEventChecker, delay, event, unpack(arg))

end

function getPlayerExtraExpRate(cid) -- By MatheusMkalo

    return (getPlayerRates(cid)[8]-1)*100

end

]]></config>

<!-- exppotion.lua -->

<action itemid="7440" event="script"><![CDATA[

domodlib('PotionExpConfigs')

if getPlayerStorageValue(cid, 62164) >= 1 then

    return doPlayerSendCancel(cid, "You are already taking effect from this item.")

end

if configs.needpa and not isPremium(cid) then

    return doPlayerSendCancel(cid, "You need to be a premmium account to use this item.")

end

if configs.needlvl[1] and getPlayerLevel(cid) < configs.needlvl.level then

    return doPlayerSendCancel(cid, "You need to be level " .. configs.needlvl.level .. " to use this item.")

end

if configs.costmana[1] then

if getCreatureMana(cid) < configs.costmana.mana then

    return doPlayerSendCancel(cid, "You need " .. configs.costmana.mana .. " mana to use this item.")

else

doCreatureAddMana(cid, -configs.costmana.mana)

end

end

if configs.removeonuse then

    doRemoveItem(item.uid, 1)

end


for i = configs.time*60, 1, -1 do

local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60))

if #a < 4 then

a = string.sub(a,1,2) .. "0" .. string.sub(a, 3)

end

if i == configs.time*60 then

creatureEvent(doPlayerSendCancel, configs.time*60*1000, cid, "The effect of the exp potion end.")

end

creatureEvent(doPlayerSendCancel, (configs.time*60-i)*1000, cid, "The effect of the exp potion will end in "..a..".")

end

doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100))

creatureEvent(doPlayerSetExperienceRate, configs.time *60*1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100)))

doPlayerSendTextMessage(cid, 22, "Agora voce ira receber mais exp por matar os mosntros.")

setPlayerStorageValue(cid, 62164, os.time())

creatureEvent(setPlayerStorageValue, configs.time *60*1000, cid, 62164, 0)

return TRUE

]]></action>

<creaturescript type="login" name="ExpPotion" event="script"><![CDATA[

domodlib('PotionExpConfigs')

local time = configs.time

    if os.time()-getPlayerStorageValue(cid, 62164) < time *60 then

	   doPlayerSetExperienceRate(cid, (1+(configs.addrate/100))+(getPlayerExtraExpRate(cid)/100))

	   creatureEvent(doPlayerSetExperienceRate, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000, cid, 1+(getPlayerExtraExpRate(cid)/100-(configs.addrate/100)))

	   creatureEvent(setPlayerStorageValue, (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) * 1000 , cid, 62164, 0)

	   for i = (time*60-(os.time()-getPlayerStorageValue(cid, 62164))), 1, -1 do

	   local a = math.floor(i/60) .. ":" .. i - (60 * math.floor(i/60))

	   if #a < 4 then

	   a = string.sub(a,1,2) .. "0" .. string.sub(a, 3)

	   end

	   if i == (time*60-(os.time()-getPlayerStorageValue(cid, 62164))) then

	   creatureEvent(doPlayerSendCancel, (time*60-(os.time()-getPlayerStorageValue(cid, 62164)))*1000, cid, "The effect of the exp potion end.")

	   end

	   creatureEvent(doPlayerSendCancel, ((time*60-(os.time()-getPlayerStorageValue(cid, 62164)))-i)*1000, cid, "The effect of the exp potion will end in "..a..".")

	   end

    end

return TRUE

]]></creaturescript>

</mod>

Tudo pronto, exp potion funcionando! O ID da potion usada no script foi o: 7440 (Mastermind Potion) Para usa-lo voce precisa tirar a linha no actions.xml da potion porque se nao vai bugar. Para trocar o id da potion eh so mudar essa linha:


<action itemid="7440" event="script"><![CDATA[

Postado
  • Autor

intao eu tb puis esse só que qnd eu uso a exp pot nao acontece nada ! nao aparece msg nenhuma portanto axo que nao ta funcionadno =O

Mais de qlqer forma vo testa pera

@edit

realmente nao funciono aqui! alguma sugestão?

Editado por dennis126 (veja o histórico de edições)

Mulher e dinheiro, dinheiro e mulher,


quanto mais você tem muito mais você quer


BREVE! NOVO SERVIDOR GLOBAL... AGUARDE

Postado

Esse script se coloca na pasta mods em formato xml.

e para fucionar o item você troca aqui

<action itemid="7440" event="script">

 http://baiakuza.com/
IP: baiakuza.com
TIBIA: 10.96
Baiak Custom [ High Exp Rate ]

 

 

 

 

  • 2 years later...
Postado

Existe a possibilidade de fazer com que o item, caso eu deslogue, a contagem do tempo pare, e somente volte a contar

quando eu entrar de novo no jogo? (vai me dizer que esse não é um assunto relevante e relacionado ao assunto? (aos que dirão que estou fazendo flood)) :D

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.7k

Informação Importante

Confirmação de Termo