(Diff - 2098m) Kutsama küresi ve Içgörü Küresini NPC'ye ekleyebilme

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Kod:
This difference file has been created by IDA Sorts game2089m_stripg 0018C72C: 88 0F 0018C72D: 11 21 0018DAE2: 88 0F 0018DAE3: 11 21

(Diff - 2098m) Kutsama Küresi ve İçgörü Küresini NPC'ye Ekleme Rehberi

Metin2 Private Server geliştirme sürecinde, oyuncuların deneyimini artırmak için çeşitli sistemler entegre edilmektedir. Bu sistemlerden birisi olan Kutsama Küresi ve İçgörü Küresi, karakterin gelişimini doğrudan etkileyen önemli ögelerdir. Bu makalede, Diff - 2098m sürümüne dayalı olarak bu iki ögeyi NPC üzerinden satın alma imkanı sunacak şekilde nasıl ekleyeceğimizi ele alacağız. Bu işlem, hem C++ hem de Python seviyesinde değişiklikler gerektirir.

Öncelikle, Kutsama Küresi ve İçgörü Küresi Nedir?
Metin2 oyununda Kutsama Küresi, eşyaların geliştirme şansını artıran özel bir itemdir. İçgörü Küresi ise genellikle mana tüketimini azaltmak veya özel efektler sağlamak için kullanılır. Her iki küre de oyuncular tarafından yüksek talep gören ögelerdir ve bu yüzden NPC üzerinden satış yapılması, hem kullanıcı dostu hem de yönetim açısından kolaylık sağlar.

NPC Tanımı ve Python Arayüzü
Metin2 Lobby sistemlerinde, NPC arayüzleri genellikle Python GUI ile yönetilir. UIScript dosyalarında, kullanıcıya sunulacak menü yapılandırılır. Py Root dizininde bulunan game.py veya benzeri dosyalarda, tıklama olayları tanımlanır. Burada, yeni bir menü seçeneği oluşturulur ve bu seçenek, Kutsama ve İçgörü Küresi satın alma ekranına yönlendirir.

Game Core ve DB Core ile Entegrasyon
NPC üzerinden küre satışı yapabilmek için, DB Core üzerinden item bilgileri doğrulanmalı ve Game Server üzerinde işlemler yapılmalıdır. Oyuncu bir küreyi satın aldığında, bu işlem Auth Server ve Game Server arasında senkronize şekilde çalışarak envanterine gönderilir. Bu süreçte C++ Source Edit işlemleri, item ekleme ve kontrol mekanizmalarını içerir.

Martysama ve Metin2Dev Uygulamaları
Bu tür gelişmiş sistemlerin entegrasyonu sırasında, Martysama veya Metin2Dev gibi topluluk kaynaklarından yararlanmak faydalı olabilir. Bu platformlar, farklı Diff sürümlerine uygun kod örnekleri sunar. Diff - 2098m sürümüne özel olarak, item ID'leri ve fonksiyon isimleri incelenerek, doğru yerlere kod parçacıkları yerleştirilmelidir.

Py GUI ile Kullanıcı Deneyimi
Oyuncu dostu bir arayüz oluşturmak için Py GUI araçları kullanılır. Kullanıcı, NPC'ye yaklaşarak menüden küreleri seçip satın alabilir. Bu işlem sırasında Python Script tarafında item kontrolü yapılır, gerekli coin veya para eksiltilir ve envantere item eklenir. Hata durumlarında kullanıcıya uygun mesajlar verilir.

Paketleme ve Dağıtım[/BR]Geliştirilen sistem, Pack dosyası haline getirilerek sunucuya entegre edilebilir. Bu paket, hem Client SRC hem de Server SRC ile uyumlu olacak şekilde düzenlenmelidir. Ayrıca, Metin2 Compile işlemleri sırasında hata alınmaması için tüm dosyalar doğru şekilde derlenmelidir.

Not: Bu işlem, Metin2 sunucularınızın güvenliğini ve kararlılığını etkileyebilecek düzeyde değişiklikler içerir. Geliştirme ortamında test edildikten sonra canlıya aktarılmalıdır.


(Diff - 2098m) Adding Blessing Sphere and Insight Sphere to NPC Guide

In the process of developing Metin2 Private Server, various systems are integrated to enhance the player experience. One such system is the Blessing Sphere and Insight Sphere, which are important elements that directly affect character progression. In this article, we will explain how to add these two items for purchase through an NPC based on the Diff - 2098m version. This operation requires changes at both C++ and Python levels.

Firstly, What Are the Blessing Sphere and Insight Sphere?
In the Metin2 game, the Blessing Sphere is a special item that increases the success rate of item enhancements. The Insight Sphere is typically used to reduce mana consumption or provide special effects. Both spheres are highly demanded by players, so offering them via NPC sales provides both user-friendliness and ease of management.

NPC Definition and Python Interface
In Metin2 Lobby systems, NPC interfaces are usually managed with Python GUI. The user menu is configured within UIScript files. Click events are defined in files like game.py located in the Py Root directory. Here, a new menu option is created, which redirects the user to the sphere purchase screen.

Integration with Game Core and DB Core
To sell spheres via NPC, item information must be validated through the DB Core, and operations must be performed on the Game Server. When a player purchases a sphere, this action synchronizes between the Auth Server and Game Server, delivering the item to the player's inventory. During this process, C++ Source Edit operations include adding items and control mechanisms.

Applications of Martysama and Metin2Dev
During the integration of such advanced systems, utilizing community resources such as Martysama or Metin2Dev can be helpful. These platforms offer code examples tailored to different Diff versions. For the Diff - 2098m version specifically, item IDs and function names should be examined to insert code snippets in the correct locations.

User Experience with Py GUI
To create a user-friendly interface, Py GUI tools are used. The player approaches the NPC, selects the spheres from the menu, and purchases them. During this process, item checks are performed on the Python Script side, the required coins or money are deducted, and the item is added to the inventory. Appropriate messages are shown to the user in case of errors.

Packaging and DistributionThe developed system can be integrated into the server by converting it into a Pack file. This package must be compatible with both Client SRC and Server SRC. Additionally, during Metin2 Compile processes, all files must be correctly compiled to avoid errors.

Note: This process includes modifications that may affect the stability and security of your Metin2 servers. It should be tested in a development environment before deployment to production.
 

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

Benzer konular

Geri
Üst Alt