Karakter isim Değiştirme questi

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Öncelikle bu konu daha önce açıldı mı bilmiyorum forumda aradım ben bulamadım var ise özürdilerim.

İsim değiştirme questi ne işe yarar?
İsim değiştirme questi oyuncu kendi Nick'i ni istediği gibi değiştirebilir.



Yapmanız gerekenler

Navicat'a girip servere bağlanıyoruz.

Player > İtem_Proto ya giriyoruz 71055 kodu aratıyoruz ve alttaki değerlerle aynı olmasını sağlıyoruz.
Kod:
type:18 subtype:10 weight:0 size:1 antiflag:33152 flag:24576

Dosyayı indrin


Virustotal


Bu dosyayı filezillaya bağlanarak bu dizine atın.

Kod:
cd /usr/game/share/locale/turkey/quest

Yine aynı bolumde hognkong.list var onu masa üstüne alıp notepad programı yada not defteri ile açıyoruz en üste alttakini yazıyoruz.
Kod:
isimdegistirme.quest

Sonra puttye bağlanın alttaki komutu girin.
Kod:
cd /usr/game/share/locale/turkey/quest
ENTER basıp.

Kod:
./qc isimdegistirme.quest
Yazıp ENTER Basıyoruz.

Şimdi serverinize /reload q çekin yada reboot atın.
Artık 71055 itemi ile oyundaki oyuncular karakterlerinin isimlerini değiştirebilirler.

Bir Teşekkürü Hor Görmeyelim. Lütfen Questi Kullanan Server Sahipleri Çalıştığına Dair Ekran Görüntüsü Paylaşsın.
Metin2 Karakter İsim Değiştirme Questi
Metin2 sunucularında kullanıcılar için önemli bir sistem olan karakter ismi değiştirme işlemi, bazı sunucularda quest üzerinden sunulmaktadır. Bu quest sistemi sayesinde oyuncular belirli maliyetler karşılığında kendi karakterlerinin isimlerini değiştirebilirler. Bu yazıda Metin2 karakter isim değiştirme quest sisteminin nasıl çalıştığını,.quest dosyasının yapısını ve gerekli Lua scriptlerini detaylı olarak ele alacağız.

Metin2 Quest Sistemi Nedir?
Metin2'de quest sistemi, oyuncuların belirli görevleri yerine getirmesiyle ilerleyen etkileşimli sistemdir. Oyuncular, NPC'ler aracılığıyla questleri başlatır ve görevleri tamamlayarak ödüller kazanabilir. Questler genellikle Lua dilinde yazılır ve sunucu tarafında çalıştırılır. Karakter isim değiştirme gibi özel işlemler de quest sistemi üzerinden sağlanabilir.

Karakter İsim Değiştirme Quest Yapısı[/BR]Bu quest, genellikle bir NPC üzerinden başlatılır. Oyuncu questi seçtiğinde, sistem ondan yeni bir isim girmesini ister. Ardından belirli bir ücret talep edilir (örneğin 1.000.000 yang veya özel item). Eğer oyuncu bu şartları sağlıyorsa, isim değiştirme işlemi gerçekleştirilir. Bu işlem sırasında sunucuda özel bir kontrol yapılır; yeni ismin uygunluğu kontrol edilir (örneğin küfür içeriyor mu, daha önce alınmış mı vs.).

Lua Script Örneği
Quest scripti genellikle 'quest_functions.lua' veya doğrudan quest dosyası içinde tanımlanır. Örnek bir quest kodu şu şekildedir:
Kod:
quest change_name begin[BR][/BR]    state start begin[BR][/BR]        when login with pc.get_level() >= 80 begin[BR][/BR]            say_title('Isim Degistirme Hizmeti')[BR][/BR]            local name = input_string('Yeni isminizi giriniz:')[BR][/BR]            if name then[BR][/BR]                if string.len(name) < 3 or string.len(name) > 7 then[BR][/BR]                    chat('Isim uzunlugu 3 ile 7 karakter arasinda olmali!')[BR][/BR]                    return[BR][/BR]                end[BR][/BR]                if not check_name(name) then[BR][/BR]                    chat('Gecersiz isim formati!')[BR][/BR]                    return[BR][/BR]                end[BR][/BR]                if pc.get_won() < 1000000 then[BR][/BR]                    chat('Bu islem icin yeterli yanginiz yok!')[BR][/BR]                    return[BR][/BR]                end[BR][/BR]                pc.change_name(name)[BR][/BR]                chat('Isminiz basariyla degistirildi!')[BR][/BR]            end[BR][/BR]        end[BR][/BR]    end[BR][/BR]end

Quest Debug ve Hata Ayıklama
Quest yazarken dikkat edilmesi gereken bazı hatalar vardır. Özellikle input_string veya pc.change_name fonksiyonlarında oluşabilecek hatalar questin çalışmamasına sebep olabilir. Sunucu logları incelenerek questteki sorunlar tespit edilebilir. Ayrıca quest editörler kullanılarak scriptler test edilmelidir.

Özel Quest Geliştirme
Sunucuya özel ihtiyaç duyulan questler, geliştiriciler tarafından özelleştirilerek entegre edilebilir. Karakter isim değiştirme questi gibi sistemler, sunucunun ekonomisine ve oyun içi dengesine göre ayarlanabilir. Ödül ve maliyet sistemleri bu doğrultuda yeniden yapılandırılabilir.

Sonuç
Metin2 karakter isim değiştirme questi, hem oyuncuların deneyimini artıran hem de sunucu yöneticilerinin kontrolünü kolaylaştıran önemli bir özelliktir. Doğru şekilde yapılandırılmış bir quest sistemi ile kullanıcı memnuniyeti artırılırken, sunucu güvenliği de sağlanabilir.


Metin2 Character Name Change Quest
In Metin2 servers, the character name change process is an important system for players and is sometimes provided through a quest. This quest allows players to change their character names in exchange for certain costs. In this article, we will examine how the Metin2 character name change quest works, the structure of the .quest file, and the necessary Lua scripts in detail.

What is the Metin2 Quest System?
The quest system in Metin2 is an interactive system where players complete specific tasks. Players start quests via NPCs and can earn rewards by completing objectives. Quests are typically written in Lua and run on the server side. Special actions such as changing character names can also be handled through the quest system.

Structure of the Name Change Quest
This quest usually starts through an NPC. When the player selects the quest, the system prompts them to enter a new name. Then, a fee is requested (for example, 1,000,000 yang or a special item). If the player meets these conditions, the name change process is executed. During this process, the server checks whether the new name is valid (e.g., contains profanity, already taken, etc.).

Lua Script Example
The quest script is generally defined in 'quest_functions.lua' or directly within the quest file. An example quest code is as follows:
Kod:
quest change_name begin[BR][/BR]    state start begin[BR][/BR]        when login with pc.get_level() >= 80 begin[BR][/BR]            say_title('Name Change Service')[BR][/BR]            local name = input_string('Enter your new name:')[BR][/BR]            if name then[BR][/BR]                if string.len(name) < 3 or string.len(name) > 7 then[BR][/BR]                    chat('Name must be between 3 and 7 characters long!')[BR][/BR]                    return[BR][/BR]                end[BR][/BR]                if not check_name(name) then[BR][/BR]                    chat('Invalid name format!')[BR][/BR]                    return[BR][/BR]                end[BR][/BR]                if pc.get_won() < 1000000 then[BR][/BR]                    chat('Not enough yang for this action!')[BR][/BR]                    return[BR][/BR]                end[BR][/BR]                pc.change_name(name)[BR][/BR]                chat('Your name has been changed successfully!')[BR][/BR]            end[BR][/BR]        end[BR][/BR]    end[BR][/BR]end

Quest Debugging and Error Handling
When writing quests, certain errors should be avoided. Particularly, errors in functions like input_string or pc.change_name can prevent the quest from running properly. Server logs can be reviewed to detect issues in the quest. Additionally, quest editors can be used to test scripts.

Custom Quest Development
Quests needed specifically for the server can be customized and integrated by developers. Systems like the character name change quest can be adjusted according to the server’s economy and in-game balance. Reward and cost systems can be restructured accordingly.

Conclusion
The Metin2 character name change quest is an essential feature that enhances player experience while providing easier control for server administrators. With a well-configured quest system, user satisfaction can be increased while ensuring server security.
 

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

Benzer konular

Geri
Üst Alt