Gelinlik Smokin Giyili İken Kostüm Giyme Fix

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

Admin

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

Başlıkta Belirtildiği Gibi Üzerinde Gelinlik Smokin Varken Kostüm Fixidir.

Konudaki Linkler Patlamış ve Konu Kapatılmış Bir Dostum Fixi Bana İletmişti Güncel Olarak Arayanların Daha Rahat Bulması İçin Konuyu Açıyorum.



char_item.cpp Açılır ve Aratılır
Kod:
bool CHARACTER::CanEquipNow(const LPITEM item, const TItemPos& srcCell, const TItemPos& destCell)

Kod Bloğunun en sonuna içine eklenir.

Kod:
if (item->GetType() == ITEM_COSTUME && item->GetSubType() == COSTUME_BODY)     {         LPITEM atakanxd = GetWear(WEAR_BODY);         if (atakanxd && (atakanxd->GetVnum() >= 11901 && atakanxd->GetVnum() <= 11914))         {             ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Uzerinde gelinlik veya smokin varken kostum giyemezsin."));             return false;         }     }     if (item->GetVnum() >= 11901 && item->GetVnum() <= 11914)     {         LPITEM atakan = GetWear(WEAR_COSTUME_BODY);         if (atakan && (atakan->GetType() == ITEM_COSTUME && atakan->GetSubType() == COSTUME_BODY))         {             ChatPacket(CHAT_TYPE_INFO, LC_TEXT("Uzerinde kostum varken smokin veya gelinlik giyemezsin."));             return false;         }     }




KANIT

adfa.png


Tab Ayarlı Verilmiştir Ama Yinede Dikkat Edin. İyi Forumlar.
Gelinlik Smokin Giyili İken Kostüm Giyme Fix

Metin2 özel sunucularında oyun içi giyim sistemi oldukça önemlidir. Özellikle PvP odaklı sistemlerde oyuncuların doğru ve dengeli kıyafet kombinleri yapabilmesi büyük rol oynar. Ancak bazı durumlarda, belirli özel kostümler giyildiğinde diğer kostüm giyim eylemleri engellenir. Bu durum özellikle Gelinlik veya Smokin gibi özel efektli kostümler[/PYTHON] giyildiğinde ortaya çıkar. Bu makalede, Gelinlik veya Smokin giyiliyorken başka kostümlerin giyilmesini sağlayan bir fix sunacağız.

Problemin Doğası:
Metin2 sistemlerinde bazı özel kostümler, oyun içi mekanizmalarla diğer kostümleri geçici olarak devre dışı bırakabilir. Bu, genellikle C++ kaynak kodlar üzerinden kontrol edilen bir sistemdir. Örneğin bir oyuncu gelinlik giydiğinde, smokin veya başka bir kostüm giymesi engellenir. Bu durum oyuncu deneyimini olumsuz etkileyebilir.

Fix'in Amacı:
Bu fix, oyuncuların Gelinlik veya Smokin gibi özel kostümler giymiş olsalar bile, aynı zamanda başka kostümleri giymelerine olanak tanır. Bu işlem, game_core dosyalarında yapılan küçük bir değişiklikle sağlanabilir. Python GUI üzerinden de entegrasyon yapılabilir.

Uygulama Adımları:
Öncelikle game server programming dosyalarına erişmeniz gerekir. Metin2 server src üzerinden ilerlenmelidir. Oyuncunun kostüm giyip giymediğini kontrol eden fonksiyonu düzenlemeniz gerekir. Bu fonksiyon genellikle character.cpp veya benzeri bir dosyada yer alır.

Kod Değişikliği:
Aşağıdaki gibi bir kod parçası göz önünde bulundurulmalıdır:
if (IsWearingSpecialCostume() && !CanWearMultipleCostumes()) {
return false;
}

Bu satır, özel kostüm giyildiğinde diğer kostümleri engeller. Burada CanWearMultipleCostumes() fonksiyonunun değerini true döndürmek yeterlidir.

Test Aşaması:
Değişikliklerden sonra compile işlemi yapılmadan önce mutlaka test edilmelidir. Auth ve game server yeniden başlatılmalı ve oyuncu üzerinde test yapılmalıdır. Py root ve uiscript ile de entegre test yapılabilir.

Faydaları:
Bu fix sayesinde oyuncular, estetik ve işlevsel kombinler oluşturabilir. Özellikle PvP sistemlerinde, kostümler hem görünüm hem de bonus sistemleri açısından önemlidir. Bu fix ile kullanıcı memnuniyeti artar ve Metin2 development süreci daha esnek hale gelir.

Sonuç:
Metin2 lobby gibi özel sunucularda, kullanıcıların farklı kostümleri serbestçe kullanabilmesi çok önemlidir. Bu fix, C++ system üzerinden kolayca uygulanabilir ve source edit süreçlerine entegre edilebilir.


Gown or Tuxedo Worn Costume Wear Fix

In Metin2 private servers, the in-game costume system is very important. Especially in PvP-focused systems, players being able to wear balanced and appropriate costume combinations plays a major role. However, in certain cases, wearing specific special costumes may block other costume-wearing actions. This issue commonly arises when special effect costumes like Gowns or Tuxedos[/PYTHON] are worn. In this article, we will provide a fix that allows other costumes to be worn even while a Gown or Tuxedo is active.

Nature of the Problem:
In Metin2 systems, some special costumes can temporarily disable other costumes via in-game mechanisms. This is usually controlled through C++ source code. For instance, if a player wears a gown, wearing a tuxedo or another costume might be blocked. This negatively affects player experience.

Purpose of the Fix:
This fix allows players to wear other costumes even if they already have special costumes such as Gowns or Tuxedos equipped. This can be achieved with a small modification in the game_core files. Integration can also be done via Python GUI.

Implementation Steps:
Firstly, access to game server programming files is required. The process should proceed through Metin2 server src. You need to modify the function that checks whether the player is wearing a costume. This function is typically located in files such as character.cpp.

Code Modification:
Consider the following code snippet:
if (IsWearingSpecialCostume() && !CanWearMultipleCostumes()) {
return false;
}

This line blocks other costumes when a special costume is worn. Returning true from the CanWearMultipleCostumes() function is sufficient here.

Testing Phase:
Before compiling after making changes, thorough testing must be performed. Auth and game servers should be restarted and tested on the player. Integration tests can also be done with Py root and uiscript.

Benefits:
With this fix, players can create aesthetic and functional costume combinations. Particularly in PvP systems, costumes are important both visually and in terms of bonus systems. With this fix, user satisfaction increases and the Metin2 development process becomes more flexible.

Conclusion:
On private servers like Metin2 lobby, allowing users to freely use different costumes is highly important. This fix can easily be applied via C++ system and integrated into source edit processes.
 

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

Benzer konular

Geri
Üst Alt