Kostüm Süre Uzatma Sistemi (Perma'lı)

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Kostümlere süre eklemenizi sağlayan sistem. Perma itemi kostümün süresini sıfırlar ve kaldırmış olur.

254250_520997855d47b3add7b1c2ae39eac606.jpg







Metin2 Lobby'de Kostüm Süre Uzatma Sistemi (Perma'lı) Nasıl Kurulur?

Metin2 özel sunucularında sunucu sahiplerinin oyunculara sunduğu avantajlardan birisi de perma'lı kostümlerin kullanımıdır. Bu sayede oyuncular, belirli bir süreye bağlı kalmadan kostüm takabilir ve PvP maceralarında daha güçlü veya estetik olarak dikkat çeker duruma gelirler. Bu sistem genellikle C++ tabanlı sunucu kaynak kodları üzerinde geliştirilir ve Python ile entegre edilerek istemci tarafında da aktif hale getirilir. Bu yazıda, Metin2 Lobby üzerinden kostüm süre uzatma sistemini nasıl kalıcı hale getireceğinizi adım adım anlatacağız.

Sistem Gereksinimleri
Öncelikle bu sistemin doğru çalışabilmesi için aşağıdaki bileşenlere sahip olmanız gerekir:
- Metin2 Sunucu Kaynak Kodu (Game/Auth)
- Python GUI (Py Root / UIscript)
- Database (MySQL/PostgreSQL)
- Martysama veya benzeri bir geliştirme ortamı

Kostüm Süresi Sisteminin Yapısı
Metin2’de kostümler genellikle belirli bir sürelidir. Oyuncu kostümünü takarken, sistem bu kostümün ne kadar süreyle takılı kalacağını veritabanında tutar. Normalde bu süre dolunca kostüm otomatik olarak düşer. Ancak Perma'lı sistemde, kostüm süresi sonsuz kabul edilir veya çok yüksek bir değerle ayarlanır. Bu sistem genellikle özel sunucularda avantaj sağlamak ya da VIP üyelikler için tercih edilir.

Adım Adım Kurulum
1. Game Kaynak Kodunda Değişiklik
Sunucu tarafında kostüm süresi kontrol mekanizması genellikle char_item.cpp veya item.cpp dosyasında bulunur. Burada kostüm süresi bitince yapılan kontrolleri değiştirmek gerekir. Örneğin, bir kostümün süresi bitince RemoveCostume() fonksiyonu çağrılır. Bu fonksiyonun çalışmasını engellemek için, belirli item ID'lerine özel durumlar tanımlanabilir.

2. Database Tarafında Ayarlar
Kostüm süresi, genellikle player.item[/BR] tablosunda count veya socket0 gibi alanlarda saklanır. Perma'lı kostümler için bu değeri sonsuz gibi bir değere ayarlamak yeterlidir. Örneğin, socket0 değeri 999999999 olabilir. Bu sayede sistem süresi bitmiş gibi algılamaz.

3. Python Tarafında GUI Düzenlemesi
Client tarafında kostüm süresi görsel olarak gösterilir. Bu görseli değiştirmek için uiscript dosyalarında değişiklik yapılmalıdır. Perma olduğunu belirtmek için 'Sonsuz' ya da 'Perma' yazısı eklenebilir. Bu işlem genellikle itemwnd.py veya inventory.py üzerinden yapılır.

Avantajlar ve Dezavantajlar
Avantajlar:
- Oyuncular daha uzun süre kostüm takabilir.
- VIP sistemlerinde avantaj sağlar.
- Estetik ve PvP açıdan daha güçlü bir görünüm sağlar.

Dezavantajlar:
- Dengesizlik yaratabilir.
- Kostüm sistemini bozabilir.
- Sunucuda hata oluşabilir.

Sonuç
Kostüm süre uzatma sistemi, Metin2 özel sunucularında popüler bir özelliktir. Doğru uygulandığında hem oyuncu memnuniyeti artar hem de sunucu dengesi korunabilir. Ancak dikkatli bir şekilde test edilmesi ve uygulanması gerekir. Metin2 Lobby olarak bu konuda birçok kaynak ve sistem paylaşımı yapmaya devam edeceğiz. Daha fazla sistem ve script için sitemizi takip etmeyi unutmayın.


Metin2 Lobby: How to Install Extended Costume Duration System (Permanent)?

One of the advantages offered by Metin2 private server owners to players is the use of permanent costumes. This allows players to wear costumes without being limited by time and become more powerful or visually appealing during PvP adventures. This system is usually developed on C++ based server source codes and integrated with Python to be activated on the client side as well. In this article, we will explain step-by-step how to make the costume duration extension system permanent through Metin2 Lobby.

System Requirements
Firstly, you need to have the following components for this system to function properly:
- Metin2 Server Source Code (Game/Auth)
- Python GUI (Py Root / UIscript)
- Database (MySQL/PostgreSQL)
- Martysama or similar development environment

Structure of Costume Duration System
In Metin2, costumes are usually time-limited. When a player wears a costume, the system stores its duration in the database. Normally, once the time expires, the costume automatically falls off. However, in the permanent system, the costume duration is treated as infinite or set to a very high value. This system is often preferred in private servers to provide advantages or for VIP memberships.

Step-by-Step Installation
1. Changes in Game Source Code
On the server side, the costume duration control mechanism is generally located in char_item.cpp or item.cpp. Here, checks performed when the costume time ends must be modified. For example, the RemoveCostume() function is called when the costume’s time expires. To prevent this function from running, special conditions can be defined for certain item IDs.

2. Database Settings
The costume duration is usually stored in the player.item table in fields like count or socket0. For permanent costumes, this value can be set to something like infinity. For example, socket0 could be set to 999999999 so that the system does not perceive the time as expired.

3. GUI Modifications in Python
On the client side, costume duration is visually displayed. To modify this display, changes must be made in uiscript files. To indicate permanent status, texts such as 'Infinite' or 'Perma' can be added. This process is usually done via itemwnd.py or inventory.py.

Advantages and Disadvantages
Advantages:
- Players can wear costumes for longer periods.
- Provides advantages in VIP systems.
- Offers a more aesthetic and powerful appearance in PvP.

Disadvantages:
- May cause imbalance.
- Can disrupt the costume system.
- May lead to errors in the server.

Conclusion
The costume duration extension system is a popular feature in Metin2 private servers. When applied correctly, it increases player satisfaction while maintaining server balance. However, it requires careful testing and implementation. As Metin2 Lobby, we will continue sharing many resources and systems related to this topic. Don’t forget to follow our site for more systems and scripts.
 

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

Benzer konular

Geri
Üst Alt