Öncelikle Char_İtem.cpp açılır ;
Sonrada Bu Fonksiyon Aratılır ; case USE_POTION:
Sonrada Bu Fonksiyon Aratılır ; case USE_POTION:
Aşağıya İnilir...
Kod:
item->SetCount(item->GetCount() - 1);
Yukaridaki fonksiyonu silin.
[C++]Sınırsız Kırmızı Ve Mavi İtsir Yapımı <sunRisee>
Metin2 özel sunucularında oyuncu deneyimini artırmak adına geliştirilen sistemlerden birisi de sınırsız kırmızı ve mavi iksir yapımıdır. Bu sistem sayesinde oyuncular, can ve mana iksirlerini sınırsızca üretip kullanabilir. Bu yazıda, C++ tabanlı bir sistem üzerinden bu işlemi nasıl yapacağınızı adım adım anlatacağız.
Sistem Hakkında
Bu sistem, Martysama veya diğer Metin2 kaynak kodları üzerinde çalıştırılabilir. Game core üzerinde küçük değişiklikler yapılarak, oyuncuların belirli itemleri birleştirerek sınırsız miktarda iksir üretmesi sağlanır. Sistem, Python GUI ile entegre çalışır ve pack dosyalarına da destek sağlar.
Gereksinimler
- Metin2 client ve server src
- Martysama veya başka bir source edit türü
- Python GUI bilgisi
- C++ bilgisi
Adım Adım Kurulum
İlk olarak, game server tarafında item kombinasyonunu tanımlamak gerekir. Bunun için C++ kaynak kod üzerinde bir fonksiyon yazılır. Örneğin, 1 adet boş şişe + 1 adet özel malzeme = 10 adet kırmızı iksir gibi. Bu işlem sırasında db core ile iletişim kurulur ve itemler doğru şekilde kayıt altına alınır.
Python Tarafı Entegrasyonu
Python GUI kullanarak, uiscript dosyasında bu kombinasyonları kullanıcıya sunabilirsiniz. Oyuncu, belirtilen itemleri envanterine attığında, py root üzerinden bir kontrol yapılır ve sonuç ekrana yansıtılır. Bu sistem, Metin2 lobby tarzı sunucularda büyük kolaylık sağlar.
Sunucu Tarafında Güvenlik
Sınırsız iksir üretimi, hile riskini artırabilir. Bu nedenle, auth server ve game server arasında güçlü bir güvenlik önlemleri alınmalıdır. Her item üretimi loglanmalı ve şüpheli aktiviteler takip edilmelidir.
Sonuç
Bu sistem, Metin2 development sürecinde önemli bir kolaylık sağlar. PVP odaklı sunucularda, oyuncuların sürekli iksire bağımlı olmaması için idealdir. Core yapıları iyi bilinirse, bu tür sistemler kolayca entegre edilebilir. Metin2 Lobby gibi siteler, bu tür gelişmiş sistemler için harika örnekler sunmaktadır.
[C++]Unlimited Red And Blue Potion Creation <sunRisee>
One of the systems developed to enhance player experience on Metin2 private servers is the unlimited red and blue potion creation. With this system, players can produce and use health and mana potions infinitely. In this article, we will explain step by step how to implement this process using a C++-based system.
About The System
This system can be run on Martysama or other Metin2 source codes. By making small changes on the game core, players can combine certain items to produce unlimited potions. The system works integrated with Python GUI and supports pack files.
Requirements
- Metin2 client and server src
- Martysama or another type of source edit
- Knowledge of Python GUI
- Knowledge of C++
Step-by-Step Installation
Firstly, you need to define item combinations on the game server side. For this, a function is written in the C++ source code. For example, 1 empty bottle + 1 special material = 10 red potions. During this process, communication with db core occurs and items are correctly registered.
Python Side Integration
Using Python GUI, you can present these combinations to the user via the uiscript file. When the player drags the required items into their inventory, a check is performed through py root and the result is displayed on screen. This system offers great convenience on servers like Metin2 lobby.
Security On Server Side
Unlimited potion production may increase the risk of cheating. Therefore, strong security measures must be taken between auth server and game server. Every item creation should be logged and suspicious activities monitored.
Conclusion
This system provides significant ease during Metin2 development. It is ideal for PVP-oriented servers where players should not rely heavily on potions. If core structures are well understood, such systems can be easily integrated. Sites like Metin2 Lobby offer great examples for such advanced systems.
