Register for your free account! | Forgot your password?

You last visited: Today at 12:21

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

Advertisement



PetS laufen komisch

Discussion on PetS laufen komisch within the Metin2 Private Server forum part of the Metin2 category.

Closed Thread
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2014
Posts: 127
Received Thanks: 2
PetS laufen komisch

HalliHallo, ich hab ein Problem mit meinen Pets, ich habe in der Pet.quest die Bonis eingetragen die ich gerne haben möchte, doch da gibt es einige Probleme xD.....1.) Wirkt der Monster Boni nicht den ich eingetragen habe 2.) Wenn ich zbs. Azrael-Pet rufe und das Pet mit einem anderen pet wegschicke werden die falschen bonis abgezogen, zudem wird IG die zeit von den Pets nicht angezeigt die ablaufen soll...

PHP Code:
quest haustiere begin
    state start begin
        
-- Setzt den neuen Petnamen in die Datenbank ein
        
function set_pet_name(name)
            
mysql_query("DELETE FROM player.pet_name WHERE id = \\'"..pc.get_player_id().."\\'")
            
mysql_query("INSERT INTO player.pet_name(id, name) VALUES(\\'"..pc.get_player_id().."\\', \\'"..name.."\\')")
        
end
        
-- Holt sich den Petnamen aus der Datenbank
        
function get_pet_name()
            
local pet_name mysql_query("SELECT * FROM player.pet_name WHERE id = \\'"..pc.get_player_id().."\\'")
            return (
pet_name.name or {pc.get_name().."'s Haustier"})[1]
        
end
        
-- Feuer-Phönix
        when 53001.
use begin
            
if pet.is_summon() then
                pet
.unsummon()
                
chat("Dein Haustier verabschiedet sich nun von dir!")
                
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER1060*60*8)
                
affect.remove_collect(apply.MAX_HP80060*60*8)
            else
                
local old_level horse.get_level()
                
local old_name horse.get_name()
                
horse.set_level(22)
                
horse.set_name(haustiere.get_pet_name())
                
pet.summon()
                
horse.set_level(old_level)
                
horse.set_name(old_name)
                
affect.add_collect(apply.ATT_BONUS_TO_MONSTER1060*60*8)
                
affect.add_collect(apply.MAX_HP80060*60*8)
            
end
        end
        
-- panda
        when 53002.
use begin
            
if pet.is_summon() then
                pet
.unsummon()
                
chat("Dein Haustier verabschiedet sich nun von dir!")
                
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER2060*60*8)
                
affect.remove_collect(apply.CRITICAL_PCT1060*60*8)   
                
affect.remove_collect(apply.MAX_HP200060*60*8)
                
affect.remove_collect(apply.STEAL_HP1060*60*8)
            else
                
local old_level horse.get_level()
                
local old_name horse.get_name()
                
horse.set_level(24)
                
horse.set_name(haustiere.get_pet_name())
                
pet.summon()
                
horse.set_level(old_level)
                
horse.set_name(old_name)
                
affect.add_collect(apply.ATT_BONUS_TO_MONSTER2060*60*8)
                
affect.add_collect(apply.CRITICAL_PCT1060*60*8)
                
affect.add_collect(apply.MAX_HP200060*60*8)
                
affect.add_collect(apply.STEAL_HP1060*60*8)
            
end
        end
        
-- Eis-Phönix
        when 53003.
use begin
            
if pet.is_summon() then
                pet
.unsummon()
                
chat("Dein Haustier verabschiedet sich nun von dir!")
                
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER1060*60*8)
                
affect.remove_collect(apply.BLOCK1060*60*8)   
                
affect.remove_collect(apply.MAX_HP150060*60*8)
            else
                
local old_level horse.get_level()
                
local old_name horse.get_name()
                
horse.set_level(23)
                
horse.set_name(haustiere.get_pet_name())
                
pet.summon()
                
horse.set_level(old_level)
                
horse.set_name(old_name)
                
affect.add_collect(apply.ATT_BONUS_TO_MONSTER1060*60*8)
                
affect.add_collect(apply.BLOCK1060*60*8)
                
affect.add_collect(apply.MAX_HP150060*60*8)
            
end
        end
        
-- Baby-Azrael
        when 53005.
use begin
            
if pet.is_summon() then
                pet
.unsummon()
                
chat("Dein Haustier verabschiedet sich nun von dir!")
                
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER560*60*8)  
                
affect.remove_collect(apply.ATTBONUS_UNDEAD2060*60*8)
                
affect.remove_collect(apply.MAX_HP150060*60*8)
            else
                
local old_level horse.get_level()
                
local old_name horse.get_name()
                
horse.set_level(25)
                
horse.set_name(haustiere.get_pet_name())
                
pet.summon()
                
horse.set_level(old_level)
                
horse.set_name(old_name)
                
affect.add_collect(apply.ATT_BONUS_TO_MONSTER560*60*8)
                
affect.add_collect(apply.ATTBONUS_UNDEAD2060*60*8)
                
affect.add_collect(apply.MAX_HP150060*60*8)
            
end
        end
        
-- Baby-Wolfs
        when 53006.
use begin
            
if pet.is_summon() then
                pet
.unsummon()
                
chat("Dein Haustier verabschiedet sich nun von dir!")
                
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER560*60*8)
                
affect.remove_collect(apply.CRITICAL_PCT560*60*8)
                
affect.remove_collect(apply.HP_REGEN2560*60*8)
            else
                
local old_level horse.get_level()
                
local old_name horse.get_name()
                
horse.set_level(26)
                
horse.set_name(haustiere.get_pet_name())
                
pet.summon()
                
horse.set_level(old_level)
                
horse.set_name(old_name)
                
affect.add_collect(apply.ATT_BONUS_TO_MONSTER560*60*8)
                
affect.add_collect(apply.CRITICAL_PCT560*60*8)
                
affect.add_collect(apply.HP_REGEN2560*60*8)
            
end
        end
        
-- Baby-Löwen
        when 53007.
use begin
            
if pet.is_summon() then
                pet
.unsummon()
                
chat("Dein Haustier verabschiedet sich nun von dir!")                                  
                
affect.remove_collect(apply.DEF_GRADE_BONUS7560*60*8)
                
affect.remove_collect(apply.MAX_HP150060*60*8)
            else
                
local old_level horse.get_level()
                
local old_name horse.get_name()
                
horse.set_level(27)
                
horse.set_name(haustiere.get_pet_name())
                
pet.summon()
                
horse.set_level(old_level)
                
horse.set_name(old_name)
                
affect.add_collect(apply.DEF_GRADE_BONUS7560*60*8)
                
affect.add_collect(apply.MAX_HP150060*60*8)
            
end
        end
        
-- Baby-Keiler
        when 53008.
use begin
            
if pet.is_summon() then
                pet
.unsummon()
                
chat("Dein Haustier verabschiedet sich nun von dir!")
                
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER560*60*8)
                
affect.remove_collect(apply.MAX_HP50060*60*8)
            else
                
local old_level horse.get_level()
                
local old_name horse.get_name()
                
horse.set_level(28)
                
horse.set_name(haustiere.get_pet_name())
                
pet.summon()
                
horse.set_level(old_level)
                
horse.set_name(old_name)
                
affect.add_collect(apply.ATT_BONUS_TO_MONSTER560*60*8)
                
affect.add_collect(apply.MAX_HP50060*60*8)
            
end
        end
        
-- Baby-Tiger
        when 53009.
use begin
            
if pet.is_summon() then
                pet
.unsummon()
                
chat("Dein Haustier verabschiedet sich nun von dir!")
                
affect.remove_collect(apply.ATT_BONUS_TO_MONSTER2060*60*8)
                
affect.remove_collect(apply.CRITICAL_PCT1060*60*8)
            else
                
local old_level horse.get_level()
                
local old_name horse.get_name()
                
horse.set_level(29)
                
horse.set_name(haustiere.get_pet_name())
                
pet.summon()
                
horse.set_level(old_level)
                
horse.set_name(old_name)
                
affect.add_collect(apply.ATT_BONUS_TO_MONSTER2060*60*8)
                
affect.add_collect(apply.CRITICAL_PCT1060*60*8)
            
end
        end
        
-- Baby-Eisbär
        when 53014.
use begin
            
if pet.is_summon() then
                pet
.unsummon()
                
chat("Dein Haustier verabschiedet sich nun von dir!")
                
affect.remove_collect(apply.CRITICAL_PCT1060*60*8)
                
affect.remove_collect(apply.ATTBONUS_DEVIL2060*60*8)   
                
affect.remove_collect(apply.ATTBONUS_UNDEAD2060*60*8)
                
affect.remove_collect(apply.MAX_HP200060*60*8)
            else
                
local old_level horse.get_level()
                
local old_name horse.get_name()
                
horse.set_level(30)
                
horse.set_name(haustiere.get_pet_name())
                
pet.summon()
                
horse.set_level(old_level)
                
horse.set_name(old_name)
                
affect.add_collect(apply.CRITICAL_PCT1060*60*8)
                
affect.add_collect(apply.ATTBONUS_DEVIL2060*60*8)
                
affect.add_collect(apply.ATTBONUS_UNDEAD2060*60*8)
                
affect.add_collect(apply.MAX_HP200060*60*8)
            
end
        end
        
-- Namenskette Namensändung des Haustiers
        when 71110.
use begin
            say_title
("Namenskette :")
            
say("")
            
say("Hier kannst du deinem Haustier einen neuen")
            
say("Namen geben. Damit kannst du dein Haustier")
            
say("über alle anderen hervorheben.")
            
say("")
            
            
akna haustiere.get_pet_name()
            
            if 
string.len(akna) == 0 then
                say_reward
("Dein Haustier besitzt bis jetzt keinen Namen.")
            else
                
say_reward("Der aktuelle Name deines Haustieres lautet: "..akna)
            
end
            
            say
("")
            
say("Möchtest du fortfahren?")
            
say("")
            
            
local s=select("Umbenennen""Abbrechen")
            if 
s==2 then
                
return
            
end
            
            say_title
("Namenskette :")
            
say("")
            
say("Bitte gib hier den neuen Namen deines")
            
say("Haustieres ein.")
            
            
local x input()
            
            if 
string.len(x) < 2 then
                say_title
("Namenskette :")
                
say("Der eingegeben Name ist zu kurz.")
                
say("")
                
say_reward("Der neue Name muss aus")
                
say_reward("mind. 2 Zeichen bestehen.")
                
say("")
                return
            elseif 
string.len(x) > 12 then
                say_title
("Namenskette :")
                
say("Der eingegeben Name ist zu lang.")
                
say("")
                
say_reward("Der neue Name darf max.")
                
say_reward("aus 12 Zeichen bestehen.")
                
say("")
                return
            
end
            
            haustiere
.set_pet_name(x)
            
chat("Haustier erfolgreich umbenannt")
            
pc.remove_item(711101)
        
end
    end
end 
LG
GololOma is offline  
Old 01/20/2014, 17:06   #2
 
elite*gold: 2
Join Date: Jun 2013
Posts: 1,063
Received Thanks: 1,725
ZIUM ->
ProfessorEnte is offline  
Old 01/20/2014, 21:16   #3


 
Nectix's Avatar
 
elite*gold: 26
The Black Market: 135/0/0
Join Date: Apr 2012
Posts: 23,018
Received Thanks: 3,060
Nectix is offline  
Closed Thread


Similar Threads Similar Threads
Selling +20 mm gears,belt pets,pets,rupees(Baphometh)
11/15/2013 - Rappelz Trading - 0 Replies
Hi guys here are the items you might be interested in. Equipment/deco: +20 ruthless longbow oldstyle with tds +19 primal hunter armor with tds +20 feral hunter armor with tds +20 feral longbow with tds awakened +270 patk +20 ruthless chromatic 2h staff with tds +20 primal 2h axe newstyle with tds
[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



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


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.