Ejderha Ruleti 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 51

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Merhaba arkadaşlar.Ejderha Ruleti Sistemi ni paylaşıcam.Sistemin hakkında bilgi verem.Bu sistemde 8 tane tüp vardır.Bu tüpleri slotları kesip doldurunca size rasgele bi eşya veriyor.Verilen eşyayı quest den ayarlaya bilirsiniz

Anlatım.

ConstInfo py Açın ve Ekleyın

Kod:
uiRoulette = { "index" : 0, "kugel": 0, "max_points": 0, "points": 0}}[/FONT]

Game py Açın Importlara Ekleyın
Kod:
import uiRoulette

Aratın
Kod:
def __init__(self, stream):

En Altına Ekleyın
Kod:
self.Roulette = uiRoulette.RouletteWindow()

Aratın
Kod:
def Close(self):

En Altına Ekleyın

Kod:
if self.Roulette.IsShow(): self.Roulette.Open()

Aratın

Kod:
def __ServerCommand_Build(self):

Ekleyın

Kod:
"uiRoulette" : self.__uiRoulette, "uiRoulette_open" : self.__uiRouletteOpen,

En Alta Ekleyın

Kod:
def __uiRoulette(self, info): CMD = info.split("/") if CMD[0]=="index": constInfo.uiRoulette["index"] = int(CMD[1]) elif CMD[0]=="gui": constInfo.uiRoulette["kugel"] = int(CMD[1]) constInfo.uiRoulette["max_points"] = int(CMD[2]) constInfo.uiRoulette["points"] = int(CMD[3]) def __uiRouletteOpen(self): self.Roulette.Open()





Kodları ekledikten sonra Rar içindeki uiroulette.py yi rotta atıp paketleyin.roulette.epk,roulette.eix i packa atın ve Index e
roulette
pack/
ı ekleyin.Daha sonra drachenroulette.quest questi okutun

Index böyle olsun
o9ND8X.png






KANIT
vRAXVz.jpg


exp ve ödülleri questten ayarlıyabilirsinz exp şu anda 101 kodlu mobta yani köpekte

Güncelleme:

1. Open your questdirectory.
2. Insert there the drachenroulette.quest
3. Add the quest name to the quest_list/locale_list
4. Reload your quests and after that, restart the server

5. Prise
- In the quest you can find a function called config,
in this function are the following variables:
POINTS_FOR_SPHERE -> maximal points for one sphere
MAX_SPHERE_COUNT -> Don't change this, its constant.
MONSTER -> in this list, you can insert special monster, which should give more points than its level
REWARDS -> in this list, you can insert all items (stackable or not). These items will be randomly selected, if the button, when all spheres are full,
is clicked

6. the mob.level function:
Search in your .lua eg your questlib.lua for the mysql_query function. Put under this function the following code
and add the function 'mob.level' to your quest_functions

Kod:
[COLOR=#000088][FONT=Verdana]out[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]=[/FONT][/COLOR][COLOR=#000000][FONT=Verdana] mysql_query[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#008800][FONT=Verdana]"SELECT * FROM player.mob_proto;"[/FONT][/COLOR][COLOR=#666600][FONT=Verdana])[/FONT][/COLOR] [COLOR=#000000][FONT=Verdana]mob[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_data [/FONT][/COLOR][COLOR=#666600][FONT=Verdana]=[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]out[/FONT][/COLOR] [COLOR=#000000][FONT=Verdana]mob[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_idx [/FONT][/COLOR][COLOR=#666600][FONT=Verdana]={}[/FONT][/COLOR] [COLOR=#000000][FONT=Verdana]table[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]foreach[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#000088][FONT=Verdana]out[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]vnum[/FONT][/COLOR][COLOR=#666600][FONT=Verdana],[/FONT][/COLOR] [COLOR=#000088][FONT=Verdana]function[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#000000][FONT=Verdana]i[/FONT][/COLOR][COLOR=#666600][FONT=Verdana],[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]p[/FONT][/COLOR][COLOR=#666600][FONT=Verdana])[/FONT][/COLOR] [COLOR=#000000][FONT=Verdana] mob[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_idx[/FONT][/COLOR][COLOR=#666600][FONT=Verdana][[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]p[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]]=[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]i [/FONT][/COLOR] [COLOR=#000088][FONT=Verdana]end[/FONT][/COLOR] [COLOR=#666600][FONT=Verdana])[/FONT][/COLOR] [COLOR=#000000][FONT=Verdana]setmetatable[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#000000][FONT=Verdana]mob[/FONT][/COLOR][COLOR=#666600][FONT=Verdana],{[/FONT][/COLOR] [COLOR=#000000][FONT=Verdana] __index [/FONT][/COLOR][COLOR=#666600][FONT=Verdana]=[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]function[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#000088][FONT=Verdana]this[/FONT][/COLOR][COLOR=#666600][FONT=Verdana],[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]idx[/FONT][/COLOR][COLOR=#666600][FONT=Verdana])[/FONT][/COLOR] [COLOR=#000088][FONT=Verdana]ifthis[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_data[/FONT][/COLOR][COLOR=#666600][FONT=Verdana][[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]idx[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]]~=[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]nilthen returnfunction[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]([/FONT][/COLOR][COLOR=#000000][FONT=Verdana]moid[/FONT][/COLOR][COLOR=#666600][FONT=Verdana])[/FONT][/COLOR] [COLOR=#000088][FONT=Verdana]returnthis[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_data[/FONT][/COLOR][COLOR=#666600][FONT=Verdana][[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]idx[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]][[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]this[/FONT][/COLOR][COLOR=#666600][FONT=Verdana].[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]_idx[/FONT][/COLOR][COLOR=#666600][FONT=Verdana][[/FONT][/COLOR][COLOR=#000000][FONT=Verdana]moid[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]]][/FONT][/COLOR] [COLOR=#000088][FONT=Verdana]end else returnfunction[/FONT][/COLOR][COLOR=#666600][FONT=Verdana]()[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]return[/FONT][/COLOR][COLOR=#006666][FONT=Verdana]0[/FONT][/COLOR][COLOR=#000088][FONT=Verdana]end end end[/FONT][/COLOR] [COLOR=#666600][FONT=Verdana]} )[/FONT][/COLOR]

Fonksiyon bu yabancı forumdan alıntırdır... ne yapıcağnız yazıyor
Ejderha Ruleti Sistemi Nedir?
Metin2 özel sunucularında oynanan en heyecan verici sistemlerden biri olan Ejderha Ruleti, oyuncuların yüksek seviye item kazanma şansı elde ettiği bir şans oyunudur. Bu sistem, Martysama veya diğer C++ kaynak kodlarla geliştirilen Metin2 server src projelerinde sıkça kullanılır. Sistem, oyuncuların belirli itemlerle katıldığı bir rulet mekanizmasıdır. Her turda rastgele bir ödül belirlenir ve kazanan oyuncu bu ödülü alır.

Ejderha Ruleti Nasıl Çalışır?
Ejderha Ruleti, genellikle Python GUI ile tasarlanan arayüzlerle kullanıcı dostu bir yapıya sahiptir. Oyuncular, sistemde belirlenen itemleri yatırarak rulete katılabilirler. Bu itemler genellikle yüksek seviye silahlar, zırhlar veya bonus itemlerdir. Katılım sırasında bir miktar altın ya da özel para birimi de talep edilebilir. Sistem, her dönüşte rastgele bir kazanç seçer ve bu itemi kazanan kişiye verir.

Sistem Mimarisine Teknik Bakış
Ejderha Ruleti sistemi genellikle C++ ile yazılmış server-side bir yapıya sahiptir. Bu sistem, DB (veritabanı) ile entegre çalışarak itemlerin doğru şekilde takip edilmesini sağlar. Game ve Auth sunucuları arasında senkronize çalışan bu sistem, her turda güvenli bir şekilde item transferini gerçekleştirir. Py root klasöründe barındırılan Python scriptleri, kullanıcı arayüzü ve backend işlemleri için kullanılır.

Oyuncu Deneyimi ve Özellikleri
Sistem, kullanıcı dostu bir UIscript sayesinde kolayca kullanılabilir. Oyuncular, sisteme giriş yaparken hangi itemleri yatırdıklarını ve kaç kez döndürmek istediklerini seçebilirler. Her turun sonunda bir animasyon ve ses efekti ile sonuç gösterilir. Bu sayede oyuncu deneyimi artırılır. Ayrıca bazı sunucularda, Ejderha Ruleti kazançları PvP sistemlerinde kullanılmak üzere optimize edilir.

Ejderha Ruleti ile Kazançlı Çıkma Yolları
Rulet sistemi, genellikle yüksek değerli itemlerin dağıtımı için ideal bir yöntemdir. Oyuncular, düşük seviye itemlerle sisteme girerek büyük ödüller kazanabilirler. Ancak bu tamamen şansa dayalıdır. Sistem, Metin2 development süreçlerinde dikkatlice ayarlanmalıdır. Aksi halde sunucuda item enflasyonuna neden olabilir. Bu nedenle, sistemdeki itemlerin sınırlı olması ve tekrarlanabilir olmaması önemlidir.

Sistemin Avantajları
Ejderha Ruleti sistemi, Metin2 özel sunucularında oyuncu sadakati oluşturmak için etkili bir yöntemdir. Sistem sayesinde oyuncular daha fazla zaman harcarken, sunucuya olan ilgi artar. Aynı zamanda PvP sistemlerinde rekabeti artırmak için de kullanılabilir. Sistem, C++ source edit süreçlerinde kolayca entegre edilebilir ve özelleştirilebilir. Py GUI kullanarak geliştirilen arayüzler sayesinde görsel açıdan da etkileyici hale getirilebilir.

Sonuç
Ejderha Ruleti, Metin2 özel sunucularında hem eğlence hem de ödül dağıtımı için ideal bir sistemdir. Doğru kurulduğunda ve dengeli yönetildiğinde, sunucu popülerliğini artırmada büyük rol oynar. Bu sistem, hem C++ hem de Python tabanlı geliştirme süreçlerinde entegre bir yapıyla çalışır. Sunucu sahipleri, bu sistemi doğru şekilde uygulayarak oyuncular için unutulmaz bir deneyim yaratabilirler.


What is Dragon Roulette System?
One of the most exciting systems in Metin2 private servers, Dragon Roulette is a chance-based game that allows players to win high-level items. This system is frequently used in Metin2 server src projects developed with Martysama or other C++ source codes. The system operates as a roulette mechanism where players join with specific items. In each round, a random reward is selected, and the winning player receives this reward.

How Does Dragon Roulette Work?
Dragon Roulette typically features a user-friendly interface designed with Python GUI. Players can participate by depositing predetermined items into the system. These items are usually high-tier weapons, armor, or bonus items. Participation may also require some gold or a special currency. The system selects a random prize each spin and awards it to the winner.

Technical Overview of the System Architecture
The Dragon Roulette system generally operates on a server-side structure written in C++. It works integrated with the database (DB), ensuring accurate tracking of items. This system synchronizes between game and auth servers to securely handle item transfers during each round. Python scripts located in the py root folder manage both user interface and backend operations.

Player Experience and Features
Thanks to a user-friendly UIscript, the system is easy to use. Players can choose which items to deposit and how many spins they want. At the end of each round, an animation and sound effect display the result, enhancing the player experience. Additionally, on some servers, the rewards from Dragon Roulette are optimized for use in PvP systems.

Ways to Profit from Dragon Roulette
The roulette system is an ideal method for distributing high-value items. Players can enter the system with low-tier items and potentially win large rewards. However, success depends entirely on luck. The system must be carefully configured during Metin2 development processes. Otherwise, it could cause item inflation within the server. Therefore, it's important to ensure that items in the system are limited and non-repeating.

Benefits of the System
The Dragon Roulette system is an effective way to build player loyalty in Metin2 private servers. As players spend more time engaging with the system, interest in the server increases. Additionally, it can be used to enhance competition in PvP systems. The system can be easily integrated and customized during C++ source edit processes. With Py GUI interfaces, the visual appeal of the system can also be enhanced significantly.

Conclusion
Dragon Roulette is an ideal system for both entertainment and rewarding players in Metin2 private servers. When properly set up and managed with balance, it plays a significant role in increasing server popularity. This system operates with an integrated structure in both C++ and Python-based development processes. Server owners can create unforgettable experiences for their players by implementing this system correctly.
 

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

Benzer konular

Geri
Üst Alt