HER BOSS KESİLDİĞİNDE BOSSUN NERDE KESİLDİĞİNİN DUYURUSUNU YAPAN QUEST

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
MERHABA ARKADAŞLAR SİZLERE BOOS DUYURU QUESTLERİ PAYLAŞACAGIM DİLEDİGİNİZ BOSSİ ÇİN EDİTLEYİP DÜZENLEYE BİLİRSİNİZ YAPIMI ÇOK KOLAY DOSYANIN İÇERİSİNDE YAPIMI İLE İLGİLİ AÇIKLAMA MEVCUTTUR..

OYUN İÇİ GÖRSEL KANIT
vYGyym.png



Her Boss Kesildiğinde Bossun Nerede Kesildiğinin Duyurusunu Yapan Quest

Metin2 sunucularında özel ve dikkat çekici sistemler oluşturmak, oyuncu deneyimini ciddi anlamda artırabilir. Bu yazıda, herhangi bir boss öldürüldüğünde, bossun öldürüldüğü konumun sunucuda duyurulduğu bir quest yapısını detaylı olarak inceleyeceğiz. Bu quest sayesinde, sunucu yönetimi ve oyuncular, hangi bossun nerede öldürüldüğünü takip edebileceklerdir.

Quest Sisteminin Temel Yapısı

Metin2 sunucularında quest sistemleri, Lua diline dayanır. Quest dosyaları genellikle .lua uzantılıdır ve server-side çalışır. Quest yazarken dikkat edilmesi gereken bazı önemli kavramlar vardır:

- Trigger: Olay tetikleyicisi. Örneğin, bir boss öldüğünde bu trigger çalışır.
- Mob: Questte etkileşimde bulunulan yaratık. Boss olarak tanımlanır.
- State: Questin mevcut durumu. Başlangıç, devam ediyor, tamamlandı gibi.
- Reward: Questin tamamlanmasıyla verilen ödüller.

Boss Öldürme Olayının Tetiklenmesi

Bu questte ana olay, boss öldürüldüğünde çalışacak bir trigger mekanizmasıdır. Bu işlem için kill eventi kullanılır. Kill eventi, belirtilen mob öldürüldüğünde çalışır. Boss öldürüldüğünde,.quest sistemine bir fonksiyon çağrısı yapılır ve bossun öldürüldüğü map ve koordinat bilgileri alınır.

Konum Bilgisinin Alınması ve Sunucuya Duyurulması

Boss öldürüldüğünde,.quest scripti, pc.get_map_index() ve pc.get_x(), pc.get_y() gibi fonksiyonlarla mevcut konum bilgilerini alır. Bu bilgi daha sonra notice_all fonksiyonu ile tüm oyunculara duyurulur. Örnek bir duyuru mesajı şu şekilde olabilir:

Sunucu: 'Boss X, Y koordinatlarında öldürüldü!'

Quest Script Yapısı

Quest scripti aşağıdaki yapıya sahiptir:

quest boss_killed_announce begin
state start begin
when boss.kill begin
local map = pc.get_map_index()
local x = pc.get_x()
local y = pc.get_y()
notice_all('Boss '..boss.name..' '..map..', '..x..', '..y..' koordinatlarında öldürüldü!')
end
end

Questin Ekstra Özellikleri

Bu quest, sadece duyuru yapmakla kalmaz, aynı zamanda:

- Bossun adı duyuruya dahil edilir.
- Koordinatlar gerçek zamanlı alınır ve duyurulur.
- Gerekirse ödül sistemi eklenebilir.

Sonuç

Boss öldürme olaylarını duyuran bu özel.quest, Metin2 sunucularında oyuncu katılımını ve etkileşimi artırmak için harika bir özelliktir. Metin2lobby.com kullanıcıları olarak, bu gibi özel.quest sistemlerini öğrenmek, sunucu geliştirme becerilerinizi artırmanıza yardımcı olacaktır.


Quest That Announces Where Boss Was Killed Every Time a Boss Dies

Metin2 servers can significantly enhance player experience by implementing custom and eye-catching systems. In this article, we will examine in detail a quest structure that announces where a boss was killed whenever any boss is defeated. With this quest, server administrators and players can track where each boss was defeated.

Basic Structure of the Quest System

In Metin2 servers, quest systems are based on the Lua language. Quest files typically have a .lua extension and run server-side. Some important concepts to consider when writing quests include:

- Trigger: Event trigger. For example, this trigger runs when a boss is killed.
- Mob: The creature involved in the quest. It is defined as a boss.
- State: Current status of the quest. Such as start, continue, complete.
- Reward: Rewards given upon completion of the quest.

Triggering the Boss Kill Event

The main event in this quest is a trigger mechanism that activates when a boss is killed. For this purpose, the kill event is used. When the specified mob is killed, the kill event runs. Upon the boss being killed, a function call is made to the .quest system, retrieving the map and coordinate information where the boss died.

Retrieving Location Information and Broadcasting It to the Server

When the boss is killed, the .quest script retrieves the current location data using functions like pc.get_map_index() and pc.get_x(), pc.get_y(). This information is then broadcasted to all players via the notice_all function. An example announcement message could look like this:

Server: 'Boss X was killed at coordinates Y!'

Quest Script Structure

The quest script follows this structure:

quest boss_killed_announce begin
state start begin
when boss.kill begin
local map = pc.get_map_index()
local x = pc.get_x()
local y = pc.get_y()
notice_all('Boss '..boss.name..' was killed at '..map..', '..x..', '..y..' coordinates!')
end
end

Additional Features of the Quest

This quest not only makes announcements but also:

- Includes the name of the boss in the announcement.
- Fetches and announces coordinates in real-time.
- Optionally, a reward system can be added.

Conclusion

This special .quest announcing boss kill events is an excellent feature for increasing player engagement and interaction on Metin2 servers. As users of Metin2lobby.com, learning about such custom .quest systems will help improve your server development skills.
 

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

Benzer konular

Geri
Üst Alt