Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[DL]Pet Design


TEKEN5

Rekomendowane odpowiedzi

Opublikowano

nic nie opisane... kopiuj wklej i zadowolony... słabe... nawet gotowca nie umie umieścić na forum :) pewnie to edytuje więc tak to wyglądało:

 

 

firephoenix.png

 

azraelgui.png

dogyounggui.png

linyounggui.png

petgui.png

 

petguiicephoenix.png

pigyounggui.png

tigeryounggui.png

 

self.SetSize(wndMgr.GetScreenWidth(), wndMgr.GetScreenHeight())

 

##ICE PHOENIX BAR
IcePhoenixGuiBg = ui.AniImageBox()
IcePhoenixGuiBg.AddFlag("not_pick")
IcePhoenixGuiBg.AppendImage("d:/ymir work/ui/IcePhoenixgui.dds")
self.IcePhoenixGuiBg = IcePhoenixGuiBg

self.IcePhoenixGuiBg.SetPosition(wndMgr.GetScreenWidth()-460,0)

self.IcePhoenixName = ui.TextLine()
self.IcePhoenixName.SetDefaultFontName()
self.IcePhoenixName.SetPosition((wndMgr.GetScreenWidth()-460)+120, 35)
self.IcePhoenixName.SetText("Haustierbesitzer: NONE")
self.IcePhoenixName.SetOutline()

self.IcePhoenixLevel = ui.TextLine()
self.IcePhoenixLevel.SetDefaultFontName()
self.IcePhoenixLevel.SetPosition((wndMgr.GetScreenWidth()-460)+120, 55)
self.IcePhoenixLevel.SetText("Haustierlevel: NONE")
self.IcePhoenixLevel.SetOutline()

self.IcePhoenixBonus1 = ui.TextLine()
self.IcePhoenixBonus1.SetDefaultFontName()
self.IcePhoenixBonus1.SetPosition((wndMgr.GetScreenWidth()-460)+120, 75)
self.IcePhoenixBonus1.SetText("1. Bonus: NONE")
self.IcePhoenixBonus1.SetOutline()

self.IcePhoenixBonus2 = ui.TextLine()
self.IcePhoenixBonus2.SetDefaultFontName()
self.IcePhoenixBonus2.SetPosition((wndMgr.GetScreenWidth()-460)+120, 95)
self.IcePhoenixBonus2.SetText("2. Bonus: NONE")
self.IcePhoenixBonus2.SetOutline()

self.IcePhoenixBonus3 = ui.TextLine()
self.IcePhoenixBonus3.SetDefaultFontName()
self.IcePhoenixBonus3.SetPosition((wndMgr.GetScreenWidth()-460)+120, 115)
self.IcePhoenixBonus3.SetText("3. Bonus: NONE")
self.IcePhoenixBonus3.SetOutline()

IcePhoenixExpBar = ui.AniImageBox()
IcePhoenixExpBar.AddFlag("not_pick")
IcePhoenixExpBar.AppendImage("d:/ymir work/ui/pattern/charbar_main_yellow.tga")
IcePhoenixExpBar.SetPercentage(0,1)
self.IcePhoenixExpBar = IcePhoenixExpBar

self.IcePhoenixExpBar.SetPosition((wndMgr.GetScreenWidth()-460)+65, 143)

self.IcePhoenixExpLabel = ui.TextLine()
self.IcePhoenixExpLabel.SetDefaultFontName()
self.IcePhoenixExpLabel.SetPosition((wndMgr.GetScreenWidth()-460)+150, 140)
self.IcePhoenixExpLabel.SetText("0%")
self.IcePhoenixExpLabel.SetOutline()

##ICE PHOENIX BAR

 

def __ServerCommand_Build(self):
serverCommandList={

 

 #ICE PHOENIX BAR
"ShowIcePhoenixGui" : self.__showIcePhoenixgui,
"HideIcePhoenixGui" : self.__hideIcePhoenixgui,
"HaustierName" : self.__IcePhoenixName,
"HaustierLevel" : self.__IcePhoenixLevel,
"HaustierBonus1" : self.__IcePhoenixBoni1,
"HaustierBonus2" : self.__IcePhoenixBoni2,
"HaustierBonus3" : self.__IcePhoenixBoni3,
"IcePhoenixProcentExp" : self.__IcePhoenixExp,
#

 

def __hideIcePhoenixgui(self):
self.IcePhoenixGuiBg.Hide()
self.IcePhoenixName.Hide()
self.IcePhoenixLevel.Hide()
self.IcePhoenixBonus1.Hide()
self.IcePhoenixBonus2.Hide()
self.IcePhoenixBonus3.Hide()
self.IcePhoenixExpBar.Hide()
self.IcePhoenixExpLabel.Hide()

def __showIcePhoenixgui(self):
self.IcePhoenixGuiBg.Show()
self.IcePhoenixName.Show()
self.IcePhoenixLevel.Show()
self.IcePhoenixBonus1.Show()
self.IcePhoenixBonus2.Show()
self.IcePhoenixBonus3.Show()
self.IcePhoenixExpBar.Show()
self.IcePhoenixExpLabel.Show()

def __IcePhoenixName(self, HaustierName):
self.IcePhoenixName.SetText("Besitzer: " + HaustierName)

def __IcePhoenixLevel(self, HaustierLevel):
self.IcePhoenixLevel.SetText("Haustierlevel: " + HaustierLevel)

def __IcePhoenixBoni1(self, HaustierBonus1):
self.IcePhoenixBonus1.SetText("1. Bonus: " + HaustierBonus1 + " Angriffswert")

def __IcePhoenixBoni2(self, HaustierBonus2):
self.IcePhoenixBonus2.SetText("2. Bonus: " + HaustierBonus2 + " Verteidigung")

def __IcePhoenixBoni3(self, HaustierBonus3):
self.IcePhoenixBonus3.SetText("3. Bonus: " + HaustierBonus3 + " Lebenspunkte")

def __IcePhoenixExp(self, IcePhoenixProcentExp):
self.IcePhoenixExpLabel.SetText(IcePhoenixProcentExp + "%")
self.IcePhoenixExpBar.SetPercentage(IcePhoenixProcentExp, 100)

 

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,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
[sql]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,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

 

 

Dowload :

 

http://www.speedyshare.com/hQ5A6/release-pet-gui-by-plechito.rar

http://www.multiupload.nl/CGMX27VDRE

 

Scan:

 

https://www.virustotal.com/file/562807764f1589a167c7058a12d0269db6d0d8606d09e600208e61d96354ca57/analysis/1356204604/

 

Wdl mnie lepiej to wyglada niz na Draenorze ladniejsze te okienka ;>

 

Orginalny Temat :

 

http://www.elitepvpers.com/forum/metin2-pserver-guides-strategies/2309226-release-pet-gui-desing.html

 

Opublikowano

Up a po co mam ;> rozpisywac co gdzie dodac? ;> napisalem 1 napisze 2 nigdy nic tu swojego nie wrzuce , kto jest pojetny wie ze wiekszosc trzeba dodac do game.py

Pomogłem? Daj Lubie to! :)

 

2252770056.png

Opublikowano

Wszystko fajnie tylko przydałoby się to w spoilerze. Design nie jest najlepszy, średnia robota.

 

umarł

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...