Detaylı ChatBan l Quest Dosyası

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Merhaba arkadaşlar,
Oyun içi ChatBan atabilmeniz için quest paylaşacağım.
Öncelikle Quest Kodları
Kod:
quest banchatban begin    state start begin        when login with pc.is_gm() begin         send_letter("GM: Chat Ban")         end                  when button or info begin             say_title(" Ban Paneli ")             say(" Ne yapmak istiyorsun? ")         local panel = select (" Chat Ban " , " Kapat  ")                 if panel == 1 then                 say_title(" Chat Ban ")                 say(" Kime ban atmak istiyorsun? ")                 local isim = input()                 if isim == "" or isim == "0" then                 say(" Geçersiz isim. ")                  return                  end                 say(" Ne kadar zaman ")                 say(" Ban kaldırmak için 0 ")                 local sure = input()                 say(" "..sure.." Saat/Gün/Hafta/Ay/Chat Ban Kaldır ? ")                 local suredilim = select ( " Saat " , " Gün " , " Hafta  " , " Ay " , " Ban Kaldır "," Kapat ")                 if suredilim == 1 then                 local surehesapla = sure*60*60                 say_title(" Chat Ban ")                 say(" Eminmisin? ")                 local karar = select ( " Evet " , " Hayır ")                 if karar == 1 then                 say_title(" Chat Ban ")                 say(" "..sure.." Saat Ban Atıldı ")                 command("block_chat "..isim.." "..surehesapla.."")                 elseif karar == 2 then                 say_title(" Chat Ban ")                 say(" Nasıl istersen. ")                 end                 elseif suredilim == 2 then                 local surehesapla = sure*60*60*24                 say_title(" Chat Ban ")                 say(" Eminmisin? ")                 local karar = select ( " Evet " , " Hayır ")                 if karar == 1 then                 say_title(" Chat Ban ")                 say(" "..sure.." Gün Ban Atıldı ")                 command("block_chat "..isim.." "..surehesapla.."")                 elseif karar == 2 then                 say_title(" Chat Ban ")                 say(" Nasıl istersen. ")                 end                 elseif suredilim == 3 then                 local surehesapla = sure*60*60*24*7                 say_title(" Chat Ban ")                 say(" Eminmisin? ")                 local karar = select ( " Evet " , " Hayır ")                 if karar == 1 then                 say_title(" Chat Ban ")                 say(" "..sure.." Hafta Ban Atıldı ")                 command("block_chat "..isim.." "..surehesapla.."")                 elseif karar == 2 then                 say_title(" Chat Ban ")                 say(" Nasıl istersen. ")                  end                 elseif suredilim == 4 then                 local surehesapla = sure*60*60*24*7*30                 say_title(" Chat Ban ")                 say(" Eminmisin? ")                 local karar = select ( " Evet " , " Hayır ")                 if karar == 1 then                 say_title(" Chat Ban ")                 say(" "..sure.." Ay Ban Atıldı ")                 command("block_chat "..isim.." "..surehesapla.."")                 elseif karar == 2 then                 say_title(" Chat Ban ")                 say(" Nasıl istersen. ")                  end                 elseif suredilim == 5 then                 local surehesapla = sure                 say_title(" Chat Ban ")                 say(" Eminmisin? ")                 local karar = select ( " Evet " , " Hayır ")                 if karar == 1 then                 say_title(" Chat Ban ")                 say(" "..isim.." Chat Ban kaldırıldı. ")                 command("block_chat "..isim.." "..surehesapla.."")                 elseif karar == 2 then                 say_title(" Chat Ban ")                 say(" Nasıl istersen. ")                  end                 elseif suredilim == 6 then                 say_title(" Chat Ban ")                 say(" Nasıl istersen ")                 end                 elseif panel == 3 then                 say_title(" Chat Ban ")                 say(" Nasıl istersen. ")             end         end     end end

Verdiğim questi kaydedip " usr/game/share/locale/turkey/quest " içerisine atın.
Puttye gelin ve;
cd usr/game/share/locale/turkey/quest [ENTER]
./qc questismi.quest [ENTER]
Yapın ve daha sonra oyunda gm hesabınız ile " /reload q " komutunu verin ya da ReBoot atın.
İşlem tamamdır iyi günlerde kullanın

Kod:
Arşivden çıkarılmadır.

Detaylı ChatBan l Quest Dosyası

Metin2 Lobby olarak Metin2 sunucularında kullanılan gelişmiş quest sistemlerinden biri olan ChatBan l Quest dosyası, oyuncuların sohbet engeliyle karşılaşmalarını engellemek ya da yönetmek amacıyla geliştirilmiş özel bir quest yapısıdır. Bu yazıda, ChatBan l Quest dosyasının yapısını, nasıl çalıştığını ve Metin2.quest geliştirme sürecinde nasıl kullanılabileceğini detaylıca ele alacağız.

ChatBan l Quest Nedir?
Metin2 sunucularında bazı oyuncular, kurallara aykırı davranışlar sergilediği için sohbetten banlanabilir. Ancak bu banlar bazen otomatik ya da geçici olabilir. ChatBan l Quest, oyuncunun ban süresinin bittiğini kontrol eden ve gerekirse sohbet yetkisini tekrar açan bir sistemdir. Quest dosyası genellikle Lua diliyle yazılmıştır ve Metin2 sunucusunun quest sistemine entegre edilir.

Quest Yapısı ve Fonksiyonları
Bu quest dosyası, genellikle bir timer mekanizması üzerinden çalışır. Quest başlatıldığında, belirli bir süre boyunca oyuncunun sohbet ban durumu izlenir. Ban süresi dolunca, quest otomatik olarak banı kaldırır ve oyuncuya bir bildirim gönderir. Bu işlem sırasında flag ve state gibi quest yapıları kullanılır. Örneğin:

- quest chatban_l begin
- state start begin
- when login or enter begin
- if player.getqf('chatban_time') > get_time() then
- say('Sohbet banınız aktif. Lütfen bekleyiniz.')
- else
- player.setqf('chatban_status', 0)
- syschat('Sohbet banınız kaldırıldı.')

Quest Editör ile ChatBan l Quest Kullanımı
Metin2.quest editörlerinden biri olan MartySama Quest ya da Metin2Dev Quest gibi platformlar sayesinde, ChatBan l Quest dosyası kolayca düzenlenebilir. Quest scriptleri Lua dilinde olduğu için, geliştiricilerin bu dile hâkim olması gerekir. Hatalar, quest debug işlemleriyle tespit edilip düzeltilmelidir.

Quest Reward ve Özellikleri
ChatBan l Quest dosyası, ban kaldırma işleminin yanı sıra, oyuncuya ödül verebilir. Örneğin, ban süresi tamamlandığında bir item verilebilir. Bu reward sistemleri, quest reward fonksiyonları aracılığıyla tanımlanır. Oyuncu sohbet banını kaldırınca küçük bir ödülle ödüllendirilir.

NPC ve Trigger Entegrasyonu
Quest, belirli bir NPC üzerinden tetiklenebilir. Oyuncu NPC ile etkileşime girdiğinde, ban durumu kontrol edilir ve gerekirse işlem yapılır. Bu tür trigger sistemleri, quest akışını daha etkileşimli hale getirir. Mob tabanlı quest sistemleriyle de entegre edilebilir; ancak ChatBan l Quest genellikle doğrudan kullanıcıya yöneliktir.

Günlük ve Zincirleme Quest Sistemleriyle Uyum
ChatBan l Quest, daily quest veya chain quest yapılarıyla da entegre olabilir. Örneğin, bir günlük görevde ceza alan oyuncu, bu quest sayesinde banını kısa sürede kaldırabilir. Böylece hem disiplin korunur hem de oyuncu deneyimi artırılır.

Sonuç
ChatBan l Quest, Metin2 sunucularında oyun içi disiplin yönetimini kolaylaştıran, aynı zamanda kullanıcı dostu bir sistemdir. Doğru şekilde yapılandırıldığında, hem moderasyon hem de oyuncu memnuniyeti açısından faydalıdır. Metin2.quest geliştirme süreçlerinde sıkça kullanılan bu sistem, Metin2 Lobby'de paylaşılan örnek quest dosyalarıyla daha da yaygınlaşmaktadır.


Detailed ChatBan l Quest File

Metin2 Lobby presents the ChatBan l Quest file as one of the advanced quest systems used on Metin2 servers, designed to prevent or manage chat blocks encountered by players. In this article, we will examine in detail the structure of the ChatBan l Quest file, how it operates, and how it can be used within the Metin2 quest development process.

What is ChatBan l Quest?
On Metin2 servers, certain players may be banned from chatting due to rule violations. However, these bans can sometimes be temporary or automatic. The ChatBan l Quest is a system that checks whether a player's ban period has ended and re-enables chat privileges accordingly. The quest file is typically written in Lua and integrated into the Metin2 server's quest system.

Structure and Functions of the Quest
This quest file usually operates through a timer mechanism. Once initiated, the quest monitors the player's chat ban status for a specific duration. Upon expiry of the ban time, the quest automatically removes the ban and sends a notification to the player. During this process, quest structures like flag and state are used. For example:

- quest chatban_l begin
- state start begin
- when login or enter begin
- if player.getqf('chatban_time') > get_time() then
- say('Your chat ban is active. Please wait.')
- else
- player.setqf('chatban_status', 0)
- syschat('Your chat ban has been lifted.')

Using ChatBan l Quest with Quest Editors
Thanks to platforms like MartySama Quest or Metin2Dev Quest, the ChatBan l Quest file can be easily modified. Since quest scripts are written in Lua, developers must have proficiency in the language. Errors can be detected and corrected through quest debug processes.

Quest Rewards and Features
The ChatBan l Quest file can also award rewards to the player after removing the ban. For instance, upon removal of the ban, a item can be given to the player. These reward systems are defined via quest reward functions. Players are rewarded with a small gift when they remove their chat ban.

NPC and Trigger Integration
The quest can be triggered via a specific NPC. When a player interacts with the NPC, their ban status is checked, and the necessary action is taken. Such trigger systems make the quest flow more interactive. It can also integrate with mob-based quest systems; however, ChatBan l Quest is generally directed toward the user directly.

Compatibility with Daily and Chain Quest Systems
The ChatBan l Quest can also integrate with daily quest or chain quest structures. For example, a player penalized in a daily quest can quickly lift their ban using this quest. This way, both discipline and player experience are enhanced.

Conclusion
ChatBan l Quest is a user-friendly system that simplifies in-game discipline management on Metin2 servers. When properly configured, it benefits both moderation and player satisfaction. Widely used in Metin2.quest development processes, this system gains further popularity through example quest files shared on Metin2 Lobby.
 

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

Geri
Üst Alt