Öldüğünüzde rakibe exp gitsin

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Herhangi bir rakibi öldürünce 3 adet fly exp çıkar ve bir miktar exp kazanırsınız.

Aktif etmek için: /eventflag olunce_exp 1
Kapatmak için: /eventflag olunce_exp 0

Exp hesaplaması: Ölen oyuncunun leveli * 100 şeklinde kendinize göre düzenleyebilirsiniz

*char_battle.cpp

Aratın:
Kod:
if (!pkKiller->IsPC())

Üstüne ekleyin:
Kod:
if (quest::CQuestManager::instance().GetEventFlag("ol unce_exp")){ CreateFly(FLY_EXP, pkKiller); CreateFly(FLY_EXP, pkKiller); CreateFly(FLY_EXP, pkKiller); }



Aratın:
Kod:
sys_log(1, "DEAD_BY_PC: %s %p KILLER %s %p", GetName(), this, pkKiller->GetName(), get_pointer(pkKiller));

Üstüne ekleyin:
Kod:
if (quest::CQuestManager::instance().GetEventFlag("ol unce_exp")){ int iCalcExp = GetLevel() * 100; if (iCalcExp) { pkKiller->PointChange(POINT_EXP, iCalcExp, true); pkKiller->ChatPacket(CHAT_TYPE_INFO, "%s isimli oyuncuyu oldurerek %d exp kazandin.", GetName(), iCalcExp); } }



ss2015-09-17at05.41.34.jpg

Metin2'de Öldüğünüzde Rakibe EXP Gitsin Sistemi Nasıl Kurulur?

Metin2 özel sunucularında PvP deneyimini daha rekabetçi ve keyifli hale getirmek istiyorsanız, ölüm sistemi üzerinde çalışmak oldukça faydalıdır. Bu sistemlerden biri de öldüğünüzde rakibe EXP geçmesi özelliğidir. Bu yazıda, Metin2 özel sunucu geliştirme sürecinde bu sistemi nasıl kuracağınızı adım adım anlatıyoruz.

EXP Kaybı ve Rakibe Geçmesi Nedir?
Bu sistem sayesinde, bir oyuncu öldürüldüğünde hem kendi EXP'sinden belli bir miktarı kaybeder hem de öldüren oyuncuya belli bir EXP artışı kazandırır. Bu durum, PvP atmosferini ciddi anlamda artırır ve oyuncuların dikkatli hareket etmesini teşvik eder. Özellikle Metin2 Lobby gibi gelişmiş özel sunucularda bu tür sistemler, oyuncuların uzun süre oyunda kalmasını sağlar.

Sistem Nasıl Çalışır?
Bu sistemin temel mantığı, ölen oyuncuya belirli bir EXP bonusu verilmesi ve ölen oyuncudan ise EXP düşülmesidir. Uygulama seviyesinde bu sistem genellikle C++ tabanlı server-side değişikliklerle sağlanır. Game server programming bilgisi olan geliştiriciler, game core dosyalarında gerekli düzenlemeleri yaparak bu sistemi aktif hale getirebilirler.

Nasıl Uygulanır?
Bu sistemi uygulamak için öncelikle Metin2 server src dosyaları üzerinde çalışmanız gerekir. Auth ve game sunucularında bulunan death fonksiyonları üzerinden EXP transferi yapılabilir. Örneğin, öldürülen karakterin EXP'si belirlenen yüzdelik oranla azaltılır ve bu miktar öldüren oyuncuya eklenir. Bu işlem genellikle Python ile yazılmış script dosyaları ile de desteklenebilir.

Kaynak Kod ve Script Düzenlemesi
Metin2 özel sunucularında bu sistemi aktif etmek için C++ bilgisi oldukça önemlidir. Source edit sırasında dikkat edilmesi gereken en önemli konulardan biri, EXP transferi sırasında sunucu performansının etkilenmemesidir. Py GUI veya UIscript gibi arayüz sistemleri ile bu özellikler kolayca test edilebilir. Ayrıca db core üzerinden EXP verilerinin doğru şekilde güncellenmesi sağlanmalıdır.

Martysama ve Diğer Geliştirici Araçları
Bu tür sistemleri geliştirmek isteyen geliştiriciler için Martysama gibi kaynaklar oldukça faydalıdır. Metin2 development konusunda deneyimli geliştiriciler, py root ve pack sistemleri ile bu tür değişiklikleri hızlıca uygulayabilirler. Metin2dev toplulukları da bu konuda birçok bilgiyi paylaşmaktadır.

Sonuç
Öldüğünüzde rakibe EXP geçmesi sistemi, Metin2 özel sunucularında PvP deneyimini ciddi anlamda artırır. Game core üzerinde yapılan bu tür düzenlemeler, hem oyuncular hem de geliştiriciler için büyük avantajlar sağlar. Metin2 Lobby gibi platformlarda bu sistemlerin entegrasyonu, oyuncu katılımını ve sunucu popülerliğini artırabilir.


How to Set Up EXP Transfer to Opponent When You Die in Metin2?

If you want to make the PvP experience more competitive and enjoyable on your Metin2 private server, working on death systems can be very beneficial. One of these systems is the feature where EXP transfers to the opponent upon your death. In this article, we will explain step by step how to set up this system during the Metin2 private server development process.

What is EXP Loss and Transfer to Opponent?
With this system, when a player is killed, they lose a certain amount of their own EXP while also granting a specific EXP boost to the killer. This significantly enhances the PvP atmosphere and encourages players to move more carefully. Especially on advanced private servers like Metin2 Lobby, such systems help keep players engaged for longer periods.

How Does the System Work?
The basic logic of this system is rewarding the killer with a certain amount of EXP and deducting EXP from the defeated player. At the implementation level, this system is usually achieved through C++-based server-side modifications. Developers familiar with game server programming can activate this system by making necessary adjustments in game core files.

How Is It Implemented?
To implement this system, you first need to work on Metin2 server src files. The death functions located in auth and game servers can be used to handle the EXP transfer. For instance, the EXP of the killed character can be reduced by a defined percentage, which is then added to the killer’s EXP. This process can also be supported with scripts written in Python.

Source Code and Script Editing
Knowledge of C++ is essential when implementing this system on Metin2 private servers. When performing source edit, one of the most important considerations is ensuring that server performance remains unaffected during EXP transfers. Such features can be easily tested using interface systems like Py GUI or UIscript. Additionally, updates to EXP values must be correctly handled via db core.

Martysama and Other Developer Tools
Resources like Martysama are highly beneficial for developers aiming to build such systems. Experienced developers in Metin2 development can quickly apply these changes using systems such as py root and pack. Metin2dev communities also share extensive information on these topics.

Conclusion
The system where EXP transfers to the opponent upon death significantly enhances the PvP experience in Metin2 private servers. Modifications made to the game core provide significant advantages for both players and developers. Integration of such systems on platforms like Metin2 Lobby can increase player engagement and server popularity.
 

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

Benzer konular

Geri
Üst Alt