Daha Önce Açıldıysa KB. Alıntı Değildir.
quest quest_adı begin
state start begin
when login with pc.is_gm()
Böyle Questler Kullandığınızda Tüm GM'ler o Questi Kullanabilir.
Ama
quest quest_adı begin
state start begin
when login with pc.is_gm() and pc.get_name() == "###" begin
Böyle Yaparsak GM'ye Özel Quest Yapmış Oluruz ve Sadece O GM Kullanabilir.
###
Yazan Kısıma Hangi GM'nin Kullanmasını İstiyorsanız o GM'nin Adını Yazın.
GM YE ÖZEL QUEST | Sadece 1 GM Kullanabilir
Metin2 sunucularında özel sistemlerden biri olan Quest (Görev) sistemleri, oyuncuların oyun içinde belirli hedeflere ulaşmasını sağlar. Ancak bazı questler sadece özel kullanıcılar yani Game Master (GM) yetkilileri tarafından kullanılabilir. Bu yazıda, sadece 1 GM tarafından kullanılabilen özel bir quest sistemini nasıl oluşturacağınızı detaylıca inceleyeceğiz.
Metin2 Quest Sistemi Nedir?
Metin2 quest sistemi, oyuncuların veya yetkililerin belirli görevleri yaparak ödüller kazandığı, NPC'lerle etkileşim kurduğu, zamanlayıcılarla çalışan ve Lua dilinde yazılmış scriptlerdir. Bu sistemler, oyun deneyimini zenginleştirir ve özel etkinlikler için kullanılır.
Sadece GM İçin Tasarlanmış Bir Quest Nasıl Oluşturulur?
Bir questin sadece bir GM tarafından kullanılabilmesi için öncelikle o queste özel bir kontrol mekanizması eklenmelidir. Bu kontrol, o questin yalnızca GM yetkisine sahip kullanıcılar tarafından başlatılmasına izin verir. Lua scriptin içine şu şekilde bir kontrol yazılabilir:
Bu yapı sayesinde, quest sadece GM yetkisi olan bir karakter tarafından çalıştırılabilir. Diğer tüm karakterler için bir uyarı mesajı gösterilir ve işlem iptal edilir.
Quest Scriptine Güvenlik Eklemek
GM yetkisi kontrolü dışında, quest scriptine zamanlayıcı (timer), flag (bayrak) veya state (durum) gibi kontroller de eklenebilir. Böylece bir GM, aynı questi tekrar başlatamaz veya diğer GM'lerin kullanmasını engelleyebilir.
Örneğin, questin sadece bir kez başlatılması isteniyorsa, bir flag kullanarak durumu kontrol edebiliriz:
GM Quest'ler Neden Kullanılır?
GM'e özel questler, sunucu yönetimi, test amaçlı görevler, özel etkinlikler veya sunucu içi olayları başlatmak için idealdir. Örneğin, bir GM, oyun içi özel bir olay başlatmak veya sunucudaki hataları test etmek için özel bir quest kullanabilir.
Sonuç
Metin2 özel quest sistemleri, Lua diliyle yazılabildiği için oldukça esnektir. GM'ler için özel tasarlanan questler, güvenlik kontrolleriyle daha da güçlendirilebilir. Bu sayede hem yetki kontrolü sağlanır hem de quest sisteminin kötüye kullanım riski azaltılır.
GM-Only Quest | Can Only Be Used by 1 GM
In Metin2 servers, the Quest system is one of the special systems that allow players to reach specific goals within the game. However, some quests can only be used by special users, such as Game Masters (GMs). In this article, we will examine how to create a special quest system that can only be used by one GM in detail.
What Is the Metin2 Quest System?
The Metin2 quest system consists of Lua-based scripts that allow players or staff members to interact with NPCs, complete objectives, earn rewards, and manage timed events. These systems enrich the overall gaming experience and are often used for special in-game events.
How to Create a GM-Exclusive Quest?
To ensure a quest can only be used by a GM, you must implement a specific control mechanism within the quest script. This mechanism allows the quest to be initiated only by users with GM privileges. You can add a check inside the Lua script like this:
Thanks to this structure, only characters with GM permissions can execute the quest. For all other characters, a warning message appears and the process is canceled.
Adding Security to the Quest Script
Besides checking for GM privileges, you can also add controls such as timers, flags, or states to prevent multiple uses or conflicts between GMs. For example, if you want the quest to only run once per session, you can use a flag to track its status:
Why Are GM-Exclusive Quests Used?
GM-exclusive quests are ideal for server management, testing purposes, special events, or triggering in-game occurrences. For instance, a GM may use a special quest to initiate a server event or test potential bugs within the game environment.
Conclusion
Metin2's custom quest system is highly flexible thanks to its Lua-based scripting. Quests designed exclusively for GMs can be further secured with permission checks and usage limitations. This ensures proper authority control while minimizing risks of misuse.
quest quest_adı begin
state start begin
when login with pc.is_gm()
Böyle Questler Kullandığınızda Tüm GM'ler o Questi Kullanabilir.
Ama
quest quest_adı begin
state start begin
when login with pc.is_gm() and pc.get_name() == "###" begin
Böyle Yaparsak GM'ye Özel Quest Yapmış Oluruz ve Sadece O GM Kullanabilir.
###
Yazan Kısıma Hangi GM'nin Kullanmasını İstiyorsanız o GM'nin Adını Yazın.
GM YE ÖZEL QUEST | Sadece 1 GM Kullanabilir
Metin2 sunucularında özel sistemlerden biri olan Quest (Görev) sistemleri, oyuncuların oyun içinde belirli hedeflere ulaşmasını sağlar. Ancak bazı questler sadece özel kullanıcılar yani Game Master (GM) yetkilileri tarafından kullanılabilir. Bu yazıda, sadece 1 GM tarafından kullanılabilen özel bir quest sistemini nasıl oluşturacağınızı detaylıca inceleyeceğiz.
Metin2 Quest Sistemi Nedir?
Metin2 quest sistemi, oyuncuların veya yetkililerin belirli görevleri yaparak ödüller kazandığı, NPC'lerle etkileşim kurduğu, zamanlayıcılarla çalışan ve Lua dilinde yazılmış scriptlerdir. Bu sistemler, oyun deneyimini zenginleştirir ve özel etkinlikler için kullanılır.
Sadece GM İçin Tasarlanmış Bir Quest Nasıl Oluşturulur?
Bir questin sadece bir GM tarafından kullanılabilmesi için öncelikle o queste özel bir kontrol mekanizması eklenmelidir. Bu kontrol, o questin yalnızca GM yetkisine sahip kullanıcılar tarafından başlatılmasına izin verir. Lua scriptin içine şu şekilde bir kontrol yazılabilir:
Kod:
[B][COLOR=#9365b8]if pc.is_gm() then[BR][/BR]-- Buraya GM'e özel quest işlemleri yazılır[BR][/BR]else[BR][/BR]syschat('Bu quest sadece GM yetkilisi tarafından kullanılabilir.')[BR][/BR]return[BR][/BR]end[/COLOR][/B]
Bu yapı sayesinde, quest sadece GM yetkisi olan bir karakter tarafından çalıştırılabilir. Diğer tüm karakterler için bir uyarı mesajı gösterilir ve işlem iptal edilir.
Quest Scriptine Güvenlik Eklemek
GM yetkisi kontrolü dışında, quest scriptine zamanlayıcı (timer), flag (bayrak) veya state (durum) gibi kontroller de eklenebilir. Böylece bir GM, aynı questi tekrar başlatamaz veya diğer GM'lerin kullanmasını engelleyebilir.
Örneğin, questin sadece bir kez başlatılması isteniyorsa, bir flag kullanarak durumu kontrol edebiliriz:
Kod:
[B][COLOR=#9365b8]if pc.getqf('gm_quest_flag') == 1 then[BR][/BR]syschat('Bu quest zaten aktif durumda.')[BR][/BR]return[BR][/BR]end[BR][/BR]pc.setqf('gm_quest_flag', 1)[/COLOR][/B]
GM Quest'ler Neden Kullanılır?
GM'e özel questler, sunucu yönetimi, test amaçlı görevler, özel etkinlikler veya sunucu içi olayları başlatmak için idealdir. Örneğin, bir GM, oyun içi özel bir olay başlatmak veya sunucudaki hataları test etmek için özel bir quest kullanabilir.
Sonuç
Metin2 özel quest sistemleri, Lua diliyle yazılabildiği için oldukça esnektir. GM'ler için özel tasarlanan questler, güvenlik kontrolleriyle daha da güçlendirilebilir. Bu sayede hem yetki kontrolü sağlanır hem de quest sisteminin kötüye kullanım riski azaltılır.
GM-Only Quest | Can Only Be Used by 1 GM
In Metin2 servers, the Quest system is one of the special systems that allow players to reach specific goals within the game. However, some quests can only be used by special users, such as Game Masters (GMs). In this article, we will examine how to create a special quest system that can only be used by one GM in detail.
What Is the Metin2 Quest System?
The Metin2 quest system consists of Lua-based scripts that allow players or staff members to interact with NPCs, complete objectives, earn rewards, and manage timed events. These systems enrich the overall gaming experience and are often used for special in-game events.
How to Create a GM-Exclusive Quest?
To ensure a quest can only be used by a GM, you must implement a specific control mechanism within the quest script. This mechanism allows the quest to be initiated only by users with GM privileges. You can add a check inside the Lua script like this:
Kod:
[B][COLOR=#9365b8]if pc.is_gm() then[BR][/BR]-- Add GM-only quest logic here[BR][/BR]else[BR][/BR]syschat('This quest can only be used by GM staff.')[BR][/BR]return[BR][/BR]end[/COLOR][/B]
Thanks to this structure, only characters with GM permissions can execute the quest. For all other characters, a warning message appears and the process is canceled.
Adding Security to the Quest Script
Besides checking for GM privileges, you can also add controls such as timers, flags, or states to prevent multiple uses or conflicts between GMs. For example, if you want the quest to only run once per session, you can use a flag to track its status:
Kod:
[B][COLOR=#9365b8]if pc.getqf('gm_quest_flag') == 1 then[BR][/BR]syschat('This quest is already active.')[BR][/BR]return[BR][/BR]end[BR][/BR]pc.setqf('gm_quest_flag', 1)[/COLOR][/B]
Why Are GM-Exclusive Quests Used?
GM-exclusive quests are ideal for server management, testing purposes, special events, or triggering in-game occurrences. For instance, a GM may use a special quest to initiate a server event or test potential bugs within the game environment.
Conclusion
Metin2's custom quest system is highly flexible thanks to its Lua-based scripting. Quests designed exclusively for GMs can be further secured with permission checks and usage limitations. This ensures proper authority control while minimizing risks of misuse.
