[Python]Kısayol Sistemi

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0


Sanırım bazıları bu sistemi paylaşmak istemiş fakat becerememiş.



17Xs56a.png



Oyun seçeneklerine ve f5 tuşuna eklemek isteyen konunun içinde ayrıntılı bir şekilde anlatılmıştır. Eksik var ise ö.m yada yorum olarak iletebilirsiniz.



<a href=" " target="_blank" class="link link--external" data-proxy-href="/proxy.php?link=http%3A%2F%2Fdosya.co%2Fypzgjeykdnrq%2FK%C4%B1sayolSistemi.rar.html&amp;hash=0d2cba4c35d016604dccd2dff46f99cb" rel="nofollow ugc noopener">
Kod:
http://dosya.co/ypzgjeykdnrq/KısayolSistemi.rar.html
</a>



<a href=" " target="_blank" class="link link--external" data-proxy-href="/proxy.php?link=https%3A%2F%2Fwww.virustotal.com%2Ftr%2Ffile%2Fd235ba9eb594da944d933aa3647f20786ff0a484325ba65ab0d7b48224aa2e30%2Fanalysis%2F1454276902%2F&amp;hash=70c4d4143a2774c251b7f91624518886" rel="nofollow ugc noopener">
Kod:
https://www.virustotal.com/tr/file/d235ba9eb594da944d933aa3647f20786ff0a484325ba65ab0d7b48224aa2e30/analysis/1454276902/
</a>


İçinde eklenişi açık ve net bir şekilde anlatılmıştır.
Alttan yorum atıp sistemin nereye eklenmesi istediğini yazarsanız konuya eklerim.
Metin2 Özel Sunucularında Python Kullanımı: Kısayol Sistemi

Metin2 özel sunucuları geliştirirken, oyuncu deneyimini artırmak ve oyun içi etkileşimi kolaylaştırmak adına birçok sistem geliştirilir. Bunlardan birisi de Python ile yazılmış dinamik kısayol sistemidir. Bu sistem sayesinde oyuncular, belirli tuş kombinasyonları ile komutlar veya eylemler tetikleyebilir. Özellikle Metin2 özel sunucularında PvP sistemler, C++ Script ve Python GUI gibi alanlarda gelişmiş sistemler entegre edilirken, kullanıcı dostu kısayollar büyük önem taşır.

Kısayol Sisteminin Amacı
Oyun içi eylemleri hızlandırmak, oyuncuların daha hızlı karar almasını sağlamak ve kullanıcı arayüzünü sade tutmak için bu sistem tasarlanmıştır. Python ile yazılmış bu sistem, py root dosyaları üzerinden çalışır ve uiscript ile entegre olur. Böylece hem client tarafında hem de server tarafında kontrol sağlanabilir.

Python ile Nasıl Uygulanır?
Python dilinin esnek yapısı sayesinde, Metin2 özel sunucularında geliştirilen Py GUI sistemleri ile kısayollar entegre edilebilir. Örneğin, bir oyuncu F1 tuşuna bastığında doğrudan PvP haritasına geçebilir ya da bir sandık açabilir. Bu tür işlemler, Python GUI üzerinde tanımlanarak, pack ile sunucuya aktarılır. Bu sistemde db ile kayıt tutulabilir, auth ve game server ile senkronize çalışabilir.

Örnek Kod Yapısı
Python ile yazılmış bir kısayol sisteminde temel yapı şu şekildedir:

import app
import ui

class ShortcutSystem(ui.ScriptWindow):

def __init__(self):
ui.ScriptWindow.__init__(self)

def OnKeyDown(self, key):
if key == app.DIK_F1:
self.OpenPvPMap()

def OpenPvPMap(self):
chat.AppendChat(chat.CHAT_TYPE_INFO, 'PvP Haritasina Yonlendiriliyorsunuz.')

Bu kod parçası sayesinde, oyuncu F1 tuşuna bastığında bir mesaj ile PvP haritasına yönlendirilir. Bu yapı, Metin2 server src dosyalarıyla uyumlu çalışır ve source edit işlemleri ile kolayca özelleştirilebilir.

Sistem Entegrasyonu ve Paketleme
Kısayol sistemi, martysama ve diğer Metin2 development araçları ile test edilip, pack dosyası olarak sunucuya yüklenebilir. Metin2Dev ve benzeri platformlarda geliştirilen sistemlerde, bu tür modüller core yapıya entegre edilerek, hem game hem de db core üzerinde etkili olabilir. Channel bazında farklı kısayollar tanımlanabilir ve her kanalda özelleştirilmiş sistemler çalıştırılabilir.

Sonuç
Python ile yazılmış kısayol sistemi, Metin2 özel sunucularında kullanıcı dostu ve verimli bir sistemdir. Hem PvP sistem hem de C++ sistem ile entegre çalışarak, oyuncuların oyun deneyimini artırır. üzerinden Metin2 geliştirme konusunda daha fazla bilgiye ulaşabilir, örnek sistemlerden yararlanabilirsiniz.


Using Python for Shortcut Systems in Metin2 Private Servers

When developing Metin2 private servers, various systems are implemented to enhance player experience and facilitate in-game interactions. One such system is the dynamic shortcut system written in Python. This allows players to trigger commands or actions through specific key combinations. Especially in Metin2 private servers where advanced systems like PvP systems, C++ Script, and Python GUI are integrated, user-friendly shortcuts are of great importance.

Purpose of the Shortcut System
The main purpose is to accelerate in-game actions, allow players to make faster decisions, and keep the user interface clean. This system, built with Python, works through py root files and integrates with uiscript. This enables control on both the client side and server side.

How to Implement with Python?
Thanks to the flexibility of Python, shortcut systems can be integrated into Py GUI systems developed for Metin2 private servers. For instance, pressing F1 might directly teleport the player to a PvP map or open a treasure chest. Such operations can be defined via Python GUI and transferred to the server via pack. The system can also store records in db and operate in sync with auth and game server.

Sample Code Structure
The basic structure of a shortcut system in Python looks like this:

import app
import ui

class ShortcutSystem(ui.ScriptWindow):

def __init__(self):
ui.ScriptWindow.__init__(self)

def OnKeyDown(self, key):
if key == app.DIK_F1:
self.OpenPvPMap()

def OpenPvPMap(self):
chat.AppendChat(chat.CHAT_TYPE_INFO, 'Redirecting to PvP Map.')

With this code snippet, when a player presses F1, they are redirected to a PvP map with a notification message. This structure works compatibly with Metin2 server src files and can be easily customized with source edit operations.

System Integration and Packaging
The shortcut system can be tested using tools like martysama and other Metin2 development utilities, then uploaded to the server as a pack file. In systems developed on platforms like Metin2Dev, such modules can be integrated into core structures and affect both game and db core levels. Different shortcuts can be defined per channel, allowing for customized systems in each channel.

Conclusion
The Python-based shortcut system is a user-friendly and efficient system in Metin2 private servers. Working integrally with PvP systems and C++ systems, it enhances the gaming experience for players. You can find more information about Metin2 development and sample systems at .
 

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

Geri
Üst Alt