EyeTR [Metin2 Ban Questi Engelleme Guesti Eklemek]

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Merhaba arkadaşlar. Yine ben , yine ben ..

Serverinizde reklam yapılıyor , 2saat atakserver indir , ayar yap falan derken zaman kaybı yaşıyorsunuz. Sizler için questimizi hazırladık. Yardımcı olursak ne mutlu bizlere.!

KURULUM:

İndirdiğiniz Dosyayı Oyun Filezillanızdan

PHP- Kodu:
cd /usr/game/share/locale/turkey/quest
içerisine atınız.

Ardından Puty login olunuz. Karşınıza gelen ekrana

PHP- Kodu:
cd /usr/game/share/locale/turkey/quest ./qc banned.quest
yazıp ENTER'e basın. Ardından reboot atın aktif olacaktır...




Virustotal;




EyeTR [Metin2 Ban Questi Engelleme Guesti Eklemek] | Metin2 Lobby

Metin2 sunucularında quest sistemleri, oyuncuların oyun içinde ilerlemesini ve etkileşimde bulunmasını sağlayan temel unsurlardandır. Ancak bazı özel durumlarda, guest karakterlerin belirli questlere erişimini engellemek veya ban gibi cezalarla sınırlamak isteyebilirsiniz. Bu rehberde, EyeTR tarafından geliştirilen özel bir quest yapısı üzerinden ban durumuna düşen kullanıcıların quest kullanımını nasıl engelleyebileceğinizi ve guest karakterlerin quest sistemine erişimini nasıl kısıtlayabileceğinizi detaylıca ele alacağız.

Metin2 Quest Sistemi Nedir?
Quest sistemleri, Metin2 sunucularında oyuncuların belirli görevleri yerine getirmesiyle gelişim göstermesini sağlar. Questler genellikle Lua dilinde yazılmaktadır ve quest state, trigger, timer, flag gibi yapılarla yönetilir. Bu sistemler sayesinde oyunculara özel ödüller verilebilir, görev zincirleri oluşturulabilir ve oyun içi deneyim zenginleştirilebilir.

Ban Durumunda Quest Erişimi Nasıl Engellenir?
Bir oyuncu ban yediğinde, sunucudaki tüm aktiviteleri engellenmeli ya da sınırlanmalıdır. Quest sistemine erişimi de buna dahil edebilirsiniz. Bunun için quest dosyasında, oyuncunun banlı olup olmadığını kontrol eden bir fonksiyon tanımlamalısınız. Örneğin:

Kod:
[B]if pc.is_banned() then[BR][/BR]syschat('Banlı kullanıcılar quest kullanamaz!')[BR][/BR]return[BR][/BR]end


Bu kod, oyuncu banlıysa quest çalıştırmasına izin vermeyecek ve ekrana uyarı mesajı basacaktır.

Guest Karakterler İçin Quest Kısıtlaması
Guest hesaplar, genellikle sunucuya kayıt olmadan gelen kullanıcılar içindir. Bu kullanıcılar için quest sistemini kapatmak isterseniz, quest dosyanızda guest olup olmadığını kontrol eden bir yapı kurmalısınız. Örnek:

Kod:
[B]if pc.is_guest() then[BR][/BR]syschat('Guest kullanıcılar quest kullanamaz!')[BR][/BR]return[BR][/BR]end


Bu yapı sayesinde guest kullanıcılar quest başlatamaz, devam ettiremez veya ödül alamaz.

Lua Script ile Gelişmiş Kısıtlama
Lua tabanlı quest sistemlerinde, kullanıcı durumu ve yetki seviyesi gibi daha gelişmiş kontroller yapılabilir. Örneğin, bir questin başlamadan önce belirli bir flag'ın kontrol edilmesi sağlanabilir:

Kod:
[B]when login with not pc.is_banned() and not pc.is_guest()


Bu şekilde quest sadece aktif ve banlı olmayan gerçek kullanıcılar için başlatılabilir.

Quest Dosyası Yapılandırması
Quest dosyaları genellikle server_data/quest dizininde bulunur. Her quest bir Lua dosyasıdır ve begin, end, state gibi anahtar sözcüklerle çalışır. Quest yazarken dikkat etmeniz gereken önemli hususlardan biri, kullanıcı türünü ve durumunu kontrol eden koşulların doğru yerleştirilmesidir.

Örnek Quest Yapısı
Kod:
[B]quest ban_check begin[BR][/BR]    state start begin[BR][/BR]        when login with not pc.is_banned() and not pc.is_guest() begin[BR][/BR]            -- Quest başlatma işlemleri burada yapılır[BR][/BR]        end[BR][/BR]        when login with pc.is_banned() begin[BR][/BR]            syschat('Banlandığınız için quest kullanamazsınız.')[BR][/BR]        end[BR][/BR]        when login with pc.is_guest() begin[BR][/BR]            syschat('Guest kullanıcılar quest kullanamaz.')[BR][/BR]        end[BR][/BR]    end[BR][/BR]end


Yukarıdaki yapı, login esnasında kullanıcının durumuna göre farklı işlemler yapar.

Hata Ayıklama ve Debug
Quest geliştirme sırasında karşılaşılan sorunlar genellikle debug komutları ile çözülür. Sunucu loglarında hata takibi yaparak questin nerede durduğunu ve neden çalışmadığını analiz edebilirsiniz. quest debug modu aktifse, hata mesajları loglara yazılır.

Sonuç
Metin2 üzerinde quest sistemlerini etkin ve güvenli hale getirmek, hem oyuncu deneyimini artırır hem de sunucu güvenliğini güçlendirir. Ban ve guest kullanıcıları quest sisteminden dışlayarak, kötü niyetli kullanıcıları ve spam hesaplarını sınırlayabilirsiniz. Lua tabanlı scriptler sayesinde bu işlemler çok daha esnek ve detaylı hale getirilebilir. Metin2Lobby olarak,.quest geliştirme konusunda size yardımcı olacak kaynaklara ulaşabilirsiniz.


EyeTR [Metin2 Ban Quest Blocking Guest Adding] | Metin2 Lobby

Metin2 servers, quest systems are fundamental elements that allow players to progress and interact within the game. However, in certain special cases, you may want to block guest characters from accessing specific quests or restrict them with bans. In this guide, we will detail how to block quest usage for banned users and how to restrict guest character access to the quest system through a custom quest structure developed by EyeTR.

What is the Metin2 Quest System?
Quest systems allow players on Metin2 servers to develop by completing specific missions. These quests are generally written in Lua language and managed using structures such as quest state, trigger, timer, flag. Through these systems, special rewards can be given to players, mission chains can be created, and in-game experience can be enriched.

How to Block Quest Access When User is Banned?
When a player receives a ban, all their activities on the server should be blocked or limited. You can also include quest system access in this restriction. For this, you must define a function in your quest file that checks whether the user is banned. Example:

Kod:
[B]if pc.is_banned() then[BR][/BR]syschat('Banned users cannot use quests!')[BR][/BR]return[BR][/BR]end


This code will prevent the quest from running if the player is banned and display a warning message on screen.

Quest Restrictions for Guest Characters
Guest accounts are typically for users who enter the server without registering. If you wish to disable the quest system for these users, you must set up a structure in your quest file that checks whether the user is a guest. Example:

Kod:
[B]if pc.is_guest() then[BR][/BR]syschat('Guest users cannot use quests!')[BR][/BR]return[BR][/BR]end


Through this structure, guest users cannot start, continue, or receive rewards from quests.

Advanced Restrictions with Lua Script
In Lua-based quest systems, more advanced controls like user status and permission levels can be implemented. For example, you can ensure a flag is checked before starting a quest:

Kod:
[B]when login with not pc.is_banned() and not pc.is_guest()


With this method, the quest will only be initiated for active and non-banned real users.

Quest File Configuration
Quest files are usually located under server_data/quest. Each quest is a Lua file and operates with keywords like begin, end, state. An important aspect to consider when writing quests is ensuring conditions checking user type and status are placed correctly.

Sample Quest Structure
Kod:
[B]quest ban_check begin[BR][/BR]    state start begin[BR][/BR]        when login with not pc.is_banned() and not pc.is_guest() begin[BR][/BR]            -- Quest initiation processes go here[BR][/BR]        end[BR][/BR]        when login with pc.is_banned() begin[BR][/BR]            syschat('You cannot use quests because you are banned.')[BR][/BR]        end[BR][/BR]        when login with pc.is_guest() begin[BR][/BR]            syschat('Guest users cannot use quests.')[BR][/BR]        end[BR][/BR]    end[BR][/BR]end


The above structure performs different actions based on the user's status during login.

Debugging and Error Handling
Issues encountered during quest development are often resolved using debug commands. By tracking logs on the server, you can analyze where the quest stops and why it fails to run. If quest debug mode is active, error messages are written into logs.

Conclusion
Making quest systems on Metin2 efficient and secure enhances both player experience and server security. By excluding banned and guest users from the quest system, you can limit malicious users and spam accounts. With Lua-based scripts, these operations can become more flexible and detailed. Visit Metin2Lobby to find resources that assist you in quest development.​
 

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

Benzer konular

Geri
Üst Alt