İsim değiştirme questi
İsim izi item kodu:71055 Filese göre değişebilir navicattan bakabilirsiniz
Nasıl Aktif Edilir:Bu kodları yeni metin belgesine kopyalıyoruz ve ismini istediğimiz gibi yapıp sonuna .quest yazıyoruz örneğin isimdegistirme.quest sonra bunu filezillanın /usr/game/share/locale/turkey/quest kısmına atıyoruz ve putty'i açarak önce cd /usr/game/share/locale/turkey/quest yazıp enter'a basıyoruz ve sonra ./qc isimdegistirme.quest yazıp enter'a basıyoruz ve artık hazırdır.
Not:Başka konularda vardır bu questle ilgili fakat çalıştıramadım bu kesin çalışıyor ayrıca arşivimdeydi alıntıdır.
Metin2 oyununda quest sistemleri, oyuncuların oyun içi deneyimlerini zenginleştirmek ve hikaye akışını desteklemek amacıyla geliştirilmiş önemli unsurlardandır. Bu sistemler sayesinde oyuncular, belirli görevleri tamamlayarak ödüller kazanabilir, yeni eşyalar edinebilir veya oyun dünyasında ilerleyebilirler. Bu yazıda özellikle Isim Degistirme Questi ve isim izi kullanımı üzerinde duracağız. Metin2 quest sisteminin Lua tabanlı yapısı sayesinde, geliştiriciler bu tür özelleştirilmiş görevleri kolayca entegre edebilmektedirler.
Isim Degistirme Quest Nedir?
Isim Degistirme Questi, oyuncuların karakterlerinin ismini değiştirmesi için tasarlanmış bir görevdir. Bu quest genellikle sunucuların özel hizmetlerinden biridir ve oyunculara estetik ya da kişiselleştirme amaçlı olarak sunulur. Quest, bir NPC üzerinden başlatılır ve genellikle belli bir ücret veya görev karşılığı aktif edilir. Bu süreçte isim izi adı verilen bir mekanizma devreye girer. Isim izi, oyuncunun yeni seçtiği ismin sistem tarafından onaylanmasını ve sunucuya kayıt edilmesini sağlar.
Quest Sistemine Özgü Lua Kodlama
Metin2 quest sistemleri Lua diliyle yazılmaktadır. Bu bağlamda, isim değiştirme questinin doğru çalışması için özel Lua komutları ve fonksiyonlar gereklidir. Örneğin, bir quest dosyasında aşağıdaki gibi bir yapı kullanılabilir:
Yukarıdaki kod parçası, isim değiştirme questinin temel mantığını göstermektedir. Oyuncu queste başladığında bir mesaj ile karşılanır, ardından yeni ismini girmesi istenir. Girdiği isim isim izi olarak alınır ve sistemde değişiklik yapılır.
Quest Reward ve Item Kullanımı
Bazı sunucularda, isim değiştirme hakkı doğrudan ücretsiz olmayabilir. Bu nedenle questin tamamlanması için belirli bir item veya para ödemesi istenebilir. Örneğin, bir isim degistirme kuponu kullanarak oyuncu questi başlatır ve ismini değiştirir. Quest reward olarak ise bonus item veya gold verilebilir. Bu sayede hem kullanıcıya motive edici bir sistem sunulur hem de sunucu yönetimi daha kontrollü olur.
Quest Debug ve Hata Ayıklama
Lua quest geliştirirken hatalarla karşılaşmak kaçınılmazdır. Özellikle isim değiştirme gibi hassas işlemlerde hata ayıklama çok önemlidir. Debug komutları ile quest logları takip edilerek, sistemsel sorunlar çabukca çözülebilir..quest dosyasının doğru yüklendiğinden emin olmak, event triggerların düzgün çalıştığından emin olmak gibi adımlar, questin stabil çalışması için kritiktir.
Dikkat Edilmesi Gerekenler
Isim değiştirme questi geliştirilirken bazı hususlara dikkat edilmelidir. Öncelikle, yeni ismin Metin2 standartlarına uygunluğu kontrol edilmelidir. Ayrıca, isim izi alındıktan sonra tekrar kullanılabilirlik veya hatalı girişler için güvenlik önlemleri alınmalıdır. Sunucu tarafında isim benzerliği veya yasaklı kelimeler konusunda filtreleme yapılması önerilir.
In the game Metin2, quest systems are important elements designed to enrich players' in-game experiences and support the storyline. These systems allow players to earn rewards, obtain new items, or progress within the game world by completing specific tasks. In this article, we will particularly focus on the Name Change Quest and the usage of name trace. Thanks to the Lua-based structure of the Metin2 quest system, developers can easily integrate such customized quests.
What is Name Change Quest?
The Name Change Quest is a task designed for players to change their character's name. This quest is usually one of the special services offered by servers and provided to players for aesthetic or personalization purposes. The quest starts through an NPC and often activates in exchange for a certain fee or task completion. Within this process, a mechanism called name trace comes into play. Name trace ensures that the player's newly selected name is approved by the system and registered on the server.
Lua Coding Specific to the Quest System
Metin2 quest systems are written in the Lua language. In this context, special Lua commands and functions are required for the proper functioning of the name change quest. For example, in a quest file, a structure like the following may be used:
The above code snippet demonstrates the basic logic of the name change quest. When the player starts the quest, they are greeted with a message and prompted to enter their new name. The entered name is taken as a name trace and applied to the system.
Quest Reward and Item Usage
On some servers, the name change feature may not be free. Therefore, a specific item or payment may be required to complete the quest. For example, a player might initiate the quest by using a name change voucher and then change their name. As a quest reward, bonus items or gold may be given. This way, both a motivating system is presented to the user and the server management remains more controlled.
Quest Debugging and Error Handling
Encountering errors while developing Lua quests is inevitable. Especially in sensitive operations like name changing, debugging is crucial. By using debug commands, quest logs can be monitored to quickly resolve systemic issues. Ensuring that the quest file is properly loaded and that event triggers function correctly are critical steps for the stable operation of the quest.
Important Considerations
Certain points must be considered when developing a name change quest. First, the newly entered name must comply with Metin2 standards. Additionally, security measures should be implemented to handle reusability after the name trace is taken or in case of incorrect inputs. It is recommended to implement filtering on the server side for name similarities or forbidden words.
Kod:
quest change_name begin state start begin when 71055.use begin say_title("İsim izi ") if pc.is_married() then say("Evli olduğun için isim değiştiremezsin.") say("") return end if pc.is_polymorphed() then say("Dönüşmüş halde isim değiştiremezsin.") say("") return end if pc.has_guild() then say("Bir loncanın üyesiyken isim değiştiremezsin.") say("") return end if party.is_party() then say("İsim değiştirmek için gruptan çıkmalısın.") say("") return end if pc.get_level() < 80 then say("İsim değiştirmek için yeterli seviyede değilsin.") say("80. seviyeye ulaştığında tekrar dene.") return end if get_time() < pc.getqf("next_time") then say("Henüz isim değiştiremezsin.") say("") say_reward("Tekrar isim değiştirebileceğin tarih:") say_reward(string.format("%s", time_to_str(pc.getqf("next_time")))) if is_test_server() == true then say("Test serverdayken bu süre sıfırlanır.") say("") else return end end say("Yeni ismini aşağıdaki kutuya yaz.") local name = pc.name local str = input() local ret = pc.change_name(str) if string.len(str) > 12 then say_title("İsim izi") say("İsim çok uzun.") return end if ret == 0 then say_title("İsim izi") say("İsim geçerli değil. Başka bir isim") say("yaz. Türkçe veya özel karakter kullanma.") say("Lütfen oyuna tekrar giriş yap.") char_log(0, "CHANGE_NAME", "HAVE NOT RE-LOGIN") elseif ret == 1 then say_title("İsim izi") say("Bir sorun var.") say("Daha sonra tekrar dene.") say("") char_log(0, "CHANGE_NAME", "ITEM USE PROBLEM") elseif ret == 2 then say_title("İsim izi") say("İsim geçerli değil. Başka bir isim") say("yaz. Türkçe veya özel karakter kullanma.") say("") char_log(0, "CHANGE_NAME", "CAN NOT USE NAME") elseif ret == 3 then say_title("İsim izi") say("Bu ismi başka bir oyuncu kullanıyor.") say("Kendine başka bir isim bul.") say("") char_log(0, "CHANGE_NAME", "ALREADY USING NAME") elseif ret == 4 then say_title("İsim izi") say("İsim değiştirme gerçekleşti.") say("Oyuna tekrar giriş yap.") say("") pc.remove_item("71055",1) pc.setqf("next_time", get_time() + time_hour_to_sec(1*1)) char_log(0, "CHANGE_NAME", "SUCCESS: from "..name.." to "..str) else say("Bir hata oluştu.") char_log(0, "CHANGE_NAME", "UNKNOWN NAME") end end end end
İsim izi item kodu:71055 Filese göre değişebilir navicattan bakabilirsiniz
Nasıl Aktif Edilir:Bu kodları yeni metin belgesine kopyalıyoruz ve ismini istediğimiz gibi yapıp sonuna .quest yazıyoruz örneğin isimdegistirme.quest sonra bunu filezillanın /usr/game/share/locale/turkey/quest kısmına atıyoruz ve putty'i açarak önce cd /usr/game/share/locale/turkey/quest yazıp enter'a basıyoruz ve sonra ./qc isimdegistirme.quest yazıp enter'a basıyoruz ve artık hazırdır.
Not:Başka konularda vardır bu questle ilgili fakat çalıştıramadım bu kesin çalışıyor ayrıca arşivimdeydi alıntıdır.
Metin2 oyununda quest sistemleri, oyuncuların oyun içi deneyimlerini zenginleştirmek ve hikaye akışını desteklemek amacıyla geliştirilmiş önemli unsurlardandır. Bu sistemler sayesinde oyuncular, belirli görevleri tamamlayarak ödüller kazanabilir, yeni eşyalar edinebilir veya oyun dünyasında ilerleyebilirler. Bu yazıda özellikle Isim Degistirme Questi ve isim izi kullanımı üzerinde duracağız. Metin2 quest sisteminin Lua tabanlı yapısı sayesinde, geliştiriciler bu tür özelleştirilmiş görevleri kolayca entegre edebilmektedirler.
Isim Degistirme Quest Nedir?
Isim Degistirme Questi, oyuncuların karakterlerinin ismini değiştirmesi için tasarlanmış bir görevdir. Bu quest genellikle sunucuların özel hizmetlerinden biridir ve oyunculara estetik ya da kişiselleştirme amaçlı olarak sunulur. Quest, bir NPC üzerinden başlatılır ve genellikle belli bir ücret veya görev karşılığı aktif edilir. Bu süreçte isim izi adı verilen bir mekanizma devreye girer. Isim izi, oyuncunun yeni seçtiği ismin sistem tarafından onaylanmasını ve sunucuya kayıt edilmesini sağlar.
Quest Sistemine Özgü Lua Kodlama
Metin2 quest sistemleri Lua diliyle yazılmaktadır. Bu bağlamda, isim değiştirme questinin doğru çalışması için özel Lua komutları ve fonksiyonlar gereklidir. Örneğin, bir quest dosyasında aşağıdaki gibi bir yapı kullanılabilir:
Kod:
quest isim_degistir begin[BR][/BR] state start begin[BR][/BR] when login or button or info begin[BR][/BR] say('Isminizi degistirmek ister misiniz?')[BR][/BR] local choice = select('Evet', 'Hayir')[BR][/BR] if choice == 1 then[BR][/BR] local new_name = input_string('Yeni isminizi girin:') -- Isim izi burada alinir[BR][/BR] change_name(new_name)[BR][/BR] notice('Isminiz basariyla degistirildi.')[BR][/BR] end[BR][/BR] end[BR][/BR] end[BR][/BR]end
Yukarıdaki kod parçası, isim değiştirme questinin temel mantığını göstermektedir. Oyuncu queste başladığında bir mesaj ile karşılanır, ardından yeni ismini girmesi istenir. Girdiği isim isim izi olarak alınır ve sistemde değişiklik yapılır.
Quest Reward ve Item Kullanımı
Bazı sunucularda, isim değiştirme hakkı doğrudan ücretsiz olmayabilir. Bu nedenle questin tamamlanması için belirli bir item veya para ödemesi istenebilir. Örneğin, bir isim degistirme kuponu kullanarak oyuncu questi başlatır ve ismini değiştirir. Quest reward olarak ise bonus item veya gold verilebilir. Bu sayede hem kullanıcıya motive edici bir sistem sunulur hem de sunucu yönetimi daha kontrollü olur.
Quest Debug ve Hata Ayıklama
Lua quest geliştirirken hatalarla karşılaşmak kaçınılmazdır. Özellikle isim değiştirme gibi hassas işlemlerde hata ayıklama çok önemlidir. Debug komutları ile quest logları takip edilerek, sistemsel sorunlar çabukca çözülebilir..quest dosyasının doğru yüklendiğinden emin olmak, event triggerların düzgün çalıştığından emin olmak gibi adımlar, questin stabil çalışması için kritiktir.
Dikkat Edilmesi Gerekenler
Isim değiştirme questi geliştirilirken bazı hususlara dikkat edilmelidir. Öncelikle, yeni ismin Metin2 standartlarına uygunluğu kontrol edilmelidir. Ayrıca, isim izi alındıktan sonra tekrar kullanılabilirlik veya hatalı girişler için güvenlik önlemleri alınmalıdır. Sunucu tarafında isim benzerliği veya yasaklı kelimeler konusunda filtreleme yapılması önerilir.
In the game Metin2, quest systems are important elements designed to enrich players' in-game experiences and support the storyline. These systems allow players to earn rewards, obtain new items, or progress within the game world by completing specific tasks. In this article, we will particularly focus on the Name Change Quest and the usage of name trace. Thanks to the Lua-based structure of the Metin2 quest system, developers can easily integrate such customized quests.
What is Name Change Quest?
The Name Change Quest is a task designed for players to change their character's name. This quest is usually one of the special services offered by servers and provided to players for aesthetic or personalization purposes. The quest starts through an NPC and often activates in exchange for a certain fee or task completion. Within this process, a mechanism called name trace comes into play. Name trace ensures that the player's newly selected name is approved by the system and registered on the server.
Lua Coding Specific to the Quest System
Metin2 quest systems are written in the Lua language. In this context, special Lua commands and functions are required for the proper functioning of the name change quest. For example, in a quest file, a structure like the following may be used:
Kod:
quest name_change begin[BR][/BR] state start begin[BR][/BR] when login or button or info begin[BR][/BR] say('Do you want to change your name?')[BR][/BR] local choice = select('Yes', 'No')[BR][/BR] if choice == 1 then[BR][/BR] local new_name = input_string('Enter your new name:') -- Name trace is taken here[BR][/BR] change_name(new_name)[BR][/BR] notice('Your name has been successfully changed.')[BR][/BR] end[BR][/BR] end[BR][/BR] end[BR][/BR]end
The above code snippet demonstrates the basic logic of the name change quest. When the player starts the quest, they are greeted with a message and prompted to enter their new name. The entered name is taken as a name trace and applied to the system.
Quest Reward and Item Usage
On some servers, the name change feature may not be free. Therefore, a specific item or payment may be required to complete the quest. For example, a player might initiate the quest by using a name change voucher and then change their name. As a quest reward, bonus items or gold may be given. This way, both a motivating system is presented to the user and the server management remains more controlled.
Quest Debugging and Error Handling
Encountering errors while developing Lua quests is inevitable. Especially in sensitive operations like name changing, debugging is crucial. By using debug commands, quest logs can be monitored to quickly resolve systemic issues. Ensuring that the quest file is properly loaded and that event triggers function correctly are critical steps for the stable operation of the quest.
Important Considerations
Certain points must be considered when developing a name change quest. First, the newly entered name must comply with Metin2 standards. Additionally, security measures should be implemented to handle reusability after the name trace is taken or in case of incorrect inputs. It is recommended to implement filtering on the server side for name similarities or forbidden words.
