Register for your free account! | Forgot your password?

You last visited: Today at 01:10

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

Advertisement



[Porblem]Pets

Discussion on [Porblem]Pets within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Sep 2010
Posts: 1,219
Received Thanks: 278
[Porblem]Pets

Hey,

habe ein problem mit dem pet system:



kann beides rufen aber das pferd wird auch als pet angezeigt!
´Sh4Xx` is offline  
Old 04/01/2013, 14:14   #2

 
elite*gold: 0
Join Date: Mar 2013
Posts: 2,449
Received Thanks: 6,448
Poste mal die Quest.
Lord iRemix is offline  
Old 04/01/2013, 14:15   #3
 
elite*gold: 0
Join Date: Sep 2010
Posts: 1,219
Received Thanks: 278
PHP Code:
quest pets begin 
    state start begin     
     
        
function givebonus(x
            
local y,boni = {53,54,1},pets.bonusliste() 
            
table.foreach(boni[x],function(i,l)  cmdchat("HaustierBonus"..i.." "..l..""affect.add_collect(y[i],l,60*60*24*365*60end 
            
cmdchat("HaustierLevel "..pc.getqf('petlevel')..""
            
cmdchat("HaustierName "..pc.get_name()..""
            
pc.setqf("petruf",1)                 
        
end 
        
function bonusliste() 
            return { 
                [
1] = {200,100,500}, 
                [
2] = {250,150,1000}, 
                [
3] = {300,200,1500}, 
                [
4] = {350,250,2000}, 
                [
5] = {400,300,3000}, 
            } 
        
end     
        
function removebonus(x
            
local y,boni = {53,54,1},pets.bonusliste() 
            
table.foreach(boni[x],function(i,laffect.remove_collect(y[i],l,60*60*24*365*60end 
             
pet.unsummon() 
            
pc.setqf("petruf",0
            
horse.set_level("21"
            
cmdchat("HidePetGui"
            
cleartimer("bugcheck"
        
end         
     
        when 53001.
use begin 
            horse
.unride() horse.unsummon() 
            if 
pc.is_mount() then 
                say_title
("Entschuldigung"
                
say("Bitte steige von deinem Mount ab!"
                return 
            
end 
            
if pc.getqf('petlevel') == 0 then 
                pc
.setqf('petlevel',1
            
end 
            
if pc.getqf("petruf") == 0 then 
                local Horselevel 
29-pc.getqf('petlevel'
                
horse.set_level(Horselevel
                 
pet.unsummon()  pet.summon() 
                
chat("Dein Haustier wurde gerufen."
                
pets.givebonus(pc.getqf('petlevel')) 
                
local expprocent1 = {2080160350400
                
cmdchat("PetProcentExp "..(pc.getqf("exp")/expprocent1[pc.getqf("petlevel")]).."")                 
                
cmdchat("ShowPetGui"
                
loop_timer("bugcheck"0.2
            elseif 
pc.getqf("petruf") == 1 then         
                pets
.removebonus(pc.getqf('petlevel')) 
                
chat("Dein Haustier verabschiedet sich nun."
            
end         
        end 
         
         
        when kill with pc
.getqf("petruf") == 1 begin 
            
if pc.getqf("petlevel") == 5 then 
                
return 
            
end     
            
if not npc.is_pc() then 
                pc
.setqf("exp",pc.getqf("exp")+1
                
local exp2up = {20008000160003500040000
                
local expprocent = {2080160350400
                
cmdchat("PetProcentExp "..(pc.getqf("exp")/expprocent[pc.getqf("petlevel")])..""
                if 
pc.getqf("exp") == exp2up[pc.getqf("petlevel")] then 
                    
if pc.getqf("petlevel") == 4 then 
                        say_title
("Herzlichen Glückwunsch"
                        
say("Dein Haustier erreicht Level "..(pc.getqf("petlevel")+1)..""
                        
say_reward("Dies war das letzte Level!"
                    
end 
                    say_title
("Herzlichen Glückwunsch"
                    
say("Dein Haustier erreicht Level "..(pc.getqf("petlevel")+1)..""
                    
say("Rufe dein Pet bitte erneut!"
                    
pc.setqf("petlevel",pc.getqf("petlevel")+1
                    
pc.setqf("exp",0
                    
pets.removebonus(pc.getqf('petlevel')) 
                
end 
            end 
        end 
         
        
-- Bugschutz 
         
        when bugcheck
.timer begin 
            
if pc.count_item(53001) == 0 then 
                say_title
("Buguser"
                
say("Bugusing festgestellt!"
                
pets.removebonus(pc.getqf('petlevel')) 
            
end 
        end 
         
        when login 
or logout or disconnect with pc.getqf("petruf") == 1 begin 
            pets
.removebonus(pc.getqf('petlevel')) 
            
chat("Dein Haustier ist nicht mitgekommen..."
            
chat("Rufe es erneut!")     
        
end         
         
    end     
end 
´Sh4Xx` is offline  
Reply


Similar Threads Similar Threads
[Help]Non Tradeable Items, Pets, Grap Pets Etc.
12/22/2011 - SRO Private Server - 0 Replies
How can i do these? I want to do this Item Mall items can not be traded. and I want to gave a grap pet and premium(only 1 week term) for my new player when they open a new character they see this on their inventory. Also i want to gave this like award for event times.
[Demon pets Online] Newest database, God Maps, Customs, New Pets, Check us Out.
07/17/2010 - EO PServer Hosting - 15 Replies
http://i45.tinypic.com/2j26zio.png Server Rates: • Exp Rate: Mediun • Drop Gold: Medium • Drop 2700 card: Medium • Drop 270 card: Medium • Drop Bags: Medium
WTS Rare Pets and Basic Pets on Lydian
02/11/2010 - Rappelz Trading - 5 Replies
I am selling all my pets i have in game at the server of Lydian. full ob Angel and Kenta low lvl Naga low lvl Harpy , Hawk and Sala I am selling the Pets only for CASH ! I can show screenshots or i can show you the pets in Game too ! Dont accept trading or ppl who gave me offer and pm me back in more then 7 days again !
New Way to Dupe Pets / Call out Multiple Pets
04/21/2006 - General Gaming Discussion - 0 Replies
*TESTCENTER*do this before the blue frog disappears and stops giving out mounts/vehicles. 1. go to to the blue frog, go to vehicles/mounts. 2. pick ur mount, it will come out 3. wait till it disappears 4. once it disappears call it out, and mount it



All times are GMT +2. The time now is 01:10.


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.