Pet qui yeniden kodlanmış hali

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 140

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0


Kodu:

pet . çağırmak
pet . unsummon
pet . is_summon





Kodu:
kendini . setSize ( wndMgr . GetScreenWidth (), wndMgr . GetScreenHeight ())
Setzt darunter das:
Kodu:
## START_PETGUI BY DASKUCHEN
PetGuiBg = ui . AniImageBox ()
PetGuiBg . AddFlag ( "not_pick" )
PetGuiBg . AppendImage ( "d: / Ymir iş / ui / petgui.dds" )
kendi kendine . PetGuiBg = PetGuiBg

kendi kendine . PetGuiBg . SetPosition ( wndMgr . GetScreenWidth () - 460 , 0 )

self . PetName = ui . TextLine ()
self . PetName . SetDefaultFontName ()
self . PetName . SetPosition (( wndMgr . GetScreenWidth ()- 460 )+ 120 , 35 )
self . PetName . SetText ( "Haustierbesitzer: YOK " )
kendi kendine . PetName . SetOutline ()

self . PetLevel = ui . TextLine ()
self . PetLevel . SetDefaultFontName ()
self . PetLevel . SetPosition (( wndMgr . GetScreenWidth ()- 460 )+ 120 , 55 )
self . PetLevel . SetText ( "Haustierlevel: YOK " )
kendi kendine . PetLevel . SetOutline ()

self . PetBonus1 = ui . TextLine ()
self . PetBonus1 . SetDefaultFontName ()
self . PetBonus1 . SetPosition (( wndMgr . GetScreenWidth ()- 460 )+ 120 , 75 )
self . PetBonus1 . SetText ( "1. Bonus: YOK " )
kendi kendine . PetBonus1 . SetOutline ()

self . PetBonus2 = ui . TextLine ()
self . PetBonus2 . SetDefaultFontName ()
self . PetBonus2 . SetPosition (( wndMgr . GetScreenWidth ()- 460 )+ 120 , 95 )
self . PetBonus2 . SetText ( "2. Bonus: YOK " )
kendi kendine . PetBonus2 . SetOutline ()

self . PetBonus3 = ui . TextLine ()
self . PetBonus3 . SetDefaultFontName ()
self . PetBonus3 . SetPosition (( wndMgr . GetScreenWidth ()- 460 )+ 120 , 115 )
self . PetBonus3 . SetText ( "3. Bonus: YOK " )
kendi kendine . PetBonus3 . SetOutline ()

PetExpBar = ui . AniImageBox ()
PetExpBar . AddFlag ( "not_pick" )
PetExpBar . AppendImage ( "d: / Ymir iş / ui / desen / charbar_main_yellow.tga" )
PetExpBar . SetPercentage ( 0 , 1 )
kendine . PetExpBar = PetExpBar

kendini . PetExpBar . SetPosition (( wndMgr . GetScreenWidth () - 460 ) + 65 , 143 )

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

## CLOSE_PETGUI İLE DASKUCHEN
sucht nach:
Kodu:
def __ServerCommand_Build ( öz ):
serverCommandList = {
Setzt darunter:
Kodu:
## PETGUI BY DASKUCHEN
"ShowPetGui" : self . __showpetgui ,
"HidePetGui" : self . __hidepetgui ,
"HaustierName" : self . __PetName ,
"HaustierLevel" : self . __PetLevel ,
"HaustierBonus1" : self . __PetBoni1 ,
"HaustierBonus2" : self . __PetBoni2 ,
"HaustierBonus3" : self . __PetBoni3 ,
"PetProcentExp" : self . __PetExp ,
##
Geht an das Ende der game.py und fügt das ein:
Kodu:
def __hidepetgui ( self ):
self . PetGuiBg . Hide ()
self . PetName . Hide ()
self . PetLevel . Hide ()
self . PetBonus1 . Hide ()
self . PetBonus2 . Hide ()
self . PetBonus3 . Hide ()
self . PetExpBar . Hide ()
self . PetExpLabel . Hide ()

def __showpetgui ( self ):
self . PetGuiBg . Show ()
self . PetName . Show ()
self . PetLevel . Show ()
self . PetBonus1 . Show ()
self . PetBonus2 . Show ()
self . PetBonus3 . Show ()
self . PetExpBar . Show ()
self . PetExpLabel . Show ()

def __PetName ( öz , HaustierName ):
Kendi kendine . PetName . SetText ( "Besitzer:" + HaustierName )

def __PetLevel ( öz , HaustierLevel ):
Kendi kendine . PetLevel . SetText ( "Haustierlevel:" + HaustierLevel )

def __PetBoni1 ( öz , HaustierBonus1 ):
Kendi kendine . PetBonus1 . SetText ( "1. Bonus:" + HaustierBonus1 + "Angriffswert" )

def __PetBoni2 ( öz , HaustierBonus2 ):
Kendi kendine . PetBonus2 . SetText ( "2. Bonus:" + HaustierBonus2 + "Verteidigung" )

def __PetBoni3 ( öz , HaustierBonus3 ):
Kendi kendine . PetBonus3 . SetText ( "3. Bonus:" + HaustierBonus3 + "Lebenspunkte" )

def __PetExp ( self , PetProcentExp ):
self . PetExpLabel . SetText ( PetProcentExp + "%" )
self . PetExpBar . SetPercentage ( PetProcentExp , 100 )
Pet Sistemi Yeniden Kodlanmış Haliyle Metin2 Geliştiriciler İçin Yeni Olanaklar Sunuyor

Metin2 özel sunucularında geliştirme yaparken en önemli konulardan birisi de pet sistemidir. Petler, oyuncuların karakterlerine destek sağlayan, savaşlarda yardımcı olan ve bazen de sadık yoldaş olarak görev yapan yapılardır. Ancak eski sistemlerin bazı sınırlamaları ve eksiklikleri bulunabiliyor. Bu nedenle pet sisteminin yeniden kodlanması, hem daha esnek hem de güçlü bir yapı sunar. Özellikle C++ sistem tabanlı geliştirilen bu yenilik, Metin2 geliştiricileri için büyük bir avantaj sağlar.

Yeni Pet Sisteminin Özellikleri

Yeniden kodlanmış pet sistemi, önceki versiyonlara göre çok daha genişletilebilir bir yapıya sahiptir. Artık petlerin davranışları, seviye atlama mekanizmaları, özel yetenekler ve hatta görsel efektler gibi pek çok alan üzerinde doğrudan kontrol sağlanabiliyor. Bu sayede geliştiriciler, kendi Metin2 özel sunucularında özgün ve dikkat çekici pet deneyimleri yaratabiliyorlar. Python GUI entegrasyonu sayesinde bu sistemleri yönetmek ve test etmek de oldukça kolay hale geliyor.

C++ Kaynak Kod ile Entegrasyon

Pet sistemi, Metin2 sunucu tarafında çalışan game server yapıları ile sıkı sıkıya entegre edilmiştir. Bu nedenle sistemde yapılacak değişiklikler doğrudan C++ source edit üzerinden yapılmaktadır. Geliştiriciler, source edit sırasında pet sınıflarını genişletebilir, özel metodlar tanımlayabilir ve veritabanı ile entegre çalışabilen kompleks sistemler kurabilirler. DB core ile uyumlu çalışan bu yapı, pet verilerinin güvenli ve hızlı bir şekilde saklanmasını sağlar.

Py Root ve Uiscript Kullanımı

Client tarafında ise pet sistemlerinin arayüzleri genellikle uiscript dosyaları ile yönetilir. Yeni sistemle birlikte, py root klasörlerinde yapılan düzenlemelerle pet UI'ları özelleştirilebiliyor. Böylece geliştiriciler, istedikleri görsel stilleri ve etkileşim sistemlerini uygulayabiliyorlar. Py GUI teknolojisi sayesinde bu arayüzlerin dinamik ve kullanıcı dostu olması da sağlanıyor.

Metin2 Lobby'de Pet Geliştirme Rehberleri

Metin2 lobby platformunda sunulan kaynaklar sayesinde, yeni başlayan geliştiriciler bile pet sistemlerini anlamakta ve geliştirmekte zorlanmıyor. Metin2dev topluluğu, martysama gibi uzman geliştiricilerin katkılarıyla pet sistemlerine dair kapsamlı rehberler, örnek kodlar ve derlenmiş kaynaklar sunuyor. Bu sayede geliştiriciler, pet qui yeniden kodlanmış hali ile nasıl çalışacaklarını adım adım öğrenebiliyorlar.

PVP ve Pet Etkileşimi

Metin2 özel sunucularında PVP sistem ile petlerin etkileşimi de çok önemlidir. Yeni sistemle birlikte petler, PVP anlarında daha akıllı kararlar alabiliyor, saldırgan veya savunmacı stratejilere göre davranabiliyor. Bu, oyuncuların daha stratejik bir oyun deneyimi yaşamasını sağlıyor. PVP sistem ile petlerin entegrasyonu, game core üzerinde doğrudan yapılır ve test edilir.

Sonuç

Pet qui yeniden kodlanmış hali, Metin2 geliştiricileri için büyük bir dönüm noktası olabilir. Geliştiriciler, artık daha özgün, güçlü ve kullanıcı dostu pet sistemleri geliştirebiliyor. Metin2lobby.com üzerinden sunulan kaynaklarla birlikte bu süreç çok daha verimli ve eğlenceli hale geliyor. Hem C++ source hem de Python tabanlı geliştirme imkanları sayesinde pet sistemleri, Metin2 özel sunucularında ana oyun mekaniği haline gelebiliyor.


The Pet System Recoded: New Opportunities for Metin2 Developers

In Metin2 private server development, one of the most important aspects is the pet system. Pets serve as supportive entities for players, assist in battles, and sometimes act as loyal companions. However, older systems may have limitations and shortcomings. Therefore, recoding the pet system provides a more flexible and powerful structure. Especially with the C++ system based development, this update offers significant advantages to Metin2 developers.

Features of the New Pet System

Compared to previous versions, the recoded pet system has a much more extensible structure. Now, behaviors of pets, level-up mechanisms, special abilities, and even visual effects can be directly controlled. This allows developers to create unique and engaging pet experiences on their own Metin2 private servers. With Python GUI integration, managing and testing these systems becomes quite easy.

Integration with C++ Source Code

The pet system is tightly integrated with the game server structures that operate on the server side in Metin2. For this reason, changes in the system are made directly via source edit. During source edit, developers can extend pet classes, define custom methods, and build complex systems that integrate with databases. The structure, which works compatibly with DB core, ensures that pet data is stored securely and efficiently.

Using Py Root and Uiscript

On the client side, the interfaces of pet systems are generally managed through uiscript files. With the new system, modifications within py root[/BR] folders allow customization of pet UIs. Thus, developers can apply desired visual styles and interaction systems. Thanks to Py GUI technology, these interfaces remain dynamic and user-friendly.

Pet Development Guides on Metin2 Lobby

Thanks to the resources provided on the Metin2 lobby platform, even beginner developers do not struggle to understand and develop pet systems. The Metin2dev community, with contributions from expert developers like martysama, offers comprehensive guides, sample codes, and compiled sources related to pet systems. This way, developers can learn step by step how to work with the recoded pet qui.

PVP and Pet Interaction

Interaction between pets and PVP systems is also very important in Metin2 private servers. With the new system, pets can make smarter decisions during PVP moments, acting according to offensive or defensive strategies. This provides players with a more strategic gaming experience. Integration of pets with the PVP system is done directly on the game core and tested accordingly.

Conclusion

The recoded pet qui could be a turning point for Metin2 developers. Developers can now build more original, powerful, and user-friendly pet systems. With resources provided through Metin2lobby.com, this process becomes more efficient and enjoyable. With both C++ source and Python based development options, pet systems can become a central game mechanic in Metin2 private servers.
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Geri
Üst Alt