antiblock
Rodnia | Alpha & Omega
  • Chatbox

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

[Help] Adicionar Mais Montarias No Sistema!

2 posts in this topic

Boas, estou tentando colocar outros Pets no Pet System do BlackYuko...

O mesmo sistema incluso nas files do Rancoroso.

Mas não está sendo uma tarefa fácil por falta de conhecimento da minha parte.

Eu além dos 8 pets já existentes quero colocar mais 8 ! Ficando com 16 no total.

Na questlib.lua, tentei mudar o PetArray para isto:

PetArray = {

{53001, "fenice_rossa", "Fênix de Fogo", 30068, PetExpTable, { 3,1,3,1, }, },

{53002, "renna", "Rena Filhote", 30068, PetExpTable, { 3,3,1,1, }, },

{53003, "fenice_blu", "Fênix de Gelo", 30068, PetExpTable, { 3,1,1,3, }, },

{53005, "azarel", "Baby Azrael", 30068, PetExpTable, { 2,1,3,2, }, },

{53006, "cane", "Cão Filhote", 30068, PetExpTable, { 1,3,1,3, }, },

{53007, "leone", "Leão Filhote", 30068, PetExpTable, { 1,1,3,3, }, },

{53008, "cinghiale", "Javali Filhote", 30068, PetExpTable, { 1,3,3,1, }, },

{53009, "tigre", "Tigre Filhote", 30068, PetExpTable, { 2,3,2,1, }, },

{53010, "panda", "Panda Filhote", 30068, PetExpTable, { 3,1,3,1, }, },

{53011, "bear", "Urso Filhote", 30068, PetExpTable, { 3,3,1,1, }, },

{53012, "growlion", "Growlion", 30068, PetExpTable, { 3,1,1,3, }, },

{53013, "divine_fenice", "Fênix Divina", 30068, PetExpTable, { 2,1,3,2, }, },

{53014, "fox", "Raposa Filhote", 30068, PetExpTable, { 1,3,1,3, }, },

{53015, "white_fox", "Raposa Branca", 30068, PetExpTable, { 1,1,3,3, }, },

{53016, "esquilo", "Esquilo Filhote", 30068, PetExpTable, { 1,3,3,1, }, },

{53018, "nycat", "Nycat Rosa", 30068, PetExpTable, { 2,3,2,1, }, },

}

E também, alterei na pet_system.quest os novos itens de evocar os pets:

quest pet_system begin

state start begin

when 53001.use or 53002.use or 53003.use or 53005.use or 53006.use or 53007.use or 53008.use or 53009.use or 53010.use or 53011.use or 53012.use or 53013.use or 53014.use or 53015.use or 53016.use or 53017.use or 53018.use or 53019.use or 53020.use begin

local ItemValue = item.vnum

for i = 1, table.getn(PetArray), 1 do

if PetArray[1] == ItemValue then

local PetState = PetArray[2]

if pc.getqf("pet_index") == 0 then

if pc.getqf(PetState) == 0 then

local check = inizializza(i)

if check != 0 then return end

pc.setqf(PetState, 1)

end

pc.setqf("pet_index", i)

evoca(i, PET_SUMMON)

else

evoca(i, PET_UNSUMMON)

pc.setqf("pet_index", 0)

end

end

end

end

when 20120.click with pc.getqf("pet_index") == 1 begin show_pet_menu(1) end

when 20121.click with pc.getqf("pet_index") == 1 begin show_pet_menu(1) end

when 20122.click with pc.getqf("pet_index") == 1 begin show_pet_menu(1) end

when 20123.click with pc.getqf("pet_index") == 2 begin show_pet_menu(2) end

when 20124.click with pc.getqf("pet_index") == 2 begin show_pet_menu(2) end

when 20125.click with pc.getqf("pet_index") == 2 begin show_pet_menu(2) end

when 20126.click with pc.getqf("pet_index") == 3 begin show_pet_menu(3) end

when 20127.click with pc.getqf("pet_index") == 3 begin show_pet_menu(3) end

when 20128.click with pc.getqf("pet_index") == 3 begin show_pet_menu(3) end

when 20129.click with pc.getqf("pet_index") == 4 begin show_pet_menu(4) end

when 20130.click with pc.getqf("pet_index") == 4 begin show_pet_menu(4) end

when 20131.click with pc.getqf("pet_index") == 4 begin show_pet_menu(4) end

when 20132.click with pc.getqf("pet_index") == 5 begin show_pet_menu(5) end

when 20133.click with pc.getqf("pet_index") == 5 begin show_pet_menu(5) end

when 20134.click with pc.getqf("pet_index") == 5 begin show_pet_menu(5) end

when 20135.click with pc.getqf("pet_index") == 6 begin show_pet_menu(6) end

when 20136.click with pc.getqf("pet_index") == 6 begin show_pet_menu(6) end

when 20137.click with pc.getqf("pet_index") == 6 begin show_pet_menu(6) end

when 20138.click with pc.getqf("pet_index") == 7 begin show_pet_menu(7) end

when 20139.click with pc.getqf("pet_index") == 7 begin show_pet_menu(7) end

when 20140.click with pc.getqf("pet_index") == 7 begin show_pet_menu(7) end

when 20141.click with pc.getqf("pet_index") == 8 begin show_pet_menu(8) end

when 20142.click with pc.getqf("pet_index") == 8 begin show_pet_menu(8) end

when 20143.click with pc.getqf("pet_index") == 8 begin show_pet_menu(8) end

when 20144.click with pc.getqf("pet_index") == 9 begin show_pet_menu(9) end

when 20145.click with pc.getqf("pet_index") == 9 begin show_pet_menu(9) end

when 20146.click with pc.getqf("pet_index") == 9 begin show_pet_menu(9) end

when 20147.click with pc.getqf("pet_index") == 10 begin show_pet_menu(10) end

when 20148.click with pc.getqf("pet_index") == 10 begin show_pet_menu(10) end

when 20149.click with pc.getqf("pet_index") == 10 begin show_pet_menu(10) end

when 20150.click with pc.getqf("pet_index") == 11 begin show_pet_menu(11) end

when 20151.click with pc.getqf("pet_index") == 11 begin show_pet_menu(11) end

when 20152.click with pc.getqf("pet_index") == 11 begin show_pet_menu(11) end

when 20153.click with pc.getqf("pet_index") == 12 begin show_pet_menu(12) end

when 20154.click with pc.getqf("pet_index") == 12 begin show_pet_menu(12) end

when 20155.click with pc.getqf("pet_index") == 12 begin show_pet_menu(12) end

when 20156.click with pc.getqf("pet_index") == 13 begin show_pet_menu(13) end

when 20157.click with pc.getqf("pet_index") == 13 begin show_pet_menu(13) end

when 20158.click with pc.getqf("pet_index") == 13 begin show_pet_menu(13) end

when 20159.click with pc.getqf("pet_index") == 14 begin show_pet_menu(14) end

when 20160.click with pc.getqf("pet_index") == 14 begin show_pet_menu(14) end

when 20161.click with pc.getqf("pet_index") == 14 begin show_pet_menu(14) end

when 20162.click with pc.getqf("pet_index") == 15 begin show_pet_menu(15) end

when 20163.click with pc.getqf("pet_index") == 15 begin show_pet_menu(15) end

when 20164.click with pc.getqf("pet_index") == 15 begin show_pet_menu(15) end

when 20165.click with pc.getqf("pet_index") == 16 begin show_pet_menu(16) end

when 20166.click with pc.getqf("pet_index") == 16 begin show_pet_menu(16) end

when 20167.click with pc.getqf("pet_index") == 16 begin show_pet_menu(16) end

when 20168.click with pc.getqf("pet_index") == 17 begin show_pet_menu(17) end

when 20169.click with pc.getqf("pet_index") == 17 begin show_pet_menu(17) end

when 20170.click with pc.getqf("pet_index") == 17 begin show_pet_menu(17) end

when 20171.click with pc.getqf("pet_index") == 18 begin show_pet_menu(18) end

when 20172.click with pc.getqf("pet_index") == 18 begin show_pet_menu(18) end

when 20173.click with pc.getqf("pet_index") == 18 begin show_pet_menu(18) end

when 20174.click with pc.getqf("pet_index") == 19 begin show_pet_menu(19) end

when 20175.click with pc.getqf("pet_index") == 19 begin show_pet_menu(19) end

when 20176.click with pc.getqf("pet_index") == 19 begin show_pet_menu(19) end

CONTINUA...

Mas sempre que tento evocar apartir do Pet numero 10, todos os outros aparece a mesma imagem do 10 e se repete até o último.

Além disso os pets a partir do 10 não tem como abrir as opções ao clicar nele.

Fora isso, está funcionando normalmente... Ao usar /poly + numero_do_pet aparece corretamente.

Tem mais algo que devo editar na quest ou na lib para acrescentar mais pets ?

Dou http://cyber-gamers.org/public/style_emoticons/default/451960.gif para quem me ajudar :(

Share this post


Link to post
Share on other sites
antiblock
Cyphriun
Tópico Fechado
Tópico Antigo e Sem resposta
 
Movido de Metin2 - Dúvidas para Lixeira do Fórum

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this