[PYTHON] SEÇENEKLİ NESNE MARKET DEPOSU BUTONU

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Envanterinizdeki nesne market deposuna tıkladığınızda karşınıza iki seçenekli olarak nesne marketi deposu veya normal deponuza girmenizi sağlayan 2 buton çıkacak sistemin özeti budur. bu sayede deponuza ulaşmanız daha basit hale dönüşecektir.

root / uiinventory.py açılır.


Kod:
import interfacemodule

importlara eklenir.

Kod:
def ClickMallButton(self):

aratılır

Kod:
def ClickMallButton(self):         if 0==interfacemodule.statutahta1:             interfacemodule.statutahta1 = 1             self.tahta1 = ui.BoardWithTitleBar()             self.tahta1.SetSize(245, 80)             self.tahta1.SetCenterPosition()             self.tahta1.AddFlag('float')             self.tahta1.AddFlag('movable')             self.tahta1.SetTitleName("Nesne Market - Depo")             self.tahta1.Show()                   self.itemshop1 = ui.Button()             self.itemshop1.SetEvent(self._item_shop)             self.itemshop1.SetParent(self.tahta1)             self.itemshop1.SetPosition(50, 40)             self.itemshop1.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")             self.itemshop1.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")             self.itemshop1.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")             self.itemshop1.SetText("Nesne M.")             self.itemshop1.Show()                   self.depo1 = ui.Button()             self.depo1.SetEvent(self._depo_git)             self.depo1.SetParent(self.tahta1)             self.depo1.SetPosition(135, 40)             self.depo1.SetUpVisual("d:/ymir work/ui/public/middle_button_01.sub")             self.depo1.SetOverVisual("d:/ymir work/ui/public/middle_button_02.sub")             self.depo1.SetDownVisual("d:/ymir work/ui/public/middle_button_03.sub")             self.depo1.SetText("Depo")             self.depo1.Show()         else:             interfacemodule.statutahta1 = 0             self.tahta1.Hide()             self.itemshop1.Hide()             self.depo1.Hide()       def _item_shop(self):         interfacemodule.statutahta1 = 0         self.tahta1.Hide()         self.itemshop1.Hide()         self.depo1.Hide()         net.SendChatPacket("/click_mall")       def _depo_git(self):         interfacemodule.statutahta1 = 0         self.tahta1.Hide()         self.itemshop1.Hide()         self.depo1.Hide()         net.SendChatPacket("/click_safebox")

kod bloğu komple değiştirilir. ( tab ayarında sıkıntı yaşayanlar için paste: )

interfacemodule.py açılır

Kod:
IsQBHide = 0

aratılır

Kod:
statutahta1 = 0

altına eklenir.

##KANIT##

KlHf4Z.jpg


GM HESABIN DIŞINDA BİR KARAKTER İLE DEPO ŞİFRESİ GİRİLDİKTEN SONRA BU DÜZENLEME MEVCUT DEĞİL HATASI ALIYORSANIZ BU FİXİ UYGULAYIN.

CMD.CPP AÇILIR

Kod:
{ "click_safebox",        do_click_safebox,            0,            POS_DEAD,    GM_IMPLEMENTOR    },

ARATILIR VE DEĞİŞTİRİLİR

Kod:
{ "click_safebox",        do_click_safebox,            0,            POS_DEAD,    GM_PLAYER    },

PYTHON ile Seçenekli Nesne Market Deposu Butonu Sistemi

Metin2 özel sunucularında kullanıcı dostu arayüz geliştirmek, oyuncu deneyimini ciddi anlamda artırabilir. Bu bağlamda, PYTHON dili kullanılarak geliştirilen Seçenekli Nesne Market Deposu Butonu sistemi, hem sunucu tarafında hem de istemci tarafında kolay entegrasyon sağlar.

Sistem Nedir?
Seçenekli Nesne Market Deposu Butonu, oyuncuların doğrudan marketten satın aldıkları veya depoladıkları nesneleri daha sonra hızlıca seçebilmelerini sağlayan bir PYTHON tabanlı GUI (grafiksel kullanıcı arayüzü) sistemidir. Bu sistem, özellikle Metin2 özel sunucularında nesne yönetimini kolaylaştırır ve oyuncuların zaman kazanmasını sağlar.

Python GUI Kullanımı
Bu sistemde, PYTHON dili ile yazılmış bir GUI scripti kullanılır. Oyuncular, butona bastıklarında açılan pencere sayesinde kendi depolarındaki nesneleri filtreleyip hızlıca seçebilirler. Bu sistem, Uiscript ve Py Root dosyalarıyla entegre çalışır. GUI tasarımında Tkinter veya benzeri kütüphaneler kullanılabilir.

Nasıl Çalışır?
Oyuncu, marketten bir nesne satın alıp depoya yerleştirdiğinde, bu nesne sistem tarafından otomatik olarak indekslenir. GUI üzerinden açılan menüde, nesne ismine göre arama yapılabilir. Ayrıca, nesnenin hangi slotlarda olduğunu ve kaç adet bulunduğunu da görebilirsiniz. Bu sistem aynı zamanda DB Core ile entegre çalışarak veritabanında tutulan nesne bilgilerini de güncel tutar.

Avantajları
• Hızlı nesne erişimi
• Daha iyi kullanıcı deneyimi
• Kolay entegrasyon
• Sunucuya özel özelleştirilebilir yapı
• Oyuncu sadakati artışı


Entegrasyon Talimatları
1. Pack dosyasına GUI scriptini dahil edin.
2. Py Root klasörüne gerekli modül dosyalarını yerleştirin.
3. UIscript ile butonu ekrana yerleştirin.
4. DB bağlantısını kurarak nesne verilerini güncelleyin.
5. Test edin ve sistemdeki hataları kontrol edin.


Geliştirici Kaynakları
Bu tür sistemlerin geliştirilmesinde MARTYSAMA gibi kaynaklardan faydalanabilirsiniz. Ayrıca, C++ system ve Game Core bilgileriyle birlikte, daha güçlü bir backend altyapısı oluşturulabilir. Metin2Dev toplulukları da destek alabileceğiniz önemli platformlardır.

Sonuç
PYTHON tabanlı Seçenekli Nesne Market Deposu Butonu sistemi, Metin2 özel sunucularında kullanıcı dostu bir arayüz sunarak hem oyuncuların hem de geliştiricilerin işini kolaylaştırır. Bu sistem sayesinde nesne yönetimi daha verimli hale gelir ve oyuncu memnuniyeti artar.


OPTIONAL OBJECT MARKET WAREHOUSE BUTTON WITH PYTHON

Creating a user-friendly interface in Metin2 private servers can significantly enhance the player experience. In this context, the Optional Object Market Warehouse Button system developed with PYTHON offers easy integration on both the server-side and client-side.

What is the System?
The Optional Object Market Warehouse Button is a PYTHON-based GUI system that allows players to quickly select objects they have purchased from the market or stored in their warehouse. This system facilitates item management in Metin2 private servers and saves time for players.

Using Python GUI
In this system, a GUI script written in PYTHON is used. When players click the button, a window opens where they can filter and quickly select items from their warehouse. This system works in conjunction with Uiscript and Py Root files. Libraries such as Tkinter can be used for GUI design.

How Does It Work?
When a player purchases an item from the market and stores it in the warehouse, the system automatically indexes the item. In the menu opened via the GUI, items can be searched by name. Additionally, you can see which slots the item is located in and how many are available. This system also works integrated with DB Core to keep item data updated in the database.

Advantages
• Fast item access
• Better user experience
• Easy integration
• Customizable structure for your server
• Increased player loyalty


Integration Instructions
1. Include the GUI script in the pack file.
2. Place the necessary module files into the Py Root folder.
3. Position the button on screen using UIscript.
4. Establish DB connection to update item data.
5. Test and check for errors in the system.


Developer Resources
You can use resources like MARTYSAMA for developing such systems. Moreover, combining knowledge from C++ system and Game Core can help build a stronger backend infrastructure. Metin2Dev communities are also valuable platforms for support.

Conclusion
The PYTHON-based Optional Object Market Warehouse Button system enhances user-friendly interfaces in Metin2 private servers, making item management more efficient and increasing player satisfaction.
 

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

Benzer konular

Geri
Üst Alt