Ir para conteúdo
  • Cadastre-se

(Resolvido)[Ajuda] Quest Bugada


Ir para solução Resolvido por ViitinG,

Posts Recomendados

Ola Amigos do TibiaKing , vengo por um Problema , meus Quest estan Bugada , nao sei que tem , ja tenho os Baul no Map , e cuando to no server nao posso pegar. 
 
A Qui uma das Quest : 
 
Quest24 : 

local a = {

[12223] = {balltype = "ultra", ballid = 11829,
pokemons = {"Shiny Reshiram"}}
}

local extrastrength = 1.1

function onUse(cid, item, frompos, item2, topos)
local b = a[item.itemid]
if not b then return true end
local pokemon = b.pokemons[math.random(#b.pokemons)] --alterado v1.3
local btype = b.balltype
if not pokeballs[btype] then return true end
local gender = getRandomGenderByName(pokemon)
local happy = 220
local leveltable = getPokemonExperienceTable(pokemon)

local ball = 0
local sendToDepot = false --alterado v1.6
if getCreatureMana(cid) >= 6 or not hasSpaceInContainer(getPlayerSlotItem(cid, 3).uid) then
sendToDepot = true
ball = doCreateItemEx(b.ballid) --alterado v1.3
else
ball = item.uid
end

doItemSetAttribute(ball, "poke", pokemon)
doItemSetAttribute(ball, "hp", 1)
doItemSetAttribute(ball, "happy", happy)
doItemSetAttribute(ball, "gender", gender)
if pokemon == "Hitmonchan" or pokemon == "Shiny Hitmonchan" then
doItemSetAttribute(ball, "hands", 0)
end
doItemSetAttribute(ball, "description", "Contains a "..pokemon..".")
doItemSetAttribute(ball, "fakedesc", "Contains a "..pokemon..".")

doPlayerSendTextMessage(cid, 27, "You opened a pokemon prize box +"..item.itemid - (11637).."!")
doPlayerSendTextMessage(cid, 27, "The prize pokemon was a "..pokemon..", congratulations!")

if sendToDepot then
doPlayerSendMailByName(getCreatureName(cid), ball, 1) --alterado v1.3
doPlayerSendTextMessage(cid, 27, "You are already holding six pokemons, so your new pokemon was sent to your depot.")
doRemoveItem(item.uid)
else
doTransformItem(ball, pokeballs[btype].on)
end

doSendMagicEffect(getThingPos(cid), 29)
return true
end

 

Action : 

 

<!-- Quests -->

<action actionid="2000" event="script" value="quests/system.lua"/>
<action actionid="2001" event="script" value="quests/system.lua"/>
<action actionid="9000" event="script" value="kitinicial.lua"/>
<action actionid="9001" event="script" value="quest1.lua"/>
<action actionid="9002" event="script" value="quest2.lua"/>
<action actionid="9003" event="script" value="quest3.lua"/>
<action actionid="7110" event="script" value="quest4.lua"/>
        <action uniqueid="1950;1951;1952" event="script" value="quest5.lua"/>
<action actionid="9006" event="script" value="quest6.lua"/>
<action actionid="9007" event="script" value="quest7.lua"/>
        <action uniqueid="6400;6401;6402" event="script" value="quest8.lua"/>
<action actionid="9009" event="script" value="quest9.lua"/>
<action actionid="9010" event="script" value="quest10.lua"/>
<action actionid="9011" event="script" value="quest11.lua"/>
<action actionid="9012" event="script" value="quest12.lua"/>
<action actionid="9013" event="script" value="quest13.lua"/>
<action actionid="9014" event="script" value="quest14.lua"/>
<action actionid="9015" event="script" value="quest15.lua"/>
<action actionid="9016" event="script" value="quest16.lua"/>
<action actionid="12401;12402" event="script" value="quest17.lua"/>
<action actionid="9018" event="script" value="quest18.lua"/>
<action actionid="13401;13402" event="script" value="quest19.lua"/>
<action actionid="9020" event="script" value="quest20.lua"/>
<action actionid="9021" event="script" value="quest21.lua"/>
<action actionid="61111;62222" event="script" value="quest22.lua"/>
<action actionid="9023" event="script" value="quest23.lua"/>
<action actionid="9024" event="script" value="bikequest.lua"/>
<action itemid="1748" event="script" value="Lati_Quest.lua"/>
        <action itemid="12223" event="script" value="quest24.lua"/>
        <action itemid="9698" event="script" value="quest25.lua"/>
        <action itemid="12238" event="script" value="quest26.lua"/>
        <action itemid="9696" event="script" value="quest27.lua"/>
        <action itemid="2158" event="script" value="quest28.lua"/>
        <action itemid="9693" event="script" value="quest29.lua"/>
        <action itemid="10169" event="script" value="quest30.lua"/>
        <action itemid="9019" event="script" value="quest31.lua"/>
        <action itemid="10571" event="script" value="event1.lua"/>


 

Ola Amigos do TibiaKing , vengo por um Problema , meus Quest estan Bugada , nao sei que tem , ja tenho os Baul no Map , e cuando to no server nao posso pegar. 
 
A Qui umas das Quest: 
 
Quest24 : 

 

local a = {

[12223] = {balltype = "ultra", ballid = 11829,
pokemons = {"Shiny Reshiram"}}
}

local extrastrength = 1.1

function onUse(cid, item, frompos, item2, topos)
local b = a[item.itemid]
if not b then return true end
local pokemon = b.pokemons[math.random(#b.pokemons)] --alterado v1.3
local btype = b.balltype
if not pokeballs[btype] then return true end
local gender = getRandomGenderByName(pokemon)
local happy = 220
local leveltable = getPokemonExperienceTable(pokemon)

local ball = 0
local sendToDepot = false --alterado v1.6
if getCreatureMana(cid) >= 6 or not hasSpaceInContainer(getPlayerSlotItem(cid, 3).uid) then
sendToDepot = true
ball = doCreateItemEx(b.ballid) --alterado v1.3
else
ball = item.uid
end

doItemSetAttribute(ball, "poke", pokemon)
doItemSetAttribute(ball, "hp", 1)
doItemSetAttribute(ball, "happy", happy)
doItemSetAttribute(ball, "gender", gender)
if pokemon == "Hitmonchan" or pokemon == "Shiny Hitmonchan" then
doItemSetAttribute(ball, "hands", 0)
end
doItemSetAttribute(ball, "description", "Contains a "..pokemon..".")
doItemSetAttribute(ball, "fakedesc", "Contains a "..pokemon..".")

doPlayerSendTextMessage(cid, 27, "You opened a pokemon prize box +"..item.itemid - (11637).."!")
doPlayerSendTextMessage(cid, 27, "The prize pokemon was a "..pokemon..", congratulations!")

if sendToDepot then
doPlayerSendMailByName(getCreatureName(cid), ball, 1) --alterado v1.3
doPlayerSendTextMessage(cid, 27, "You are already holding six pokemons, so your new pokemon was sent to your depot.")
doRemoveItem(item.uid)
else
doTransformItem(ball, pokeballs[btype].on)
end

doSendMagicEffect(getThingPos(cid), 29)
return true
end

 

Action : 

<!-- Quests -->

<action actionid="2000" event="script" value="quests/system.lua"/>
<action actionid="2001" event="script" value="quests/system.lua"/>
<action actionid="9000" event="script" value="kitinicial.lua"/>
<action actionid="9001" event="script" value="quest1.lua"/>
<action actionid="9002" event="script" value="quest2.lua"/>
<action actionid="9003" event="script" value="quest3.lua"/>
<action actionid="7110" event="script" value="quest4.lua"/>
        <action uniqueid="1950;1951;1952" event="script" value="quest5.lua"/>
<action actionid="9006" event="script" value="quest6.lua"/>
<action actionid="9007" event="script" value="quest7.lua"/>
        <action uniqueid="6400;6401;6402" event="script" value="quest8.lua"/>
<action actionid="9009" event="script" value="quest9.lua"/>
<action actionid="9010" event="script" value="quest10.lua"/>
<action actionid="9011" event="script" value="quest11.lua"/>
<action actionid="9012" event="script" value="quest12.lua"/>
<action actionid="9013" event="script" value="quest13.lua"/>
<action actionid="9014" event="script" value="quest14.lua"/>
<action actionid="9015" event="script" value="quest15.lua"/>
<action actionid="9016" event="script" value="quest16.lua"/>
<action actionid="12401;12402" event="script" value="quest17.lua"/>
<action actionid="9018" event="script" value="quest18.lua"/>
<action actionid="13401;13402" event="script" value="quest19.lua"/>
<action actionid="9020" event="script" value="quest20.lua"/>
<action actionid="9021" event="script" value="quest21.lua"/>
<action actionid="61111;62222" event="script" value="quest22.lua"/>
<action actionid="9023" event="script" value="quest23.lua"/>
<action actionid="9024" event="script" value="bikequest.lua"/>
<action itemid="1748" event="script" value="Lati_Quest.lua"/>
        <action itemid="12223" event="script" value="quest24.lua"/>
        <action itemid="9698" event="script" value="quest25.lua"/>
        <action itemid="12238" event="script" value="quest26.lua"/>
        <action itemid="9696" event="script" value="quest27.lua"/>
        <action itemid="2158" event="script" value="quest28.lua"/>
        <action itemid="9693" event="script" value="quest29.lua"/>
        <action itemid="10169" event="script" value="quest30.lua"/>
        <action itemid="9019" event="script" value="quest31.lua"/>
        <action itemid="10571" event="script" value="event1.lua"/>

 
Do RP++  Nao e dado RP Hoje , do todo os Puntos de RP  :wow: 

 

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

By : Overlord   

 Ovelord%2B2%2BFull%2BHD.jpg

 

 

Si quieres hacer tutoriales y ganar dinero , acorta tus URL por AdFly -  

http://adf.ly/?id=7342566

AdFly

 
Link para o post
Compartilhar em outros sites
  • Solução

Obrigado ViitinG 


Ajuda Do PR+++ Do Todos os Puntos de RP

By : Overlord   

 Ovelord%2B2%2BFull%2BHD.jpg

 

 

Si quieres hacer tutoriales y ganar dinero , acorta tus URL por AdFly -  

http://adf.ly/?id=7342566

AdFly

 
Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo