İtem Verme Görevi [DHN]

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
GM'LER İÇİN OYUNCAYA İTEM VERME QUESTİ

Arkadaşlar daha öncede forumda paylaşılmış olabilir bu özellik. hatta (gm servis) adında bir görevin içinde var. Ben sadece (item ver) görevi olarak isteyenler için yaptım. tek görevi de item vermek :D konumuza geçelim... LİNKLER VE ANLATIM AŞAĞIDA

--RESİMLER--

bY4M5d.png


rRd8VN.png


PBE6BN.png


m5877R.png


--Linkler ve Virüs Total--

İNDİRME LİNKİ :
VİRÜS TOTAL :

--ANLATIM--

MADDE-1 ==> İndirdiğiniz rar dosyasının içinde dhn_itemver.quest dosyasını masaüstüne çıkarın.

MADDE-2 ==> Filezilla ya bağlanıp. "/usr/game/share/locale/turkey/quest" dizinini açınız (tırnak işaretleri yok.)

MADDE-3 ==> Masaüstüne çıkarttığınız dhn_itemver.quest dosyasını filezillada açmış olduğunuz dizine atınız.

MADDE-4 ==> PUTTY e bağlanınız ve "cd /usr/game/share/locale/turkey/quest" yazıp enter e basınız (tırnaklar yok.)

MADDE-5 ==> Entere bastıktandan sonra "./qc dhn_itemver.quest" yazıp entere basınız (tırnaklar yok)

MADDE-5 ==> Servere reboot atınız yada oyunda gm çarıyla "/reload q" yazınız.(reboot atmanız tavsiye edilir.)

Bir yorumu ve TEŞEKKÜRÜ çok görmeyin arkadaşlar.
Metin2'de İtem Verme Görevi Oluşturma Rehberi (DHN)

Metin2 sunucularında görev sistemleri, oyuncuların oyun içi ilerlemesini teşvik eden temel yapı taşlarından biridir.

Birçok Metin2 geliştiricisi, oyunculara belirli görevler vererek onları oyun içinde aktif tutmayı amaçlar. Bu görevlerden biri de İtem Verme Görevi'dir. Bu yazıda, DHN formatında yazılmış bir İtem Verme Görevi nasıl oluşturulur, hangi adımlar izlenir, neler dikkate alınmalıdır gibi konulara değineceğiz.

İtem Verme Görevi Nedir?

Görev tabanlı sistemler, oyunculara belirli eylemleri gerçekleştirmeleri karşılığında ödüller sunar.

Özellikle Metin2 gibi MMORPG oyunlarında, görevler (quest) hem oyun dünyasının daha derinleşmesini sağlar hem de oyuncuların belirli ödüller kazanması için önemli bir araçtır. İtem Verme Görevi, oyuncuya görev tamamlandığında belirli bir eşya (item) veren görev türüdür. Bu görevler genellikle günlük görevler (daily quest), özel görevler (custom quest) ya da serüven görevleri (quest chain) olarak kullanılabilir.

DHN Formatında Görev Yazımı

DHN (Developer Helper Notation), Metin2 geliştiricileri tarafından kullanılan basitleştirilmiş bir görev yazım sistemidir.

Genellikle Lua tabanlı görevlerde kullanılır. DHN formatında bir görev yazarken, görevin başlatılması, devam ettirilmesi ve bitirilmesi için gerekli olan tüm adımlar belirlenir. Örneğin bir görevin başlaması için belirli bir NPC ile konuşulması, görev sırasında belirli düşmanları öldürülmesi, görev sonunda ise ödül olarak bir item verilmesi gibi.

Örnek Görev: Güçlü Kutsal Silah

Bu örnek, oyuncuya güçlü bir silah veren özel bir görev örneğidir.

NPC ile konuşulduğunda başlatılır. Görevin amacı, 10 adet Devil General yaratığını öldürmek ve ardından_npc ile konuşarak görevi tamamlamaktır. Görev tamamlandığında oyuncuya Divine Sword adlı özel bir silah verilir.

Görev Script Yapısı

Quest divine_sword_begin begin

state start begin

when 1000.click with pc.level >= 30 begin

say 'Görünüşe göre güçlü bir savaşçı oldun.'

local sel = select('Görev al', 'Hayır') if sel == 2 then return end

set_state(info) -- Göreve devam et

end

end


state info begin

when login or enter begin

notice('Devil General yaratıklarını öldürerek görevi tamamla.') -- Bilgilendirme mesajı

end


when 1001.kill count 10 begin

say('Tebrikler! Devil General yaratıklarını susturdun.') -- Yaratık öldürüldüğünde

set_state(reward) -- Ödül durumuna geç

end

end


state reward begin

when 1000.click begin

say('Harika iş çıkarttın! İşte ödülüne layık görüldün.') -- NPC ile konuşma

pc.give_item(19999, 1) -- Divine Sword verilir

clear_letter() -- Görevi temizle

end

end

end

Görevde Dikkat Edilmesi Gerekenler

Görevler yazılırken dikkat edilmesi gereken bazı teknik konular vardır.

Öncelikle, görevin başlatılacağı NPC'nin ID'si doğru olmalıdır. Ayrıca, görevde kullanılan item ID'leri doğrulanmalı ve sunucuda mevcut olduğundan emin olunmalıdır. Görevin akışı sırasında hata çıkmaması için quest debug işlemleri yapılmalı, hatalar kontrol edilmelidir. Görevin sonunda verilecek itemlerin doğruluğu kontrol edilmeli, aksi takdirde oyuncu görevi tamamlayamaz veya ödül alamaz.

Sonuç

Metin2 geliştiricileri için görev sistemleri, oyuncu deneyimini zenginleştiren önemli unsurlardır.

İtem Verme Görevi gibi özel görevler, oyuncuların motivasyonunu artırır ve oyun içi ekonomiyi etkileyebilir. DHN formatında yazılmış görevler, gelişmiş script bilgisi gerektirmez ve hızlıca entegre edilebilir. Doğru planlama ve test ile Metin2 sunucularınızda kaliteli görev sistemleri oluşturabilirsiniz.


Creating Item Reward Quests in Metin2 (DHN Format)

In Metin2 servers, quest systems are one of the fundamental elements that encourage player progression within the game.

Many Metin2 developers aim to keep players active by assigning specific quests. One such quest is the Item Reward Quest. In this article, we will discuss how to create an Item Reward Quest written in DHN format, including the steps involved and important considerations.

What Is an Item Reward Quest?

Quest-based systems offer rewards to players upon completing certain actions.

Especially in MMORPG games like Metin2, quests help deepen the game world while also serving as a way for players to earn rewards. An Item Reward Quest is a type of quest that grants a specific item to the player once completed. These quests can often be used as daily quests, custom quests, or part of a quest chain.

Writing Quests in DHN Format

DHN (Developer Helper Notation) is a simplified system used by Metin2 developers to write quests.

It is commonly used in Lua-based quest scripts. When writing a quest in DHN format, all necessary steps—starting, progressing, and finishing the quest—are defined. For example, talking to an NPC to start the quest, killing specific monsters during the quest, and finally returning to the NPC to receive an item reward upon completion.

Sample Quest: The Powerful Sacred Weapon

This example demonstrates a custom quest that awards a powerful weapon to the player.

The quest starts when speaking to an NPC. The goal is to kill 10 Devil General monsters and then speak to the NPC again to complete the quest. Upon completion, the player receives the special weapon Divine Sword.

Quest Script Structure

Quest divine_sword_begin begin

state start begin

when 1000.click with pc.level >= 30 begin

say 'You seem to have become a strong warrior.'

local sel = select('Accept quest', 'No') if sel == 2 then return end

set_state(info) -- Continue to quest

end

end


state info begin

when login or enter begin

notice('Defeat the Devil General monsters to complete the quest.') -- Info message

end


when 1001.kill count 10 begin

say('Congratulations! You silenced the Devil Generals.') -- On monster kill

set_state(reward) -- Proceed to reward state

end

end


state reward begin

when 1000.click begin

say('Great job! You have earned this reward.') -- Speak to NPC

pc.give_item(19999, 1) -- Give Divine Sword

clear_letter() -- Clear quest

end

end

end

Important Considerations for Quest Development

There are several technical aspects to consider when creating quests.

Firstly, the NPC ID triggering the quest must be correct. Additionally, item IDs used in the quest must be validated and confirmed to exist on the server. To prevent errors during the quest flow, quest debug operations should be performed, and errors checked. The correctness of items given as rewards at the end of the quest should be verified; otherwise, the player may not be able to complete the quest or receive the reward.

Conclusion

For Metin2 developers, quest systems are crucial components that enhance the player experience.

Special quests like Item Reward Quests boost player motivation and can influence in-game economy. Quests written in DHN format do not require advanced scripting knowledge and can be integrated quickly. With proper planning and testing, you can build high-quality quest systems on your Metin2 server.
 

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

Benzer konular

Geri
Üst Alt