Açılır: \source\UserInterface\InstanceBase.cpp
Aranır:
case CItemData::ITEM_TYPE_ARMOR: kod bloğu içerisinde tekrar aratılır: __ClearArmorRefineEffect();
1 satır boşluk bırakıp aşağıdaki kod eklenir:
if (pItem->GetSubType() == CItemData::ARMOR_BODY)
{
DWORD dwVnum = pItem->GetIndex();
if ((11297 <= dwVnum && dwVnum <= 11299) || (11497 <= dwVnum && dwVnum <= 11499) || (11697 <= dwVnum && dwVnum <= 11699) || (11897 <= dwVnum && dwVnum <= 11899))
{
for (int iCount = 0; iCount < 10; iCount++)
__AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_REFINED7 + refine - 7);
}
}
Kanıt:
Metin2 Özel Sunucularında Zırh Parlama Efektini Çoğaltma
Metin2 özel sunucu geliştiricileri olarak, oyuncuların dikkatini çekecek görsel efektler eklemek büyük önem taşır. Bu efektlerden birisi de zırhların parlama efektidir. Standart sistemde bir zırh sadece belirli bir parlama efektine sahiptir. Ancak bazı sunucularda, zırhların daha fazla parlaması istenir. Bu durumda, C++ tabanlı game core üzerinde değişiklikler yaparak zırhların parlama efektini çoğaltabiliriz. Bu rehberde, C++ bilgisi kullanarak nasıl bu efekti çoğaltacağımızı adım adım inceleyeceğiz.
Parlama Sistemi Nedir?
Metin2'de zırhlar, belirli seviyelere ulaştıkça parlarlar. Bu parlamalar görsel olarak oyuncular tarafından fark edilir ve bir prestij sembolüdür. Örneğin +7 zırh belli bir parlama efekti gösterirken, +9 zırh farklı bir efekt gösterebilir. Ancak bazı sunucularda +5 zırh bile güçlü bir parlama efektiyle dikkat çekebilir. Bu da oyuncular için daha heyecanlı ve rekabetçi bir deneyim sunar.
Zırh Parlama Sistemini Değiştirmek
Parlama efektini çoğaltmak için öncelikle game/src/char_item.cpp dosyasına bakmalıyız. Burada zırh ekipmanları takıldığında hangi efektin çalışacağı tanımlanır. Bu dosya içinde bulunan EquipItem fonksiyonu, zırh eklendiğinde çağrılır ve efektleri başlatır.
Parlama efekti, genellikle AttachEffect fonksiyonu ile yapılır. Bu fonksiyonun birden fazla kez çağrılması, aynı anda birden fazla efektin gösterilmesini sağlar. Örneğin:
Burada EFFECT_REFINED sabiti ve refine_type değerine göre efekt atanır. Aynı satır birden fazla yazıldığında, efekt çoğaltılmış olur.
Efektleri Çoğaltma Yöntemi
Aşağıdaki gibi bir yapı kurulabilir:
Bu yapı sayesinde +7 ve üzeri zırhlarda iki adet efekt çalıştırılır. Oyuncu bu efekti görsel olarak daha yoğun bir parlama hissiyle algılar.
Python Tarafında UI Değişikliği
Bazı durumlarda parlama efekti, client tarafında da desteklenmelidir. Bunun için uiscript veya Python GUI dosyalarında da değişiklik yapılması gerekir. Bu işlem genellikle itemwnd.py veya benzeri dosyalarda yapılır. Client tarafında efekt yönetimi, root klasöründe bulunan gr2 veya ms2 dosyalarıyla da ilişkilidir.
Sunucu Derleme ve Test
Değişiklikler tamamlandıktan sonra compile işlemi yapılmalıdır. Bu işlem sırasında hata alınmaması için C++ syntax kurallarına dikkat edilmelidir. Derleme işlemi başarılıysa, test sunucusunda bu efektin doğru çalışıp çalışmadığı kontrol edilmelidir. Martysama gibi sistemler üzerinden test yapılabilir.
Sonuç
Zırh parlama efektini çoğaltmak, Metin2 özel sunucularında oyuncuların ilgisini çekecek küçük ama etkili bir özelliktir. Bu işlem, hem game core hem de client src üzerinde değişiklik gerektirir. Doğru uygulandığında, oyuncuların zırhlarını daha estetik ve dikkat çekici bulması sağlanabilir. Bu tip geliştirmeler, Metin2 lobby gibi platformlarda sunucuların kalitesini artırır.
Multiplying Armor Shine Effect in Metin2 Private Servers
As Metin2 private server developers, adding visual effects that catch players' attention is very important. One of these effects is the shine effect on armors. In the standard system, an armor only has a specific shine effect. However, on some servers, players want their armors to shine more. In this case, by making changes to the C++-based game core, we can multiply the shine effect of armors. In this guide, we will examine step-by-step how to achieve this using C++ knowledge.
What Is the Shine System?
In Metin2, armors shine when they reach certain levels. These shines are visually noticed by players and serve as a symbol of prestige. For example, a +7 armor shows a certain shine effect, while a +9 armor displays a different one. However, on some servers, even a +5 armor might have a strong shine effect. This creates a more exciting and competitive experience for players.
Modifying the Shine System
To multiply the shine effect, first we must look at the game/src/char_item.cpp file. Here, the shine effect shown when armors are equipped is defined. The EquipItem function within this file is called when armor is equipped and starts the effects.
The shine effect is typically handled by the AttachEffect function. Calling this function multiple times allows multiple effects to be displayed simultaneously. For example:
Here, EFFECT_REFINED constant and refine_type value determine which effect is applied. Writing the same line multiple times multiplies the effect.
Method to Multiply Effects
You can create a structure like the following:
With this setup, two effects will run simultaneously for armors with +7 and above. Players will perceive this visually as a more intense shine effect.
UI Changes in Python
In some cases, the shine effect must also be supported on the client side. For this, modifications may be needed in uiscript or Python GUI files. This is usually done in files such as itemwnd.py. Client-side effect management may also involve gr2 or ms2 files located in the root folder.
Server Compilation and Testing
After completing the changes, a compile operation must be performed. Care should be taken during compilation to avoid syntax errors in C++. If the build process completes successfully, the effect should be tested on a test server. Testing can be done via systems like Martysama.
Conclusion
Multiplying the armor shine effect is a small but effective feature that attracts player interest in Metin2 private servers. This process requires modifications on both the game core and client src. When applied correctly, players will find their armors more aesthetic and eye-catching. Such improvements enhance the quality of servers on platforms like Metin2 lobby.
Aranır:
case CItemData::ITEM_TYPE_ARMOR: kod bloğu içerisinde tekrar aratılır: __ClearArmorRefineEffect();
1 satır boşluk bırakıp aşağıdaki kod eklenir:
if (pItem->GetSubType() == CItemData::ARMOR_BODY)
{
DWORD dwVnum = pItem->GetIndex();
if ((11297 <= dwVnum && dwVnum <= 11299) || (11497 <= dwVnum && dwVnum <= 11499) || (11697 <= dwVnum && dwVnum <= 11699) || (11897 <= dwVnum && dwVnum <= 11899))
{
for (int iCount = 0; iCount < 10; iCount++)
__AttachEffect(EFFECT_REFINED + EFFECT_BODYARMOR_REFINED7 + refine - 7);
}
}
Kanıt:
Metin2 Özel Sunucularında Zırh Parlama Efektini Çoğaltma
Metin2 özel sunucu geliştiricileri olarak, oyuncuların dikkatini çekecek görsel efektler eklemek büyük önem taşır. Bu efektlerden birisi de zırhların parlama efektidir. Standart sistemde bir zırh sadece belirli bir parlama efektine sahiptir. Ancak bazı sunucularda, zırhların daha fazla parlaması istenir. Bu durumda, C++ tabanlı game core üzerinde değişiklikler yaparak zırhların parlama efektini çoğaltabiliriz. Bu rehberde, C++ bilgisi kullanarak nasıl bu efekti çoğaltacağımızı adım adım inceleyeceğiz.
Parlama Sistemi Nedir?
Metin2'de zırhlar, belirli seviyelere ulaştıkça parlarlar. Bu parlamalar görsel olarak oyuncular tarafından fark edilir ve bir prestij sembolüdür. Örneğin +7 zırh belli bir parlama efekti gösterirken, +9 zırh farklı bir efekt gösterebilir. Ancak bazı sunucularda +5 zırh bile güçlü bir parlama efektiyle dikkat çekebilir. Bu da oyuncular için daha heyecanlı ve rekabetçi bir deneyim sunar.
Zırh Parlama Sistemini Değiştirmek
Parlama efektini çoğaltmak için öncelikle game/src/char_item.cpp dosyasına bakmalıyız. Burada zırh ekipmanları takıldığında hangi efektin çalışacağı tanımlanır. Bu dosya içinde bulunan EquipItem fonksiyonu, zırh eklendiğinde çağrılır ve efektleri başlatır.
Parlama efekti, genellikle AttachEffect fonksiyonu ile yapılır. Bu fonksiyonun birden fazla kez çağrılması, aynı anda birden fazla efektin gösterilmesini sağlar. Örneğin:
Kod:
[B]AttachEffect(EFFECT_REFINED+refine_type, true, 0, 0, 0);[/B]
Burada EFFECT_REFINED sabiti ve refine_type değerine göre efekt atanır. Aynı satır birden fazla yazıldığında, efekt çoğaltılmış olur.
Efektleri Çoğaltma Yöntemi
Aşağıdaki gibi bir yapı kurulabilir:
Kod:
[B]if (GetRefineLevel() >= 7) {[/B][BR][/BR][B] AttachEffect(EFFECT_REFINED+refine_type, true, 0, 0, 0);[/B][BR][/BR][B] AttachEffect(EFFECT_REFINED+refine_type, true, 0, 0, 0);[/B][BR][/BR][B]}[/B]
Bu yapı sayesinde +7 ve üzeri zırhlarda iki adet efekt çalıştırılır. Oyuncu bu efekti görsel olarak daha yoğun bir parlama hissiyle algılar.
Python Tarafında UI Değişikliği
Bazı durumlarda parlama efekti, client tarafında da desteklenmelidir. Bunun için uiscript veya Python GUI dosyalarında da değişiklik yapılması gerekir. Bu işlem genellikle itemwnd.py veya benzeri dosyalarda yapılır. Client tarafında efekt yönetimi, root klasöründe bulunan gr2 veya ms2 dosyalarıyla da ilişkilidir.
Sunucu Derleme ve Test
Değişiklikler tamamlandıktan sonra compile işlemi yapılmalıdır. Bu işlem sırasında hata alınmaması için C++ syntax kurallarına dikkat edilmelidir. Derleme işlemi başarılıysa, test sunucusunda bu efektin doğru çalışıp çalışmadığı kontrol edilmelidir. Martysama gibi sistemler üzerinden test yapılabilir.
Sonuç
Zırh parlama efektini çoğaltmak, Metin2 özel sunucularında oyuncuların ilgisini çekecek küçük ama etkili bir özelliktir. Bu işlem, hem game core hem de client src üzerinde değişiklik gerektirir. Doğru uygulandığında, oyuncuların zırhlarını daha estetik ve dikkat çekici bulması sağlanabilir. Bu tip geliştirmeler, Metin2 lobby gibi platformlarda sunucuların kalitesini artırır.
Multiplying Armor Shine Effect in Metin2 Private Servers
As Metin2 private server developers, adding visual effects that catch players' attention is very important. One of these effects is the shine effect on armors. In the standard system, an armor only has a specific shine effect. However, on some servers, players want their armors to shine more. In this case, by making changes to the C++-based game core, we can multiply the shine effect of armors. In this guide, we will examine step-by-step how to achieve this using C++ knowledge.
What Is the Shine System?
In Metin2, armors shine when they reach certain levels. These shines are visually noticed by players and serve as a symbol of prestige. For example, a +7 armor shows a certain shine effect, while a +9 armor displays a different one. However, on some servers, even a +5 armor might have a strong shine effect. This creates a more exciting and competitive experience for players.
Modifying the Shine System
To multiply the shine effect, first we must look at the game/src/char_item.cpp file. Here, the shine effect shown when armors are equipped is defined. The EquipItem function within this file is called when armor is equipped and starts the effects.
The shine effect is typically handled by the AttachEffect function. Calling this function multiple times allows multiple effects to be displayed simultaneously. For example:
Kod:
[B]AttachEffect(EFFECT_REFINED+refine_type, true, 0, 0, 0);[/B]
Here, EFFECT_REFINED constant and refine_type value determine which effect is applied. Writing the same line multiple times multiplies the effect.
Method to Multiply Effects
You can create a structure like the following:
Kod:
[B]if (GetRefineLevel() >= 7) {[/B][BR][/BR][B] AttachEffect(EFFECT_REFINED+refine_type, true, 0, 0, 0);[/B][BR][/BR][B] AttachEffect(EFFECT_REFINED+refine_type, true, 0, 0, 0);[/B][BR][/BR][B]}[/B]
With this setup, two effects will run simultaneously for armors with +7 and above. Players will perceive this visually as a more intense shine effect.
UI Changes in Python
In some cases, the shine effect must also be supported on the client side. For this, modifications may be needed in uiscript or Python GUI files. This is usually done in files such as itemwnd.py. Client-side effect management may also involve gr2 or ms2 files located in the root folder.
Server Compilation and Testing
After completing the changes, a compile operation must be performed. Care should be taken during compilation to avoid syntax errors in C++. If the build process completes successfully, the effect should be tested on a test server. Testing can be done via systems like Martysama.
Conclusion
Multiplying the armor shine effect is a small but effective feature that attracts player interest in Metin2 private servers. This process requires modifications on both the game core and client src. When applied correctly, players will find their armors more aesthetic and eye-catching. Such improvements enhance the quality of servers on platforms like Metin2 lobby.
