Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 12:23

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



problem in pet_system.quest

Discussion on problem in pet_system.quest within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2012
Posts: 30
Received Thanks: 1
problem in pet_system.quest

Welcome all

i have problem in pet_system.quest

Code:
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 Fire Phoenix", 0},
                [53002]     = { 34002, "'s Baby Reindeer", 0},
                [53003]     = { 34003, "'s Ice Phoenix", 0},
                [53004]     = { 34001, "'s Fire Phoenix", 0},
                [53005]     = { 34004, "'s Baby Gahnasel", 1},
                [53010]     = { 34008, "'s Leonidas", 0},
                [53011]     = { 34007, "'s Khan", 0},
                [53012]     = { 34005, "´s Porky", 0},
                [53013]     = { 34006, "´s Rufus", 0},
                [53007]     = { 34010, "'s Bambi", 0},
            }

            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\\\\npc2_appear.mse",
			}
			return effect_table [idx]
		end
        when 53007.use or 53013.use or 53012.use or 53011.use or 53010.use or 53005.use or 53004.use or 53003.use or 53002.use or 53001.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("You already summoned a pet.")
                    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

When i activate quest

and click 53001 , 53002 , 53003 .. etc

not show all pet , only : Fire Phoenix - Baby Reindeer - Ice Phoenix -Fire Phoenix - Baby Gahnasel - Leonidas - Khan - Porky - Rufus - Bambi

where is bear_young1 and panda_young1 ?

Can any of you correct the quest ?



I am use r34

Mrkholyo is offline  
Old 10/13/2013, 11:16   #2


 
Ky0n''s Avatar
 
elite*gold: 29762
The Black Market: 280/0/0
Join Date: Dec 2010
Posts: 10,833
Received Thanks: 639
Plase use the Sticky Service for this problem:
Ky0n' is offline  
Old 10/13/2013, 13:53   #3
 
elite*gold: 0
Join Date: Jul 2010
Posts: 66
Received Thanks: 5
Code:
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 Fire Phoenix", 0},
                [53002]     = { 34002, "'s Baby Reindeer", 0},
                [53003]     = { 34003, "'s Ice Phoenix", 0},
                [53004]     = { 34001, "'s Fire Phoenix", 0},
                [53005]     = { 34004, "'s Baby Gahnasel", 1},
                [53007]     = { 34010, "'s Bambi", 0},
	        [53008]     = { 34011, "'s Knuud", 0},
		[53009]     = { 34012, "'s Bao Bao", 0},
		[53010]     = { 34008, "'s Leonidas", 0},
                [53011]     = { 34007, "'s Khan", 0},
                [53012]     = { 34005, "'s Porky", 0},
                [53013]     = { 34006, "'s Rufus", 0},
            }

            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\\\\npc2_appear.mse",
			}
			return effect_table [idx]
		end
        when 53013.use or 53012.use or 53011.use or 53010.use or 53009.use or 53008.use or 53007.use or 53005.use or 53004.use or 53003.use or 53002.use or 53001.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("You already summoned a pet.")
                    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
makralovag is offline  
Old 10/13/2013, 13:57   #4


 
Xijezu's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 5,084
Received Thanks: 3,458
#closed
Xijezu is offline  
Closed Thread


Similar Threads Similar Threads
SG Pet_system
07/09/2013 - Metin2 Private Server - 5 Replies
Guten Tag, ich habe eine Frage bezüglich dieser quest aus den SG Files, es geht darum wenn ich den quest ordner von sg benutze und da ein paar quests deaktiviere kann ich die Pets rufen es funktioniert einwandfrei doch sollte ich eine "eigene" weitere quest aktivieren compilen und reloaden dann kann ich die scheiß pets nicht mehr rufen!
Compile all quest without quest's files list // Kompilieren Sie alle Quest ohne Quest
07/17/2011 - Metin2 PServer Guides & Strategies - 3 Replies
ENGLISH Hello dear community, this is a very simple guide but at the same time useful. How to compile ALL quest in the folder "quest" without the files list in the file "locale_list"? Easy! Open the file "make" and replace the content of the file with this: for f in *.quest; do ./qc $f; done Oki. Now set the 0777 permission to the file. Finally open a SSH client and sign in. Write the command: cd /game_file_folder
[Quest Problem]
04/11/2011 - Metin2 Private Server - 1 Replies
Ahoi Elitepvpers. Ich habe ein kleines Problem mit meiner Quest. Sie Funktioniert nicht und ich finde den Fehler nicht. Hier mal die Quest: quest grotte2 begin state start begin when login or levelup with pc.level >0 begin set_state(zone_enter) end
[Problem] Problem with server starting - cannot find quest index for PaxHeader
12/22/2009 - Metin2 Private Server - 1 Replies
Hello! I have this same problem as here when i'm starting my server: http://www.elitepvpers.com/forum/metin2-pserver-di scussions-questions/307143-metin2-serverfiles-ques t-index-fehler.html But I didn't know the answer.. how to repair this? Greetings



All times are GMT +2. The time now is 12:23.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.