Problema quest!

Înainte de a posta o problemă, caută în acest forum și poate găsești rezolvare.
Închis
Avatar utilizator
Penguin
Nivel 3

Nivel 3
Mesaje: 307
Membru din: 29 Apr 2017, 01:35
Server: None
Regat: Jinno
Aprecieri: 145  
Mulţumiri: 86  
Medalii

Salut, am o mica problema, fiind vorba despre un quest:

Cod: Selectaţi tot

quest pet_system begin
    state start begin
        function get_pet_info(itemVnum)
            pet_info_map = {
            --  [ITEM VNUM] MOB_VNUM, DEFAULT NAME, buff_idx, spawn_effect_idx
                [53001]     = { 34001, "'s Pheonix Foc ", 1},
                [53002]     = { 34002, "'s Pui de Ren ", 1},
                [53003]     = { 34003, "'s Pheonix Gheaþã ", 1},
                [53005]     = { 34004, "'s Azrael ", 1},
				[53006]		= { 34009, "'s Azrael Aur ", 1},
                [53007]     = { 34010, "'s Bambi ", 1},
				[53008]		= { 34011, "'s Knuud ", 1},
				[53009]		= { 34012, "'s Bao Bao ", 1},
                [53010]     = { 34008, "'s Leonidas ", 1},
                [53011]     = { 34007, "'s Khan ", 1},
                [53012]     = { 34005, "'s Porky ", 1},
                [53013]     = { 34006, "'s Rufus ", 1},
				[53014]     = { 34013, "'s Mini-Executor ", 1},
				[53015]     = { 34014, "'s Mini-Executo(Aur) ", 1},
				[53016]     = { 34015, "'s Oase ", 1},
				[53017]     = { 34016, "'s Pheonix Jad ", 1},
				[53018]     = { 34020, "'s Leonidas Arctic ", 1},
				[53019]     = { 34019, "'s Khan Arctic ", 1},
				[53022]     = { 34021, "'s Sheldon ", 1},
				[53023]     = { 34022, "'s Cooper ", 1},
				[53024]     = { 34023, "'s Panterã ", 1},
				[53025]     = { 34024, "'s Leopard ", 1},
				[53222]     = { 34026, "'s Cap de Dovleac ", 1},
				[53223]     = { 34027, "'s Coadã de Mãturã ", 1},
				[53224]     = { 34028, "'s Fulg de Nea ", 1},
				[53225]     = { 34029, "'s Clopotel de Nea ", 1},	
				[53226]     = { 34030, "'s Cupidon ", 1},
				[53227]     = { 34031, "'s Inima Iute ", 1},
				[53228]     = { 34032, "'s Semiluna Albastra ", 1},
				[53229]     = { 34033, "'s Semiluna Rosie ", 1},
				[53230]     = { 34034, "'s Mielusel Albastru ", 1},
				[53231]     = { 34035, "'s Mielusel Alb ", 1},
				[53232]     = { 34036, "'s Micul Huashin ", 1},	
            }

            itemVnum = tonumber(itemVnum)

            return pet_info_map[itemVnum]
        end
		function get_spawn_effect_file(idx)
			effect_table = {
				[0] = nil,
				[1] = "d:\\\\ymir work\\\\effect\\\\etc\\\\appear_die\\\\monster_die.mse",
			}
			return effect_table [idx]
		end
		when 53001.use or 53002.use or 53003.use or 53015.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 53016.use or 53014.use or 53013.use or 53017.use or 53018.use or 53019.use or 53020.use or 53021.use or 53022.use or 53023.use or 53024.use or 53025.use or 53222.use or 53223.use or 53224.use or 53225.use or 53226.use or 53227.use or 53228.use or 53229.use or 53230.use or 53231.use or 53232.use begin
            local pet_info = pet_system.get_pet_info(item.vnum)

            if null != pet_info then

                local mobVnum = pet_info[1]
                local petName = pet_info[2]
				local spawn_effect_file_name = pet_system.get_spawn_effect_file(pet_info[3])

                if true == pet.is_summon(mobVnum) then
					if spawn_effect_file_name != nil then
						pet.spawn_effect (mobVnum, spawn_effect_file_name)
					end
                    pet.unsummon(mobVnum)
                else
                    if pet.count_summoned() < 1 then
                        pet.summon(mobVnum, petName, false)
                    else
                        syschat("Ai deja un animãluþ chemat, nu poþi chema altul. Trimite-l înapoi pe celãlalt, ºi apoi cheamã-l pe ãsta. ")
                    end
					if spawn_effect_file_name != nil then
						pet.spawn_effect(mobVnum, spawn_effect_file_name)
					end
                end -- if pet.is_summon
            end  -- if null != pet_info
        end -- when
    end -- state
end -- quest

cand incerc sa il instalez imi da Abort(Core dumped):

Cod: Selectaţi tot

root@:~ # cd /usr/game/share/locale/romania/quest
root@:/usr/game/share/locale/romania/quest # ./qc pet_system222.quest
QUEST : pet_system
STATE : start
FUNCTION get_pet_info(itemVnum)
FUNCTION get_spawn_effect_file(idx)
WHEN  : 53001.use or
WHEN  : 53002.use or
WHEN  : 53003.use or
WHEN  : 53015.use or
WHEN  : 53005.use or
WHEN  : 53006.use or
WHEN  : 53007.use or
WHEN  : 53008.use or
WHEN  : 53009.use or
WHEN  : 53010.use or
WHEN  : 53011.use or
WHEN  : 53012.use or
WHEN  : 53016.use or
WHEN  : 53014.use or
WHEN  : 53013.use or
WHEN  : 53017.use or
WHEN  : 53018.use or
WHEN  : 53019.use or
WHEN  : 53020.use or
WHEN  : 53021.use or
WHEN  : 53022.use or
WHEN  : 53023.use or
WHEN  : 53024.use or
WHEN  : 53025.use or
WHEN  : 53222.use or
WHEN  : 53223.use or
WHEN  : 53224.use or
WHEN  : 53225.use or
WHEN  : 53226.use or
WHEN  : 53227.use or
WHEN  : 53228.use or
WHEN  : 53229.use or
WHEN  : 53230.use or
WHEN  : 53231.use or
WHEN  : 53232.use
Calls undeclared function! :
pet.count_summoned
pet.is_summon
pet.spawn_effect
pet.summon
pet.unsummon
Abort (core dumped)

Serverfiles:Cartof v2;
Ce as putea sa fac ca sa mearga?
Avatar utilizator
dragos001
Nivel 4

Nivel 4
Mesaje: 566
Membru din: 01 Mar 2014, 14:08
Aprecieri: 2  
Mulţumiri: 483  
Medalii

Adauga in fisierul quest_functions astea:

Cod: Selectaţi tot

pet.count_summoned
pet.is_summon
pet.spawn_effect
pet.summon
pet.unsummon 
Ai nevoie de support? Contacteaza-ma!

Contact!
Discord: Dragos001#6927
Afișează semnătura
Avatar utilizator
Penguin
Nivel 3

Nivel 3
Mesaje: 307
Membru din: 29 Apr 2017, 01:35
Server: None
Regat: Jinno
Aprecieri: 145  
Mulţumiri: 86  
Medalii

mersi mult, T/C!
Avatar utilizator
dragos001
Nivel 4

Nivel 4
Mesaje: 566
Membru din: 01 Mar 2014, 14:08
Aprecieri: 2  
Mulţumiri: 483  
Medalii

Rezolvat!TC.
Ai nevoie de support? Contacteaza-ma!

Contact!
Discord: Dragos001#6927
Afișează semnătura
Închis
Răspunsuri
6
Vizualizări
400
Răspunsuri
4
Vizualizări
224
Răspunsuri
4
Vizualizări
414
Răspunsuri
3
Vizualizări
737

Înapoi la “Probleme rezolvate”

  • Informaţie
  • Cine este conectat

    Utilizatori ce ce navighează pe acest forum: Niciun utilizator înregistrat și 12 vizitatori