ALINTI
Daha Önce Onaysız Düello'da HP-SP'nin Paylaşıldığını Görmedim
Daha Önce Onaysız Düello'da HP-SP'nin Paylaşıldığını Görmedim
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Düello'da HP-SP Görme (ONAYSIZ-SALTANAT TARZI) (PYTHON+QUEST)
Metin2 özel sunucularında geliştirme yaparken, oyuncuların daha fazla etkileşimde bulunmasını sağlayan sistemlerin geliştirilmesi oldukça önemlidir. Bu sistemlerden birisi olan 'Düello Sistemi', PvP oyun deneyimini zenginleştirir. Ancak bazı özel sunucularda, oyuncuların birbirlerinin HP ve SP değerlerini görebilmesi gibi gelişmiş özellikler de eklenmektedir. Bu yazıda, 'Saltanat tarzı' olarak bilinen, onaysız HP-SP görme özelliğini Python ve Quest sistemleri kullanarak nasıl gerçekleştirebileceğimizi ele alacağız.
HP-SP Görme Nedir?
HP (Health Point) ve SP (Stamina Point) değerleri, Metin2 oyununda karakterlerin can ve enerji miktarlarını temsil eder. Normal şartlarda bu değerler sadece kendi karakteriniz için görünürdür. Ancak bazı özel sunucularda, oyuncuların diğer oyuncuların bu değerlerini de görebilmesi sağlanır. Bu özellikle turnuvalar, clan savaşları ve PvP etkinliklerinde büyük avantaj sağlar.
Python ve Quest Kullanımı
Metin2 özel sunucularında geliştirme yapılırken, hem Python tarafında hem de Quest tarafında değişiklikler yapılması gerekir. Quest sistemi, oyuncunun belirli eylemleri gerçekleştirmesine dayalı olarak çalışırken; Python tarafında GUI ve istemci-görsel işlemler yönetilir.
Quest Tarafında Geliştirme
Öncelikle quest dosyası üzerinde bir işlev tanımlamalıyız. Bu işlev sayesinde, oyuncular birbirlerinin HP ve SP değerlerini görebilecek. Aşağıda örnek bir quest fonksiyonu verilmiştir:
Kod:
[B][COLOR=red]quest hp_sp_view begin[/COLOR][/B][BR][/BR][B][COLOR=red] state start begin[/COLOR][/B][BR][/BR][B][COLOR=red] when enter_duel begin[/COLOR][/B][BR][/BR][B][COLOR=red] -- Oyuncu düello başlattığında diğer oyuncunun HP ve SP'sini gönder[/COLOR][/B][BR][/BR][B][COLOR=red] cmd_emoticon(EMOTION_DUEL_START)[/COLOR][/B][BR][/BR][B][COLOR=red] send_target_hp_sp() -- Özel fonksiyon[/COLOR][/B][BR][/BR][B][COLOR=red] end[/COLOR][/B][BR][/BR][B][COLOR=red] end[/COLOR][/B][BR][/BR][B][COLOR=red]end[/COLOR][/B]
Python Tarafında Uygulama
Python tarafında, UIScript kullanarak bir arayüz oluşturulabilir. Bu arayüz, oyuncuların birbirlerinin HP ve SP değerlerini gerçek zamanlı olarak görebilmesini sağlar. Bunun için 'uiTarget.py' dosyasında değişiklikler yapılmalıdır.
Aşağıda örnek bir fonksiyon parçası yer almaktadır:
Kod:
[B][COLOR=red]def UpdateTargetInfo(self):[/COLOR][/B][BR][/BR][B][COLOR=red] if self.targetVID != 0:[/COLOR][/B][BR][/BR][B][COLOR=red] hp = chr.GetHPPct(self.targetVID)[/COLOR][/B][BR][/BR][B][COLOR=red] sp = chr.GetSPPct(self.targetVID)[/COLOR][/B][BR][/BR][B][COLOR=red] self.hpGauge.SetPercentage(hp, 100)[/COLOR][/B][BR][/BR][B][COLOR=red] self.spGauge.SetPercentage(sp, 100)[/COLOR][/B]
Gelişmiş Özellikler
Bu sisteme ek olarak, özel efektler, özel sesler veya renkli arka planlar eklenebilir. Bu sayede oyuncular, düello sırasında daha immersif bir deneyim yaşarlar. Örneğin, HP düşüşüne göre gauge rengi kırmızıya dönüşebilir.
Not: Bu sistem özel sunucular için tasarlanmıştır. Resmi sunucularda kullanılamaz veya yasak olabilir.
Sonuç
Metin2 özel sunucularında PvP deneyimini zenginleştirmek için geliştirilen HP-SP görme sistemi, oyuncuların stratejik düşünmesini ve daha aktif rol almasını sağlar. Python ve Quest sistemlerinin birlikte kullanılması ile güçlü ve özelleştirilmiş sistemler geliştirilebilir. Bu tür geliştirmeler, Metin2 özel sunucu topluluklarında büyük takdir görür ve oyuncu memnuniyetini artırır.
Seeing HP-SP in Duel (UNAUTHORIZED-EMPIRE STYLE) (PYTHON+QUEST)
When developing private Metin2 servers, adding features that allow players to interact more deeply enhances gameplay significantly. One such feature is the 'Duel System', which enriches the PvP experience. However, in certain private servers, advanced features like enabling players to see each other’s HP and SP values are also implemented. In this article, we will discuss how to implement the unauthorized HP-SP viewing feature in the style of 'Empire' using Python and Quest systems.
What Is HP-SP Viewing?
HP (Health Point) and SP (Stamina Point) represent the health and stamina of characters in the Metin2 game. Normally, these values are only visible for your own character. However, in some private servers, players can view these stats for other players as well. This is especially useful during tournaments, clan wars, and PvP events.
Using Python and Quest
When developing for Metin2 private servers, modifications must be made both in Python and the Quest system. The Quest system operates based on player-triggered actions, while Python handles GUI and visual client-side processes.
Development in Quest System
Firstly, a function must be defined within the quest file. This function allows players to see each other's HP and SP values. Below is an example quest function:
Kod:
[B][COLOR=red]quest hp_sp_view begin[/COLOR][/B][BR][/BR][B][COLOR=red] state start begin[/COLOR][/B][BR][/BR][B][COLOR=red] when enter_duel begin[/COLOR][/B][BR][/BR][B][COLOR=red] -- Send opponent's HP and SP when duel starts[/COLOR][/B][BR][/BR][B][COLOR=red] cmd_emoticon(EMOTION_DUEL_START)[/COLOR][/B][BR][/BR][B][COLOR=red] send_target_hp_sp() -- Custom function[/COLOR][/B][BR][/BR][B][COLOR=red] end[/COLOR][/B][BR][/BR][B][COLOR=red] end[/COLOR][/B][BR][/BR][B][COLOR=red]end[/COLOR][/B]
Implementation in Python
In Python, a UI can be created using UIScript, allowing players to see each other's HP and SP in real-time. Modifications must be made to the 'uiTarget.py' file for this purpose.
Below is an example code snippet:
Kod:
[B][COLOR=red]def UpdateTargetInfo(self):[/COLOR][/B][BR][/BR][B][COLOR=red] if self.targetVID != 0:[/COLOR][/B][BR][/BR][B][COLOR=red] hp = chr.GetHPPct(self.targetVID)[/COLOR][/B][BR][/BR][B][COLOR=red] sp = chr.GetSPPct(self.targetVID)[/COLOR][/B][BR][/BR][B][COLOR=red] self.hpGauge.SetPercentage(hp, 100)[/COLOR][/B][BR][/BR][B][COLOR=red] self.spGauge.SetPercentage(sp, 100)[/COLOR][/B]
Advanced Features
Additional features such as special effects, sounds, or colored backgrounds can be added to this system. This creates a more immersive experience during duels. For instance, the gauge color may change to red as HP decreases.
Note: This system is designed for private servers. It cannot be used or may be prohibited on official servers.
Conclusion
The HP-SP viewing system enriches the PvP experience in Metin2 private servers by encouraging strategic thinking and active participation. By combining Python and Quest systems, powerful and customized features can be developed. Such improvements are highly appreciated in the Metin2 private server community and enhance player satisfaction.
