Boss Sekmeme Boss Kodlarıyla beraber

  • 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
ARAT ClientSource//GameLib//ActorInstanceBattle.cpp
Kod:
bool IS_HUGE_RACE(unsigned int vnum) /// case kodlarıyla olan kod bloğunu bul 3 tane var zaten[/FONT]
SWİTCH'in içini komple değiştir
Kod:
{     switch (vnum)     {     case 1093:  // LUSİFER         return true;     case 2598:  // AZRAİL         return true;     case 6091:  // RAZADOR         return true;     case 6191:  // NEMERE         return true;     case 691:  // ORK REİSİ         return true;     case 2091:  // KRALİÇE ÖRÜMCEK         return true;     case 2092:  // ÖRÜMCEK BARONES         return true;     case 2094:  // ÖRÜMCEK BARONU         return true;     case 1901:  // DOKUZ KUYRUK         return true;     case 2491:  // KOMUTAN         return true;     case 2492:  // GENERAL         return true;     case 2591:  // TARTARUS         return true;     case 3491:  // TRİTON         return true;     case 3790:  // GARGOYLE         return true;     case 3190:  // ARGES         return true;     case 3191:  // POLYPHERMOS         return true;     case 3595:  // ZALİM KEMİKSURAT         return true;     case 3791:  // KRAL VOBA         return true;     case 3596:  // ZALİM KIZILREİS         return true;     case 3490:   // GENERAL KAPPA         return true;     case 3590:  // KEMİKSURAT         return true;     case 3690:  // GENERAL ISTAKOZ         return true;     case 3591:  // KIZIL REIS         return true;     case 3290:  // RAKSHASA         return true;     case 3391:  // LEMUR MUHAFIZI         return true;     case 3390:  // LEMUR PRENSI         return true;     case 3911:  // AKU BEKU         return true;     case 3912:  // Arboretum         return true;     case 3913:  // Sekomor         return true;     case 3890:  // Kaptan Şrak         return true;     case 3891:  // DEV ÖCÜ         return true;     case 2493:  // MAVİ EJDERHA         return true;     }     return false; }


Konunun amacı tek tek ekleme ile uğraşmayıp direk bütün bossları ekledim ekleyemediğim elbette vardır sizin serverinizde vs. olan kolaylık olsun diye şöyle paylaşayım dedim.

Boss Sekmeme Sistemi Nedir?
Metin2 özel sunucularında oyun deneyimini artırmak için geliştirilen sistemlerden biri olan Boss Sekmeme sistemi, oyuncuların belirli boss karakterlerine zarar verememesi veya onları doğrudan öldürmesiyle ilgili kurallar içerir. Bu sistem, genellikle güçlü boss karakterlerinin fazla hızlı bir şekilde öldürülmesini engellemek veya belirli zaman aralıklarında respawn olmalarını sağlamak için tasarlanır. Boss sekmeme, sunucu sahiplerinin oyun dengesini korumalarına yardımcı olur.

Boss Sekmeme Kodlarının Önemi
Boss sekmeme sistemi, genellikle C++ tabanlı server src üzerinde tanımlanır. Bu sistem, oyuncuların boss karakterlerine saldırırken karşılaştıkları engelleri artırır. Örneğin, bossa hasar verilemiyor veya hasar alındığı halde can düşmüyorsa bu koddan kaynaklanabilir. Bu gibi durumlar, source edit ile ayarlanan özel kurallardan dolayıdır. Martysama ve benzeri sistemlerde bu tür kontroller genellikle game core kısmında tanımlanır.

Boss Sekmeme Kodları Nasıl Çalışır?
Boss sekmeme sistemi, genellikle auth server ile game server arasında çalışan özel fonksiyonlarla entegre edilir. Sunucu tarafında tanımlanan bu sistem, oyuncunun leveli, guildi, ya da bossa verdiği hasar miktarına göre farklı tepkiler verebilir. Örneğin, belirli bir seviyenin altındaki oyuncular bossa hasar veremez veya bossu öldürme hakkı sadece lider olan oyuncuya tanınabilir. Bu tür kurallar uiscript ile istemci tarafında da desteklenir.

Boss Sekmeme Kodları Örnekleri
Aşağıda örnek bir boss sekmeme kod parçası verilmiştir. Bu kod genellikle py root içinde yer alan sistem dosyalarında tanımlanır:

Kod:
[COLOR=#9365b8]if player.GetLevel() < boss_level_requirement:[/COLOR][BR][/BR][COLOR=#9365b8]    chat.AppendChat(chat.CHAT_TYPE_INFO, 'Bu bossa saldıramazsın!')[/COLOR][BR][/BR][COLOR=#9365b8]    return False[/COLOR]


Python GUI ve Uiscript Entegrasyonu
Boss sekmeme sistemi, Python GUI ile görsel olarak kullanıcıya uyarı mesajları gösterebilir. Bu tür mesajlar, uiscript yardımıyla istemci tarafında çalışır. Örneğin, bossa saldırmaya çalışan oyuncuya bir pop-up mesajı gösterilebilir. Bu sistem, py gui kullanılarak daha da geliştirilebilir. Böylece hem oyun içi deneyim artırılır hem de kullanıcı dostu arayüzler oluşturulur.

Sunucu Tarafında DB ve Core Entegrasyonu
Boss sekmeme sistemi, db core ile de entegre çalışabilir. Örneğin, bossa hasar veren oyuncuların bilgisi veritabanına yazılabilir. Bu sayede, hangi oyuncunun ne kadar hasar verdiğini takip etmek mümkün olur. Bu tür işlemler, Metin2 development süreçlerinde sıklıkla kullanılır. Core sistemleri ile uyumlu çalışarak, sunucu yöneticileri daha gelişmiş sistemler kurabilirler.

Metin2 Compile ve Source Edit ile Uyum
Boss sekmeme sistemleri, Metin2 compile sırasında doğru yapılandırılmadığında sorunlara neden olabilir. Bu nedenle, source edit yaparken dikkatli olunmalıdır. Kodların doğru şekilde derlenmesi, sistemlerin doğru çalışmasını sağlar. Özellikle client src ile uyumlu olmayan sistemler, istemci tarafında hatalara yol açabilir.

Sonuç
Boss sekmeme sistemi, Metin2 özel sunucularında oyun deneyimini zenginleştiren önemli bir özelliktir. C++ system, Python system, uiscript, py root ve diğer sistemlerle uyumlu çalışarak, sunucuların daha dengeli ve eğlenceli hale gelmesini sağlar. Bu sistemler, Metin2dev ve game core gibi teknik yapılarla birleştiğinde, güçlü ve özelleştirilebilir sunucular ortaya çıkar.


What is the Boss Skip Prevention System?
The Boss Skip Prevention system, designed to enhance gameplay experience in Metin2 private servers, includes rules regarding players' inability to damage certain boss characters directly or kill them instantly. This system is typically designed to prevent powerful bosses from being killed too quickly or to ensure they respawn at specific intervals. Boss skip prevention helps server owners maintain game balance.

Importance of Boss Skip Prevention Codes
The boss skip prevention system is usually defined on C++-based server src. This system increases the obstacles players face when attacking boss characters. For example, the boss may not take damage or its HP might not decrease even after receiving hits, which stems from this code. Such conditions are often caused by custom rules set via source edit. In systems like Martysama, such checks are generally defined within the game core.

How Does the Boss Skip Prevention Code Work?
The boss skip prevention system usually integrates with special functions that run between the auth server and game server. On the server side, this system may respond differently based on the player's level, guild status, or amount of damage dealt to the boss. For instance, players below a certain level may be unable to attack the boss, or only the leader may have the right to kill it. Such rules are also supported on the client side via uiscript.

Example Boss Skip Prevention Codes
Below is an example snippet of a boss skip prevention code. This code is typically defined in system files located within the py root:

Kod:
[COLOR=#9365b8]if player.GetLevel() < boss_level_requirement:[/COLOR][BR][/BR][COLOR=#9365b8]    chat.AppendChat(chat.CHAT_TYPE_INFO, 'You cannot attack this boss!')[/COLOR][BR][/BR][COLOR=#9365b8]    return False[/COLOR]


Integration with Python GUI and Uiscript
The boss skip prevention system can visually display warning messages to users via Python GUI. These types of messages operate on the client-side through uiscript. For example, a popup message can be shown to a player attempting to attack the boss. This system can be further enhanced using py gui, thus improving in-game experience and creating user-friendly interfaces.

DB and Core Integration on Server Side
The boss skip prevention system can also work integrated with db core. For example, information about players dealing damage to the boss can be recorded in the database. This allows tracking how much damage each player has dealt. Such processes are frequently used during Metin2 development. Integrated with core systems, server administrators can build more advanced setups.

Compatibility with Metin2 Compile and Source Edit
If boss skip prevention systems are not configured correctly during Metin2 compile, they may cause issues. Therefore, caution must be exercised during source edit. Correctly compiling codes ensures proper functioning of systems. Especially systems incompatible with client src can lead to errors on the client-side.

Conclusion
The boss skip prevention system is a vital feature enriching the gaming experience in Metin2 private servers. Working compatibly with C++ system, Python system, uiscript, py root, and other systems, it helps make servers more balanced and enjoyable. When combined with technical structures like Metin2dev and game core, these systems result in powerful and customizable servers.
 

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

Benzer konular

Geri
Üst Alt