% ye bağlı olarak bossların hp sp st dx sömürmesi

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

Admin

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

Kod:
CREATE TABLE boss_steal_log (     id        INT AUTO_INCREMENT PRIMARY KEY,     boss_vnum INT UNSIGNED NOT NULL,     player_id INT UNSIGNED NOT NULL,     hp        INT NOT NULL DEFAULT 0,     sp        INT NOT NULL DEFAULT 0,     st        INT NOT NULL DEFAULT 0,     dx        INT NOT NULL DEFAULT 0,     time      DATETIME NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

char.cpp altına ekle

Kod:
void CHARACTER::StealPlayerAttributes(LPCHARACTER victim) {     if (!victim || !victim->IsPC())         return;     if (!IsMonster() || GetMobRank() < MOB_RANK_BOSS)         return;     if (number(1, 100) > 20)         return;     int hp = victim->GetMaxHP() / 20; // 5% of max HP     int sp = victim->GetMaxSP() / 20;     int st = victim->GetPoint(POINT_ST) / 20;     int dx = victim->GetPoint(POINT_DX) / 20;     if (hp)     {         victim->PointChange(POINT_MAX_HP, -hp);         PointChange(POINT_MAX_HP, hp);     }     if (sp)     {         victim->PointChange(POINT_MAX_SP, -sp);         PointChange(POINT_MAX_SP, sp);     }     if (st)     {         victim->PointChange(POINT_ST, -st);         PointChange(POINT_ST, st);     }     if (dx)     {         victim->PointChange(POINT_DX, -dx);         PointChange(POINT_DX, dx);     }     DBManager::instance().Query(         "INSERT INTO boss_steal_log (boss_vnum, player_id, hp, sp, st, dx, time) VALUES(%u, %u, %d, %d, %d, %d, NOW())",         GetRaceNum(), victim->GetPlayerID(), hp, sp, st, dx);     char buf[128];     snprintf(buf, sizeof(buf), "%u %d %d %d %d", victim->GetPlayerID(), hp, sp, st, dx);     LogManager::instance().CharLog(this, GetRaceNum(), "BOSS_STEAL", buf); }

char.h

Kod:
bul void AutoRecoveryItemProcess(const EAffectTypes); alta ekle void StealPlayerAttributes(LPCHARACTER victim);

char_battle.cpp

Kod:
arat     SetPosition(POS_DEAD);     ClearAffect(true); alta geç ekle         if (pkKiller && pkKiller->IsMonster() && pkKiller->GetMobRank() >= MOB_RANK_BOSS && IsPC())                 pkKiller->StealPlayerAttributes(this);

not: char.cpp "db.h" includelara eklemeyi unutma
Metin2 Oyununda % Sistemine Bağlı Olarak Boss Karakterlerin HP, SP, ST ve DX Değerlerinin Sömürülmüş Hali

Metin2 özel sunucularında (private server), oyun deneyimini artırmak ve oyuncular için daha dengeli bir sistem kurmak adına bazı değerlerin yüzdelik olarak artırılması yaygın bir uygulamadır. Özellikle boss karakterler üzerinde yapılan bu ayarlamalar, oyunun zorluk seviyesini doğrudan etkiler. Bu yazıda, % oranına bağlı olarak HP, SP, ST ve DX gibi temel niteliklerin nasıl sömürüldüğüne dair teknik detaylara değineceğiz.

HP (Can) Değeri
HP, bir karakterin hayatta kalabilmesi için sahip olması gereken en önemli özelliktir. Metin2 özel sunucularında boss karakterlerin HP değeri, sunucu config dosyalarında belirlenen yüzdelik oranlarla artırılır. Örneğin, standart boss can değeri 10.000 iken, %200 artırımla bu değer 20.000 olur. Bu, oyuncuların bossu alt etmek için daha fazla zaman ve strateji harcamasını gerektirir.

SP (Mana) Değeri
SP, boss karakterlerin büyü, destek ve saldırı büyülerini kullanabilmesi için gerekli olan enerji kaynağıdır. SP miktarı arttıkça, boss daha fazla yetenek kullanabilir. Bu da sadece oyunun zorluğunu değil, aynı zamanda stratejik derinliğini de artırır. SP değerleri, genellikle config dosyasında HP gibi ayrı bir yüzdelik sabitle belirlenir.

ST (Güç) ve DX (Çeviklik)
ST ve DX, sırasıyla fiziksel saldırı gücü ve saldırı hızı gibi kritik parametreleri etkiler. Boss karakterlerin bu değerleri artırıldığında, hem daha fazla hasar verebilir hem de daha hızlı saldırabilirler. Bu değerlerin yüzdesel artırımı, oyuncuların defans stratejilerini yeniden gözden geçirmesine neden olur.

Sömürü Mekanizması
Bu sistemdeki 'sömürme', aslında oyuncu deneyimini zenginleştirmek için tasarlanmış bir mekanizmadır. Ancak bazı sunucularda bu değerlerin aşırı derecede artırılması, oyuncular için adaletsiz durumlar yaratabilir. Bu nedenle, geliştiricilerin bu değerleri dengeli ve ölçeklenebilir bir şekilde ayarlaması gerekir. Bu, C++ tabanlı sunucu sistemlerinde genellikle src dosyalarında yapılır.

Sunucu Geliştirici Uygulamaları
Metin2 özel sunucularında game core ve db core gibi yapılar üzerinden bu ayarlamalar yapılır. Bu ayarlarda Python veya C++ tabanlı sistemler kullanılır. Örneğin, py root üzerinden bir uiscript dosyası ile görsel arayüz üzerinden bu değerler kolayca değiştirilebilir. Ayrıca martysama gibi topluluklar, bu konuda source edit ve compile işlemleri için kaynaklar sağlar.

Sonuç
% sistemine bağlı olarak boss karakterlerin HP, SP, ST ve DX[/COLOR] değerlerinin artırılması, Metin2 özel sunucularında stratejik bir oyun deneyimi sunmayı amaçlayan bir yöntemdir. Bu değerlerin dengeli bir şekilde yönetilmesi, hem oyuncuların hem de geliştiricilerin tatmin edici bir oyun ortamı yakalamasını sağlar.


Exploitation of Boss HP, SP, ST, and DX Values Based on Percentage Systems in Metin2

In Metin2 private servers, adjusting certain stats based on percentage values is a common practice aimed at enhancing gameplay and balancing the experience. Especially for boss characters, these adjustments directly affect the difficulty level of the game. In this article, we will explore how key attributes like HP, SP, ST, and DX are exploited based on percentage increases within the game system.

HP (Health Points) Value
HP is the most critical attribute for any character to stay alive. On Metin2 private servers, boss HP values are increased via percentage multipliers defined in the server config files. For instance, if a standard boss has 10,000 HP, a %200 increase would raise that value to 20,000. This forces players to invest more time and strategy into defeating the boss.

SP (Mana) Value
SP represents the energy required for bosses to cast spells, buffs, and offensive skills. As SP increases, the boss can use more abilities, which not only raises the difficulty but also adds strategic depth to the game. These SP values are usually configured separately in the config file, similar to HP adjustments.

ST (Strength) and DX (Dexterity)
ST and DX influence physical damage output and attack speed, respectively. When these values are increased, bosses can deal higher damage and attack more rapidly. Such percentage-based enhancements require players to rethink their defensive strategies accordingly.

Exploitation Mechanism
This exploitation mechanism is designed to enrich the player experience; however, excessive stat increases can lead to unfair situations. Therefore, developers must ensure these values are adjusted balanced and scalable. These adjustments are typically made within C++-based server src files.

Server Development Practices
Adjustments on Metin2 private servers are often managed through structures like game core and db core. These systems may utilize Python or C++ scripts. For example, with tools such as uiscript under py root, these values can be modified easily through a visual interface. Additionally, communities like martysama provide resources for source editing and compiling.

Conclusion
Increasing boss HP, SP, ST, and DX values based on percentage systems aims to create a strategic gaming environment in Metin2 private servers. Balanced management of these stats ensures a satisfying gameplay experience for both players and developers.
 

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

Geri
Üst Alt