antiblock
Elveron
  • Chatbox

    You don't have permission to chat.
    Load More
Sign in to follow this  
kimameixede

Erro Ao Invocar Pets.

6 posts in this topic

Boas pessoal da cyber.

 

Estalei recentemente o sistema de pets avançado igual ao das server files do rancoroso.

 

Mas quando vou a carregar no icon do pet aparece este erro na maquinha do servidor.

 

Imagem colocada

 

 

alguém sabe como resolver?

 

Desde ja obrigado.

Share this post


Link to post
Share on other sites
antiblock
Cyphriun

Manda a quest

Share this post


Link to post
Share on other sites

Ca esta

quest pets begin
state start begin

function givebonus(x)
local y,boni = {53,54,1},pets.bonusliste()
table.foreach(boni[x],function(i,l) cmdchat("HaustierBonus"..i.." "..l.."") affect.add_collect(y,l,0*0*0*0*0) end )
cmdchat("HaustierLevel "..pc.getqf('petlevel').."")
cmdchat("HaustierName "..pc.get_name().."")
pc.setqf("petruf",1)
end
function bonusliste()
return {
[1] = {200,100,500},
[2] = {250,150,1000},
[3] = {300,200,1500},
[4] = {350,250,2000},
[5] = {400,300,3000},
}
end
function removebonus(x)
local y,boni = {53,54,1},pets.bonusliste()
table.foreach(boni[x],function(i,l) affect.remove_collect(y,l,60*60*24*365*60) end )
pet.unsummon()
pc.setqf("petruf",0)
horse.set_level("21")
cmdchat("HidePetGui")
cleartimer("bugcheck")
end

when 53001.use begin
horse.unride() horse.unsummon()
if pc.is_mount() then
say_title("desculpe")
say("Saia do seu cavalo!")
return
end
if pc.getqf('petlevel') == 0 then
pc.setqf('petlevel',1)
end
if pc.getqf("petruf") == 0 then
local Horselevel = 29-pc.getqf('petlevel')
horse.set_level(Horselevel)
pet.unsummon() pet.summon()
chat("O teu pet foi chamado.")
cmdchat("buff9")

pets.givebonus(pc.getqf('petlevel'))
local expprocent1 = {20, 80, 160, 350, 400}
cmdchat("PetProcentExp "..(pc.getqf("exp")/expprocent1[pc.getqf("petlevel")]).."")
cmdchat("ShowPetGui")
loop_timer("bugcheck", 0.2)
elseif pc.getqf("petruf") == 1 then
pets.removebonus(pc.getqf('petlevel'))
chat("O teu pet foi embora.")
end
end


when kill with pc.getqf("petruf") == 1 begin
if pc.getqf("petlevel") == 5 then
return
end
if not npc.is_pc() then
pc.setqf("exp",pc.getqf("exp")+1)
local exp2up = {2000, 8000, 16000, 35000, 40000}
local expprocent = {20, 80, 160, 350, 400}
cmdchat("PetProcentExp "..(pc.getqf("exp")/expprocent[pc.getqf("petlevel")]).."")
if pc.getqf("exp") == exp2up[pc.getqf("petlevel")] then
if pc.getqf("petlevel") == 4 then
say_title("Parabéns")
say("O teu pet subiu de nivel "..(pc.getqf("petlevel")+1).."")
say_reward("Ele agora esta no nivel maximo")
affect.add_collect(y,l,60*60*24*365*60)
end
say_title("Parabéns")
say("Seu pet subiu de nivel "..(pc.getqf("petlevel")+1).."")
say("Chame o seu pet outra vez")
pc.setqf("exp",0)
pc.setqf("petlevel",pc.getqf("petlevel")+1)
pets.removebonus(pc.getqf('petlevel'))
end
end
end

-- Bugschutz

when bugcheck.timer begin
if pc.count_item(53001) == 0 then
say_title("Bonus")
say("Bonus do pet removido!")
pets.removebonus(pc.getqf('petlevel'))
end
end

when login or logout or disconnect with pc.getqf("petruf") == 1 begin
pets.removebonus(pc.getqf('petlevel'))
chat("Seu pet nao veio...")
chat("chame o outra vez!")
end

end
end

Share this post


Link to post
Share on other sites

Bump

Share this post


Link to post
Share on other sites

Erro resolvido.

 

Close plz.

Share this post


Link to post
Share on other sites
Sign in to follow this