Okey, it's clientside.. Now serverside.
There is my quest, it's better than from DasKuchen..
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*60) end )
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,l) affect.remove_collect(y[i],l,60*60*24*365*60) end )
horse.unsummon()
pc.setqf("petruf",0)
horse.set_level("21")
cmdchat("HidePetGui")
cmdchat("HideIcePhoenixGui")
cleartimer("bugcheck")
end
when 53001.use with pc.getqf("fenix") == 0 begin
if pc.getqf('petlevel') == 0 then
pc.setqf('petlevel',1)
end
local petlvl = 22
pc.setqf("fenix", 1)
horse.set_level(petlvl)
horse.set_name(pc.get_name().." Fénix")
pet.summon()
horse.set_level(old_level)
horse.set_name(old_name)
pets.givebonus(pc.getqf('petlevel'))
local expprocent1 = {20, 80, 160, 350, 400}
cmdchat("PetProcentExp "..(pc.getqf("exp")/expprocent1[pc.getqf("petlevel")]).."")
cmdchat("ShowPetGui")
loop_timer("bugcheck", 0.2)
end
when 53001.use with pc.getqf("fenix") == 1 begin
pc.setqf("fenix", 0)
pets.removebonus(pc.getqf('petlevel'))
pet.unsummon()
end
when 53003.use with pc.getqf("ledovy_fenix") == 0 begin
if pc.getqf('petlevel') == 0 then
pc.setqf('petlevel',1)
end
local petlvl = 23
pc.setqf("ledovy_fenix", 1)
horse.set_level(petlvl)
horse.set_name(pc.get_name().." Ledový Fénix")
pet.summon()
horse.set_level(old_level)
horse.set_name(old_name)
pets.givebonus(pc.getqf('petlevel'))
local expprocent1 = {20, 80, 160, 350, 400}
cmdchat("IcePhoenixProcentExp "..(pc.getqf("exp")/expprocent1[pc.getqf("petlevel")]).."")
cmdchat("ShowIcePhoenixGui")
loop_timer("bugcheck", 0.2)
end
when 53003.use with pc.getqf("ledovy_fenix") == 1 begin
pc.setqf("ledovy_fenix", 0)
pets.removebonus(pc.getqf('petlevel'))
pet.unsummon()
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 = {500, 8000, 16000, 35000, 40000}
local expprocent = {20, 80, 160, 350, 400}
cmdchat("PetProcentExp "..(pc.getqf("exp")/expprocent[pc.getqf("petlevel")]).."")
cmdchat("IcePhoenixProcentExp "..(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.is_mount() then
horse.unride()
end
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[/i]
It's all... You can add next Gui exactly the same, You must only change IcePhoenix for example to LionYoung..
Sorry for my bad english..
Special Thanks:
KingSora for pets render
DasKuchen for Pet Gui
Have fun and Merry Christmas
Do you like to change a picture. And to steal Thanks !
0223 23:00:18388 :: invalid idx 0 0223 23:01:49280 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR 0223 23:01:53396 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted. 0223 23:01:06372 :: Traceback (most recent call last):
0223 23:01:06372 :: File "networkModule.py", line 231, in SetGamePhase
0223 23:01:06373 :: File "system.py", line 130, in __pack_import
0223 23:00:18388 :: invalid idx 0
0223 23:01:49280 :: CMapOutdoor::Load - LoadMonsterAreaInfo ERROR
0223 23:01:53396 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted.
0223 23:01:06372 :: Traceback (most recent call last):
0223 23:01:06372 :: File "networkModule.py", line 231, in SetGamePhase
0223 23:01:06373 :: File "system.py", line 130, in __pack_import
[Release]Hompage Desing 07/16/2012 - Metin2 PServer Guides & Strategies - 19 Replies Hallo,
ich habe tatsächlich aus purer Langeweile ca. 3 Stunden an Photoshop rum gewerkelt?!
Ich hoffe euch gefällt das Desing, man muss aber auch sagen das es mein erstes "Werk" ist ;) Bin aus diesen Gründen immer offen für Kritik.
Die Psd bekommt ihr via Pn.
http://img502.imageshack.us/img502/3772/meitn2hp. png
Zu dem Design:
Ich habe lediglich Sachen von der originalen Mt2 Seite verarbeitet damit es auch wirklich einem Mt2-Stil hat. Die Arbeit für mich bestand darin, die einzelne...
[Release]New desing mount by plechito 02/07/2012 - Metin2 PServer Guides & Strategies - 18 Replies Hello e*pvp,
I made new textures for tiger...
By me :-)
Screen:
http://www.imghosting.cz/images/92White_tiger.png
Download:
http://www.ulozto.cz/10247276/new-mount-exe
Virus Scan:
[Homepage Release]Imba Homepage by TribalCriser [Top Desing , Viele Funktionen etc] 10/21/2010 - Metin2 PServer Guides & Strategies - 116 Replies Hallo,
Ich stelle euch hier eine neue Generation der Metin2 Privat Server Homepages zur verfügung, die Homepage ist einfach Gut sie bietet viele Funtkionen die fast keine Public Homepage bietet sie bietet noch mehr Funktionen als bekannt sind, ein Top Desing ist auch dabei.
Informationen vorneweg (Wichtig: Bitte Lesen!):