Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 16:18

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

Advertisement



[Release]New Pet Gui desing + How to By .Minton™

Discussion on [Release]New Pet Gui desing + How to By .Minton™ within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
.Minton™'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 126
Received Thanks: 118
[Release]New Pet Gui desing + How to By .Minton™

Hello Epvp

let's start with if you want



How-To Einfügen:
game.py opening
Now add below

Quote:
self.targetBoard.Hide()
Quote:
#PET_SYSTEM
ExpBar = ui.AniImageBox()
ExpBar.AddFlag("not_pick")
ExpBar.SetDelay(6)
ExpBar.AppendImage("d:/ymir work/ui/pattern/pets/giallo.tga")
ExpBar.AppendImage("d:/ymir work/ui/pattern/pets/gialloC.tga")
self.ExpBar = ExpBar
self.ExpBar.SetPosition(wndMgr.GetScreenWidth() - 131, 225)

AbiBar = ui.AniImageBox()
AbiBar.AddFlag("not_pick")
AbiBar.SetDelay(6)
AbiBar.AppendImage("d:/ymir work/ui/pattern/pets/blu.tga")
AbiBar.AppendImage("d:/ymir work/ui/pattern/pets/bluC.tga")
self.AbiBar = AbiBar
self.AbiBar.SetPosition(wndMgr.GetScreenWidth() - 131, 214)

self.Boardx = ui.ImageBox()
self.Boardx.SetParent(self)
self.Boardx.LoadImage("d:/ymir work/ui/pattern/pets/board.tga")
self.Boardx.SetPosition(wndMgr.GetScreenWidth() - 225, 170)
self.Boardx.SetSize(225, 155)
self.Boardx.Hide()

self.PetImg = ui.ImageBox()
self.PetImg.SetParent(self)
self.PetImg.OnMouseLeftButtonUp = ui.__mem_func__(self.__Pet_Click)
self.PetImg.SetSize(50, 50)
self.PetImg.Hide()

self.info1 = ui.TextLine()
self.info1.SetFontName("Tahoma:11
self.info1.SetText("Puntiità: ")
self.info1.SetPosition(wndMgr.GetScreenWidth() - 125, 213)
self.info1.SetFeather()
self.info1.SetOutline()
self.info1.Hide()

self.abi = ui.TextLine()
self.abi.SetFontName("Tahoma:11
self.abi.SetHorizontalAlignLeft()
self.abi.SetPosition(wndMgr.GetScreenWidth() - 43, 213)
self.abi.SetFeather()
self.abi.SetOutline()
self.abi.Hide()

self.info2 = ui.TextLine()
self.info2.SetFontName("Tahoma:11
self.info2.SetText("Exp
self.info2.SetPosition(wndMgr.GetScreenWidth() - 125, 234)
self.info2.SetFeather()
self.info2.SetOutline()
self.info2.Hide()

self.exp = ui.TextLine()
self.exp.SetFontName("Tahoma:11
self.exp.SetHorizontalAlignRight()
self.exp.SetPosition(wndMgr.GetScreenWidth() - 55, 234)
self.exp.SetFeather()
self.exp.SetOutline()
self.exp.Hide()

self.nextExp = ui.TextLine()
self.nextExp.SetFontName("Tahoma:11")
self.nextExp.SetHorizontalAlignLeft()
self.nextExp.SetFeather()
self.nextExp.SetOutline()
self.nextExp.Hide()

self.nome = ui.TextLine()
self.nome.SetFontName(locale.UI_DEF_FONT_LARGE)
self.nome.SetPosition(wndMgr.GetScreenWidth() - 110, 195)
self.nome.SetFeather()
self.nome.SetOutline()
self.nome.Hide()

self.livello = ui.TextLine()
self.livello.SetFontName("Tahoma:11")
self.livello.SetPosition(wndMgr.GetScreenWidth() - 154, 230)
self.livello.SetFeather()
self.livello.SetOutline()
self.livello.Hide()
#END_OF_PET_SYSTEM
looking for this code

Quote:
# SHOW_LOCAL_MAP_NAME
Add below

Quote:
#PET_SYSTEM
def __OpenBoardx(self, index, livello, abi, ExpPet, nextExpPet, lock, maxAbi):

from array import array
pets = ('Fenice Rossa','Fenice Blu','Renna','Azarel','Lupo','Leone','Cinghiale',' Tigre')
petimage = ('fenice_rossa','fenice_blu','renna','azarel','can e','leone','cinghiale','tigre')
self.PetImg.SetPosition(wndMgr.GetScreenWidth() - 200, 185)
self.PetImg.LoadImage("d:/ymir work/ui/pattern/pets/"+petimage[int(index)-1]+".tga")
self.nome.SetText(pets[int(index)-1])
self.livello.SetText(livello)
self.AbiBar.SetPercentage(abi, maxAbi)
# nextExpFix = max(nextExpPet, ExpPet)
self.abi.SetText(abi)
if int(nextExpPet) > 0:
self.ExpBar.SetPercentage(ExpPet, nextExpPet)
else:
pass

self.IsLock = int(lock)
if self.IsLock:
self.nextExp.SetText("BLOCCATO")
self.nextExp.SetPosition(wndMgr.GetScreenWidth() - 90, 234)
self.exp.Hide()
else:
self.exp.SetText(ExpPet+" / ")
self.nextExp.SetText(nextExpPet)
self.exp.Show()
self.nextExp.SetPosition(wndMgr.GetScreenWidth() - 55, 234)

self.info1.Show()
self.info2.Show()
self.Boardx.Show()
self.nome.Show()
self.livello.Show()
self.abi.Show()
self.nextExp.Show()
self.ExpBar.Show()
self.AbiBar.Show()
self.PetImg.Show()
self.PetIsClose = FALSE

def __UpdateBoardx(self, index, livello, abi, ExpPet, nextExpPet, lock, maxAbi):
self.livello.SetText(livello)
self.AbiBar.SetPercentage(abi, maxAbi)
# nextExpFix = max(nextExpPet, ExpPet)
self.abi.SetText(abi)
if int(nextExpPet) > 0:
self.ExpBar.SetPercentage(ExpPet, nextExpPet)
else:
pass

self.IsLock = int(lock)
if self.IsLock:
self.nextExp.SetText("BLOCCATO")
else:
self.exp.SetText(ExpPet+" / ")
self.nextExp.SetText(nextExpPet)

def __Pet_Click(self):
if self.PetIsClose and self.IsLock:
self.Boardx.Show()
self.nome.Show()
self.livello.Show()
self.info1.Show()
self.info2.Show()
self.abi.Show()
self.exp.Hide()
self.nextExp.Show()
self.ExpBar.Show()
self.AbiBar.Show()
self.PetImg.SetPosition(wndMgr.GetScreenWidth() - 200, 185)
self.PetImg.Show()
self.PetIsClose = FALSE
elif self.PetIsClose:
self.Boardx.Show()
self.nome.Show()
self.livello.Show()
self.info1.Show()
self.info2.Show()
self.abi.Show()
self.exp.Show()
self.nextExp.Show()
self.ExpBar.Show()
self.AbiBar.Show()
self.PetImg.SetPosition(wndMgr.GetScreenWidth() - 200, 185)
self.PetImg.Show()
self.PetIsClose = FALSE
else:
self.Boardx.Hide()
self.nome.Hide()
self.livello.Hide()
self.info1.Hide()
self.info2.Hide()
self.abi.Hide()
self.exp.Hide()
self.nextExp.Hide()
self.ExpBar.Hide()
self.AbiBar.Hide()
self.PetImg.SetPosition(wndMgr.GetScreenWidth() - 90, 190)
self.PetImg.Show()
self.PetIsClose = TRUE

def __CloseBoardx(self):
self.Boardx.Hide()
self.nome.Hide()
self.livello.Hide()
self.info1.Hide()
self.info2.Hide()
self.abi.Hide()
self.exp.Hide()
self.nextExp.Hide()
self.AbiBar.Hide()
self.ExpBar.Hide()
self.PetImg.Hide()

#END_OF_PET_SYSTEM
looking for this code


Quote:
# END_OF_WEDDING
Add below

Quote:
#PET_SYSTEM
"apri" : self.__OpenBoardx,
"chiudi" : self.__CloseBoardx,
"aggiorna" : self.__UpdateBoardx,
#END_OF_PET_SYSTEM
Attached Files
File Type: rar PET GU?.rar (63.4 KB, 811 views)
.Minton™ is offline  
Thanks
12 Users
Old 06/09/2013, 17:17   #2
 
elite*gold: 0
Join Date: Oct 2009
Posts: 454
Received Thanks: 69
Not bad... maybe you can do a bigger pic?
depa95 is offline  
Old 06/09/2013, 17:18   #3
 
elite*gold: 370
Join Date: Apr 2013
Posts: 1,848
Received Thanks: 355
THANK YOU EPIC AWESOME PET GUI DESIGN!!!
SooshHD is offline  
Old 06/09/2013, 17:18   #4
 
Stαgє6's Avatar
 
elite*gold: 0
Join Date: Jul 2011
Posts: 2,019
Received Thanks: 1,471
Naja new ist sie nicht ist bereits public in einem nicht deutschen forum
Stαgє6 is offline  
Old 06/09/2013, 17:23   #5
 
sema1995's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 254
Received Thanks: 68
no is your code only create a image...
sema1995 is offline  
Old 06/09/2013, 17:25   #6
 
elite*gold: 0
Join Date: Dec 2010
Posts: 20
Received Thanks: 3
oldInfinity

quest will not work without ?
wvoron is offline  
Old 06/09/2013, 17:25   #7
 
Royalos's Avatar
 
elite*gold: 0
Join Date: May 2013
Posts: 181
Received Thanks: 7
Please a ingame Picture
Royalos is offline  
Old 06/09/2013, 17:26   #8
 
.Minton™'s Avatar
 
elite*gold: 0
Join Date: Dec 2012
Posts: 126
Received Thanks: 118
quest please
.Minton™ is offline  
Old 06/09/2013, 17:31   #9
 
MrLibya's Avatar
 
elite*gold: 30
Join Date: Mar 2012
Posts: 517
Received Thanks: 339
That Is Hot

Thanks For Share

But Where IS The Etc File ?
MrLibya is offline  
Old 06/09/2013, 17:36   #10
 
elite*gold: 0
Join Date: Jan 2012
Posts: 166
Received Thanks: 71
very nice thank you
bakam321 is offline  
Old 06/09/2013, 17:47   #11
 
sema1995's Avatar
 
elite*gold: 0
Join Date: May 2011
Posts: 254
Received Thanks: 68
I have the quest but not release , if you need:

skype: sema153
sema1995 is offline  
Old 06/09/2013, 18:04   #12
 
elite*gold: 0
Join Date: Apr 2012
Posts: 89
Received Thanks: 25
Şimdi olayı çözmüssün ama yerleri yanlış, self.targetBoard.Hide() bura doğru, #SHOW_LOCAL_MAP_NAME bura ile sınırlı kalma en altada ekleyebilirsin ve
# END_OF_WEDDING kısmı yanlış o verdiğin kodlar command bölümüne eklenmesi gerek.
xxmehmetcc is offline  
Old 06/09/2013, 19:23   #13
 
Zetsu WoC™'s Avatar
 
elite*gold: 0
Join Date: Jan 2013
Posts: 212
Received Thanks: 178
awesome ^^ thx man!

from metin2 next mester no? i saw on facebook -.-
Zetsu WoC™ is offline  
Old 06/09/2013, 20:22   #14
 
crusa2's Avatar
 
elite*gold: 0
Join Date: Dec 2011
Posts: 55
Received Thanks: 53
Insert credits, please.
crusa2 is offline  
Old 06/09/2013, 22:47   #15
 
elite*gold: 0
Join Date: Sep 2010
Posts: 3
Received Thanks: 0
Who have quest contact me on skype: tiziano1996

PS: Sorry for bad english :|
TheKillerXxX is offline  
Reply


Similar Threads Similar Threads
[RELEASE]Full Energy System By .Minton™
04/27/2013 - Metin2 PServer Guides & Strategies - 2 Replies
/////
[RELEASE] Fullversion: Kostümsystem .Minton™
03/01/2013 - Metin2 PServer Guides & Strategies - 56 Replies
Guten Tag, ich veröffentliche hier die offizielle Fullversion des Kostümsystems Official Costume System Costume System Quest
[Release] Official Pets + Quest By .Minton™
01/28/2013 - Metin2 PServer Guides & Strategies - 14 Replies



All times are GMT +1. The time now is 16:19.


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