Yeni 105 Level Görevi (Lua)

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Kod:
quest seviye_30 begin     state start begin         when login or[/FONT] levelup with pc.get_level() >= 105 and pc.get_level() <= 105 begin             if pc.getqf("seviye_105_gorev_tamam") == 0 then                 set_state(gorev_otuz)             end         end -- when login or levelup with pc.get_level() >= 105 and pc.get_level() <= 105 begin endi     end -- state start begin endi     state gorev_otuz begin         when letter with pc.get_level() >= 105 and pc.get_level() <= 105 begin             send_letter("Seviye 105: Ot Görevi")         end -- when letter with pc.get_level() >= 105 and pc.get_level() <= 105 begin endi         when info or button with pc.get_level() >= 105 and pc.get_level() <= 105 begin             oyuncu_isim = pc.get_name()             say_title("Bilgilendirme:")             say("")             say("Merhaba oyuncu, "..oyuncu_isim)             say("30 adet Beran Steaou öldürerek dilediğin ottan 10 adet[ENTER]alabilirsin.")             say("")             if pc.getqf("beran_steaou_g") == 0 then                 pc.setqf("beran_steaou", 30)                 pc.setqf("beran_steaou_g",1)             end             q.set_counter("Beran Steaou", pc.getqf("beran_steaou"))         end -- when info or button with pc.get_level() >= 105 and pc.get_level() <= 105 begin endi              when 2493.kill with pc.getqf("beran_steaou_g") == 1 begin             oldurme = pc.getqf("beran_steaou") - 1             if oldurme <= 30 and oldurme != 0 then                 pc.setqf("beran_steaou", oldurme)                 q.set_counter("beran_steaou", oldurme)             else                 pc.setqf("seviye_105_gorev_tamam",1)                 say_title("Bilgilendirme:")                 say("")                 say("Tebrikler! oyuncu, "..oyuncu_isim)                 say("Görevi başarı ile yerine getirdin.")                 say("")                 oyuncu_sinif = pc.get_job()                 if oyuncu_sinif == 0 or oyuncu_sinif == 4 then -- savaşçı                     esya_al = select("10 Kırmızı Ot","10 Mavi Ot","10 Yeşil Ot","10 Mor Ot")                     if esya_al == 1 then                         pc.give_item2(70251,10)                     elseif esya_al == 2 then                         pc.give_item2(70252,10)                     elseif esya_al == 3 then                         pc.give_item2(70253,10)                     elseif esya_al == 4 then                         pc.give_item2(70254,10)                     end                 elseif oyuncu_sinif == 1 or oyuncu_sinif == 5 then -- ninja                     esya_al = select("10 Kırmızı Ot","10 Mavi Ot","10 Yeşil Ot","10 Mor Ot")                     if esya_al == 1 then                         pc.give_item2(70251,10)                     elseif esya_al == 2 then                         pc.give_item2(70252,10)                     elseif esya_al == 3 then                         pc.give_item2(70253,10)                     elseif esya_al == 4 then                         pc.give_item2(70254,10)                     end                 elseif oyuncu_sinif == 2 or oyuncu_sinif == 6 then -- sura                     esya_al = select("10 Kırmızı Ot","10 Mavi Ot","10 Yeşil Ot","10 Mor Ot")                     if esya_al == 1 then                         pc.give_item2(70251,10)                     elseif esya_al == 2 then                         pc.give_item2(70252,10)                     elseif esya_al == 3 then                         pc.give_item2(70253,10)                     elseif esya_al == 4 then                         pc.give_item2(70254,10)                     end                 elseif oyuncu_sinif == 3 or oyuncu_sinif == 7 then -- şaman                     esya_al = select("10 Kırmızı Ot","10 Mavi Ot","10 Yeşil Ot","10 Mor Ot")                     if esya_al == 1 then                         pc.give_item2(70251,10)                     elseif esya_al == 2 then                         pc.give_item2(70252,10)                     elseif esya_al == 3 then                         pc.give_item2(70253,10)                     elseif esya_al == 4 then                         pc.give_item2(70254,10)                     end                 end                 clear_letter()                 set_state(__COMPLETE__)             end         end     end -- state gorev_otuz begin endi         state __COMPLETE__ begin              end end -- quest seviye_30 begin endi
Görev'in Açıklaması :
105 level olunca bir görev gelir ve sizden 30 Tane Beran Steaou(Mavi Ejder) kesmenizi ister . Görevi tamamladığınızda ise karşınıza 4 seçenek çıkar .
10 Kırmızı Ot
10 Mavi Ot
10 Yeşil Ot
10 Mor Ot
Bunlardan istediğinizi seçip alabilirsiniz .
Görevi Okutma :
Öncelikle Filezilla açıyoruz . Daha sonra adres çubuğuna /usr/game/share/locale/turkey/quest
yazıyoruz .
İndirmiş olduğumuz 105_lv.lua isimli dosyayı buraya atıyoruz .
Daha sonra putty açıyoruz giriş yaptıktan sonra
cd /usr/game/share/locale/turkey/quest yazıp enterliyoruz .
Sonra ./qc 105_lv.lua yazıp enterliyoruz
Ve son aşama olarak oyundan GM hesap ile /reload q yazıp bitiriyoruz .
Bir Yorum Atmanız yeterli İYİ FORUMLAR
Download Linki :



Yeni 105 Level Görevi (Lua)

Metin2 sunucularında Lua dili kullanılarak geliştirilen görev sistemleri, oyuncuların oyun içi ilerlemesini desteklemek ve deneyimi zenginleştirmek için kritik öneme sahiptir. Bu yazıda, 105 level görevlerine odaklanarak, Lua tabanlı görevlerin nasıl oluşturulduğunu ve bu görevlerin sunucu tarafında nasıl entegre edildiğini ele alacağız. Özellikle Metin2 Quest geliştirme sürecinde görev yazımında kullanılan teknikler, quest lua yapısı ve görevin başlatılması ile bitirilmesi gibi konular detaylı şekilde incelenecek.

105 Level Görev Sistemi Nedir?
105 level görevleri, Metin2 oyununda belirli bir seviye eşiğine ulaşan oyuncular için hazırlanmış özel görevlerdir. Bu görevler, genellikle quest reward olarak güçlü eşyalar, para veya deneyim puanları sunar. Oyuncular, bu görevleri tamamlayarak hem karakterlerini güçlendirebilir hem de oyun içinde ilerleyiş sağlayabilirler. Bu tür görevlerin geliştirilmesi, Lua diline hâkim geliştiriciler tarafından yapılmaktadır.

Görev Script Yapısı (Lua Tabanlı)
Metin2 quest sistemleri Lua diliyle yazılmaktadır. Lua, hafif ve esnek bir programlama dilidir. Bu sayede sunucu tarafında görevler kolayca tanımlanabilir, değiştirilebilir ve test edilebilir. Bir görevin temel yapısı şunları içerir:
- Görevin başlatılması (quest begin)
- Görevin devam etme koşulları (trigger, flag, state)
- Görevin bitiş koşulu (quest end)
- Ödüllerin verilmesi (reward system)

105 Level Görev Örneği (Basit Lua Kodu)
Aşağıda basitleştirilmiş bir lua quest örneği yer almaktadır:
Kod:
[BR][/BR]quest level_105_gorevi begin[BR][/BR]    state start begin[BR][/BR]        when login or enter begin[BR][/BR]            say('Level 105 gorevini baslatmak icin hazirlan!')[BR][/BR]        end[BR][/BR]    end[BR][/BR]end[BR][/BR]

Quest Trigger ve Flag Kullanımı
Bir quest trigger, belirli bir eylem gerçekleştiğinde görevin aktif hale gelmesini sağlar. Örneğin, bir NPC'ye tıklanması, bir mob'ı öldürme veya belirli bir eşya alınması gibi. Quest flag[/COORD] ise görevin durumunu kontrol etmek için kullanılır. Örneğin, görevin tamamlanıp tamamlanmadığı gibi.

Görev Zinciri (Quest Chain)
Bazı görevler birbirine bağlıdır. Bu tür görevlere quest chain adı verilir. 105 level görevi, önceki görevlerin tamamlanmasına bağlı olabilir. Böylece oyuncular sistematik bir şekilde ilerler ve oyun içi deneyim daha keyifli hale gelir.

Daily Quest ve 105 Level Görevleri
Daily quest sistemleri, oyuncuların her gün tekrar ederek ödül kazanabileceği görevlerdir. 105 level görevleri, günlük görevlerle birleştirilerek daha fazla etkileşim sağlanabilir. Bu sayede oyuncular hem seviye atlamak hem de günlük ödüllerden faydalanmak için aktif kalırlar.

Hata Ayıklama ve Debug İşlemleri
Metin2 quest hata çözümleri, geliştiriciler için kritik öneme sahiptir. Hatalar, Lua kodlarında syntax hatası, trigger eksikliği veya flag ayarlamasında meydana gelebilir. Geliştiriciler, quest debug işlemleri yaparak bu hataları hızlıca tespit edebilir ve düzeltebilirler. Sunucu logları ve test sunucuları bu süreçte yardımcı olur.

Özel Görev Geliştirme (Custom Quest)
Sunuculara özel geliştirilen custom quest sistemleri, oyuncuların farklı deneyimler yaşamasını sağlar. 105 level görevi de özelleştirilerek, sunucuya özel NPC'ler, eşyalar ve düşmanlarla harmanlanabilir. Bu sayede sunucu daha rekabetçi ve dikkat çekici hale gelir.

Sonuç
Yeni 105 level görevi, Metin2 dünyasında ilerleyişin önemli bir parçasıdır. Lua quest sistemleri sayesinde, bu görevler güçlü ve esnek yapılarla geliştirilebilir. Hem geliştiriciler hem de oyuncular için zengin deneyimler sunan bu sistem, doğru planlama ile sunucunuzun popülerliğini artırabilir. Metin2Lobby üzerinden güncel quest scriptleri ve geliştirici kaynaklarına erişebilirsiniz.


New 105 Level Quest (Lua)

In Metin2 servers, quest systems developed using the Lua language are critical for supporting players' in-game progress and enriching their experience. In this article, we will focus on 105 level quests and discuss how Lua-based quests are created and integrated into the server. Topics such as techniques used in Metin2 Quest development, quest lua structure, and the beginning and ending of quests will be covered in detail.

What is the 105 Level Quest System?
105 level quests are special quests prepared for players who reach a certain level threshold in the game Metin2. These quests typically offer powerful items, money, or experience points as quest rewards. Players can strengthen their characters and advance further in the game by completing these quests. Such quests are developed by developers proficient in the Lua programming language.

Quest Script Structure (Lua-Based)
Metin2 quests are written in the Lua language. Lua is a lightweight and flexible programming language, allowing quests to be easily defined, modified, and tested on the server side. The basic structure of a quest includes:
- Starting the quest (quest begin)
- Conditions for quest progression (trigger, flag, state)
- Ending condition of the quest (quest end)
- Reward distribution (reward system)

Example 105 Level Quest (Simple Lua Code)
Below is a simplified lua quest example:
Kod:
[BR][/BR]quest level_105_gorevi begin[BR][/BR]    state start begin[BR][/BR]        when login or enter begin[BR][/BR]            say('Prepare to start the 105 level quest!')[BR][/BR]        end[BR][/BR]    end[BR][/BR]end[BR][/BR]

Using Quest Triggers and Flags
A quest trigger activates the quest when a specific action occurs, such as clicking an NPC, killing a monster, or obtaining a particular item. A quest flag is used to check the status of a quest, such as whether it has been completed or not.

Quest Chains
Some quests are interconnected. These types of quests are called quest chains. A 105-level quest might depend on the completion of previous quests. This allows players to progress systematically and enjoyably within the game world.

Daily Quests and 105-Level Quests
Daily quests allow players to repeat them each day to earn rewards. By combining 105-level quests with daily quests, more engagement can be achieved. This encourages players to stay active in order to both level up and earn daily rewards.

Debugging and Error Handling
Metin2 quest errors are crucial to address for developers. Errors may occur due to syntax issues in Lua code, missing triggers, or incorrect flag settings. Developers can quickly detect and fix these errors through quest debug processes. Server logs and testing environments assist in this process.

Custom Quest Development
Custom quests designed specifically for servers provide unique experiences for players. A 105-level quest can be customized by incorporating server-specific NPCs, items, and monsters. This makes the server more competitive and appealing.

Conclusion
The new 105 level quest is an important part of progression in the Metin2 universe. Thanks to Lua quest systems, these quests can be developed with robust and flexible structures. Providing rich experiences for both developers and players, this system can enhance your server's popularity with proper planning. You can access updated quest scripts and developer resources via Metin2Lobby.
 

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

Geri
Üst Alt