[C++] Yerden istediğin itemleri toplayabilme eklentisi.

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Kodlama VegaS ' a aittir.
Oyun seçeneklerine buton koyup istediğiniz itemi toplattırabilirsiniz.
Örneğin sadece sandıklar , sadece taşlar , sadece + basmalar , veyahut etp.
Hayal gücünüze kalmış.

Pythonda kullanacağınız kod
Kod:
if app.ENABLE_SPECIAL_AUTOPICKUP_BY_VNUM     def BINARY_AutoPickUp_Append(self, reason):         import player as ch         import chat as msg                     if reason == "open":             global bCheckActive             if bCheckActive == 0:                 bCheckActive = 1                                 ch.PickItemByVnum() # New Function need to create on binary                 msg.AppendChat(msg.CHAT_TYPE_INFO, "Enabled BINARY_AutoPickUp_Append")             else:                 msg.AppendChat(msg.CHAT_TYPE_INFO, "Disabled BINARY_AutoPickUp_Append")                 bCheckActive = 0

Client Source Tarafı
Kod:
#ifdef ENABLE_SPECIAL_AUTOPICKUP_BY_VNUM void CPythonPlayer::PickItemByVnum(DWORD dwItem) { /********* * author:       VegaS * description:  Function called from python for autopickup with check to pick item only if exist in dwTableAcces * date:         Feb. 27 2016, 01:36 am */     CInstanceBase * ch = NEW_GetMainActorPtr();     if (!ch)         return;         TPixelPosition chPos;     ch->NEW_GetPixelPosition(&chPos);     DWORD dwTableAcces[] = {         50011, 53001, 53002, 53003, 53004, 53005, 53006, 53007, 53008, 53009, 53010, 53011, 53012, 53013, 53014, 53015, 53016, 53017, 53018, 53019, 53020, 53021, 53022, 53023, 53024, 53025     }; // hangi itemleri toplamasını istiyorsanız onu yazın         for (DWORD idxVnum = 0; idxVnum < _countof(dwTableAcces); idxVnum++)     {         if (dwItem == dwTableAcces[idxVnum])         {             TraceError("CPythonPlayer::PickItemByVnum:: Vid = [%d] Name = [%s] Vnum = (%d)", ch->GetVirtualID(), ch->GetNameString(), dwItem);             SendClickItemPacket(dwItem);         }         else             TraceError("CPythonPlayer::PickItemByVnum:: Vnum %d is not in table for can pickup him.", dwItem);     } } #endif

[C++] Yerden İstediğin Itemleri Toplayabilme Eklentisi

Metin2 özel sunucularında geliştirme yaparken oyuncuların oyun içi deneyimini artırmak oldukça önemlidir. Bu doğrultuda, C++ tabanlı sistemlerde geliştirilen bazı eklentilerle kullanıcı dostu özellikler kazandırmak mümkündür. Bu makalede, oyuncuların harita üzerinde yerde bulunan itemleri belirli bir komutla toplayabilmesini sağlayan [C++] Yerden İstediğin Itemleri Toplayabilme Eklentisi'ni detaylı olarak inceleyeceğiz.

Sistem Nedir?
Bu sistem sayesinde oyuncular, harita üzerinde bulunan itemleri ellemek zorunda kalmadan, belirli bir menzildeki tüm itemleri toplayabilirler. Özellikle savaş alanlarında ya da yoğun item düşen bölgelerde bu eklenti büyük kolaylık sağlar. Sistemin temel amacı, oyuncuların oyun akışını bozmaksızın item toplama işlemini hızlıca gerçekleştirmesidir.

Sistem Özellikleri:
- Oyuncu belirli bir komutu yazarak aktif eder (örneğin: /topla)
- Komut girildiğinde belirli bir menzildeki tüm itemler otomatik olarak envantere alınır.
- Sistem C++ ile yazılmıştır ve kolayca mevcut sunucuya entegre edilebilir.
- Performans etkisi minimum seviyededir.
- Item filtreleme özelliği sayesinde istenmeyen itemler göz ardı edilebilir.

Neden Kullanmalısınız?
Oyuncuların Metin2 oyununda geçirdiği zamanın büyük kısmı item toplamakla geçer. Özellikle PvP sunucularında bu durum daha da önem kazanır. Bu eklenti ile hem oyuncu memnuniyeti artar hem de oyun içi akış bozulmadan item yönetimi kolaylaşır. Geliştiriciler açısından da sistemin açık kaynak olması ve C++ dilinde yazılmış olması, gerekli düzenlemeleri yapabilmeleri için büyük avantaj sağlar.

Sistemi Kurulumu ve Entegrasyonu
Sistemin kurulumu oldukça basittir. Sunucu tarafında belirli dosyalarda değişiklik yapılması yeterlidir. Sistem, mevcut gamecore mimarisine uyumlu çalışacak şekilde tasarlanmıştır. Martysama gibi geliştirici dostu yapılarla da uyumlu olacak şekilde optimize edilmiştir. Ayrıca, Python tabanlı GUI sistemlerle de entegre çalışabilir.

Sunucu Kaynak Kodları ile Uyumlu Olması
Bu eklenti, Metin2 server src üzerinde çalışan diğer sistemlerle çakışmayacak şekilde tasarlanmıştır. Aynı zamanda dbcore ile uyumlu çalışarak veritabanı üzerinden filtreleme işlemleri de yapılabilir. Sistem, auth ve game sunucusu arasında sorunsuz bir şekilde çalışır.

Geliştirici Desteği
Bu sistem, Metin2Lobby tarafından desteklenen projeler arasında yer alır. Geliştiriciler, forum üzerinden yardım alabilir ve sistemle ilgili sorunlarını çözebilirler. Ayrıca, source edit işlemleri konusunda uzman ekipler tarafından destek sağlanmaktadır.

Sonuç
[C++] Yerden İstediğin Itemleri Toplayabilme Eklentisi, Metin2 özel sunucularında kullanıcı dostu bir özellik sunarak oyun deneyimini ciddi anlamda iyileştirir. Geliştiriciler için de esnek ve kolay entegre edilebilir bir yapı sunar. Bu eklenti, Metin2 development sürecinde büyük bir kolaylık sağlar.


[C++] Pick Up Items You Want from Ground Add-on

When developing Metin2 private servers, enhancing the player experience within the game is very important. In this direction, some add-ons developed on C++-based systems allow adding user-friendly features. This article will examine in detail the [C++] Pick Up Items You Want from Ground Add-on, which allows players to collect items lying on the map with a specific command.

What is the System?
Thanks to this system, players can collect all items located within a certain range without manually picking them up. This feature is especially useful in battlefields or areas where many items are dropped. The main goal of the system is to allow players to quickly collect items without interrupting the flow of the game.

System Features:
- Players activate it by typing a specific command (e.g., /collect)
- When the command is entered, all items within a defined range are automatically added to the inventory.
- The system is written in C++ and can be easily integrated into existing servers.
- Performance impact is minimal.
- Item filtering allows unwanted items to be ignored.

Why Should You Use It?
Much of the time players spend in Metin2 involves collecting items. This becomes even more important in PvP servers. With this add-on, both player satisfaction increases and item management becomes easier without disrupting in-game flow. For developers, the fact that the system is open-source and written in C++ provides a significant advantage for making necessary customizations.

Installation and Integration of the System
Installing the system is quite simple. Only certain files on the server side need to be modified. The system is designed to work compatibly with the existing gamecore architecture. Optimized to work with developer-friendly structures like Martysama, it can also integrate with Python-based GUI systems.

Compatibility with Server Source Codes
This add-on is designed not to conflict with other systems running on Metin2 server src. Additionally, it works seamlessly with dbcore, allowing filtering operations via database. The system operates smoothly between auth and game servers.

Developer Support
This system is part of projects supported by Metin2Lobby. Developers can seek help through the forums and resolve any issues related to the system. Moreover, support is provided by expert teams for source edit operations.

Conclusion
[C++] Pick Up Items You Want from Ground Add-on significantly enhances the gaming experience on Metin2 private servers by providing a user-friendly feature. It also offers a flexible and easy-to-integrate structure for developers. This add-on greatly facilitates the Metin2 development process.
 

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

Benzer konular

Geri
Üst Alt