Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 18:24

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

Advertisement



[HELP]OFFİCİAL PET SYSTEM

Discussion on [HELP]OFFİCİAL PET SYSTEM within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2012
Posts: 166
Received Thanks: 71
[HELP]OFFİCİAL PET SYSTEM

help does not work

PHP Code:
quest pet_system begin
    state start begin
        
function get_pet_info(itemVnum)
            
pet_info_map = {
            --  [
ITEM VNUMMOB_VNUM, DEFAULT NAMEbuff_idxspawn_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(mobVnumthen
                    
if spawn_effect_file_name != nil then
                        pet
.spawn_effect (mobVnumspawn_effect_file_name)
                    
end
                    pet
.unsummon(mobVnum)
                else
                    if 
pet.count_summoned() < 1 then
                        pet
.summon(mobVnumpetNamefalse)
                    else
                        
syschat("You already summoned a pet.")
                    
end
                    
if spawn_effect_file_name != nil then
                        pet
.spawn_effect(mobVnumspawn_effect_file_name)
                    
end
                end 
-- if pet.is_summon
            end  
-- if null != pet_info
        end 
-- when
    end 
-- state
end 
-- quest 
bakam321 is offline  
Old 06/28/2013, 14:50   #2
 
elite*gold: 260
Join Date: Jan 2013
Posts: 178
Received Thanks: 104
you have to have the mobs in your mob_proto with the right vnums

34001
34002
....
34010

btw, Wrong Section next time post
Metin2 Team is offline  
Old 06/28/2013, 14:51   #3
 
thehero09's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 125
Received Thanks: 13
I tried, but I can not run. One of my friends is working, but he does not know how it is working.
thehero09 is offline  
Old 06/28/2013, 14:51   #4

 
Aze /..'s Avatar
 
elite*gold: 220
Join Date: Oct 2011
Posts: 7,370
Received Thanks: 7,613
Reading is hard, hmm?

Aze /.. is offline  
Old 06/28/2013, 14:52   #5
 
elite*gold: 0
Join Date: Jan 2012
Posts: 166
Received Thanks: 71
Quote:
Originally Posted by .AweZome' View Post
Reading is hard, hmm?

yardım edin
bakam321 is offline  
Old 06/28/2013, 14:53   #6
 
thehero09's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 125
Received Thanks: 13
Quote:
Originally Posted by Metin2 Team View Post
you have to have the mobs in your mob_proto with the right vnums

34001
34002
....
34010

btw, Wrong Section next time post
it is the right vnums.
thehero09 is offline  
Old 06/28/2013, 14:54   #7


 
elite*gold: 0
Join Date: Feb 2010
Posts: 7,220
Received Thanks: 6,758
"I can not run" - This is worst error text I've ever read here. Tell us your problem or we can't help u.
#SoNiice is offline  
Old 06/28/2013, 14:57   #8
 
elite*gold: 0
Join Date: Jan 2012
Posts: 166
Received Thanks: 71
Quote:
Originally Posted by SoNiice View Post
"I can not run" - This is worst error text I've ever read here. Tell us your problem or we can't help u.
What's wrong?
bakam321 is offline  
Old 06/28/2013, 15:00   #9



 
.aNNdii#'s Avatar
 
elite*gold: 1
Join Date: Aug 2008
Posts: 7,744
Received Thanks: 3,605
Arrow Metin2 PServer Guides & Strategies -> Metin2 PServer - Discussions / Questions

#moved
.aNNdii# is offline  
Thanks
1 User
Old 06/28/2013, 15:02   #10
 
thehero09's Avatar
 
elite*gold: 0
Join Date: Jun 2012
Posts: 125
Received Thanks: 13
Quote:
Originally Posted by SoNiice View Post
"I can not run" - This is worst error text I've ever read here. Tell us your problem or we can't help u.
Sorry, my english is very bad.
thehero09 is offline  
Reply


Similar Threads Similar Threads
Caravan Online-110 Cap-Free Silk Coin System-Fight-Power System
06/13/2013 - SRO PServer Advertising - 14 Replies
closed game
110 Cap D11 Pve new Uninques new System / new Job System / Free Silk / Easy System
05/26/2013 - SRO PServer Advertising - 19 Replies
AT the Frist i will give Info about the game Server will start lv 1 Max Lv 110 Free Silk 500K New System for Job Egy A CaN Get From FGW So Easy :) Egy B Can Get From Uniques FGW Set Egy A Distraction With Coin Set Egy B Immortality With Coin



All times are GMT +1. The time now is 18:24.


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.