(Quest) - Boss & Mob Kesince Şehre Göndersin

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Kod:
quest bosskessehredon begin        state start begin         when 2493.kill or 6191.kill or 6091.kill begin             if pc.get_empire() == 1 then             pc.warp(469300,964200)             elseif pc.get_empire() == 2 then             pc.warp(55700,157900)             elseif pc.get_empire() == 3 then             pc.warp(969600,278400)             end         end     end end

2493 - 6091 - 6191 Kodlarını mob boss a göre değiştirebilirsiniz.
Metin2 oyununda quest sistemleri, oyuncuların ilerlemesini sağlarken aynı zamanda sunucu tarafında özel etkileşimler kurmalarına olanak tanır. Bu yazıda, boss ya da mob öldürdükten sonra otomatik olarak şehirye dönülmesini sağlayan bir quest yapısını detaylıca ele alacağız.

Quest Nedir?
Metin2 dünyasında quest, belirli görevleri tamamlayarak ödüller kazanma veya oyun içi gelişim sağlama mekanizmasıdır. Quest sistemleri genellikle Lua dili ile yazılmaktadır. Metin2 sunucularında özel quest sistemleri oluşturmak, oyunculara daha keyifli ve dengeli bir oyun deneyimi sunar. Questler, NPCler üzerinden başlatılır ve belli triggerlarla devam eder. Mob öldürme, eşya toplama, belirli bir konuma gitme gibi eylemler questin ilerlemesini sağlar.

Boss veya Mob Öldürünce Şehre Göndermek
Bu tarz bir quest yapısı, oyuncuların uzun seyahatler yapmadan doğrudan şehre dönmelerini sağlar. Özellikle boss savaşları sonrası yorulmuş ya da canavarları alt etmiş oyuncular için zaman tasarrufu sağlar. Bu işlem genellikle Lua kodları aracılığıyla yapılır ve quest dosyasında tanımlanan bir flag veya state kontrolüyle tetiklenir. Mob öldürüldüğünde, sistem questin tamamlandığını algılar ve oyuncuyu doğrudan şehre gönderir.

Quest Script Yapısı
Quest yazarken Lua dilinin kurallarına uyulmalıdır. Örneğin bir quest şu şekilde tanımlanabilir:

quest boss_kill_to_city begin
state start begin
when kill with npc.is_boss(npc.race) begin
say('Tebrikler! Bossu yendiniz.')
warp_to_village()
end
end
end

Dikkat Edilmesi Gerekenler
Oluşturulan questte bazı hatalar oluşabilir. Özellikle questin doğru çalışması için debug işlemleri yapılmalıdır. Oyuncunun mob öldürme eylemi ile questin doğru tetiklenmesi için triggerlar dikkatlice ayarlanmalıdır. Ayrıca quest dosyasının sunucuya doğru şekilde aktarılması gerekir. Metin2 sunucularında quest geliştirme sürecinde, Martysama veya Metin2Dev gibi platformlardan yardım alınabilir.

Özel Quest Geliştirme
Oyuncular için özelleştirilmiş questler, sunucunuzun farklılaşmasını sağlar. Daily questler, chain questler gibi yapılarla oyuncuların tekrar gelmesi sağlanabilir. Metin2 özel quest sistemleri, sunucu yöneticilerinin kendi oyun dünyalarını inşa etmesini sağlar. Reward olarak item, gold veya 경험 (experience) verilebilir. Timer veya flag sistemleriyle questler daha da geliştirilebilir.


Metin2 game, quest systems allow players to progress while enabling special interactions on the server side. In this article, we will examine in detail a quest structure that automatically returns players to the city after defeating a boss or mob.

What is a Quest?
In the world of Metin2, a quest is a mechanism that allows players to earn rewards or advance in the game by completing specific tasks. Quest systems are typically written in the Lua language. Creating custom quest systems on Metin2 servers offers players a more enjoyable and balanced gaming experience. Quests are initiated through NPCs and proceed with certain triggers. Actions such as killing monsters, collecting items, or reaching a specific location cause the quest to progress.

Sending Player to City After Killing Boss or Mob
Such a quest structure allows players to return directly to the city without long journeys. This is especially useful for players who have exhausted themselves after boss battles or monster kills. This process is usually handled via Lua code and triggered by a flag or state check defined in the quest file. When a mob is killed, the system recognizes the quest as completed and teleports the player directly to the city.

Quest Script Structure
When writing a quest, the rules of the Lua language must be followed. For example, a quest can be defined as follows:

quest boss_kill_to_city begin
state start begin
when kill with npc.is_boss(npc.race) begin
say('Congratulations! You defeated the boss.')
warp_to_village()
end
end
end

Points to Consider
Certain errors may occur in the created quest. Debugging processes should be performed to ensure the quest runs correctly. The triggers must be carefully set to ensure the quest is properly activated upon the player's monster kill action. Additionally, the quest file must be correctly transferred to the server. During the quest development process on Metin2 servers, help can be obtained from platforms like Martysama or Metin2Dev.

Custom Quest Development
Customized quests for players help differentiate your server. Structures like daily quests and chain quests encourage players to return. Custom quest systems in Metin2 allow server administrators to build their own game worlds. Rewards such as items, gold, or experience can be given. Timer or flag systems can further enhance quests.
 

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

Benzer konular

Geri
Üst Alt