NPC'ye İtemi sürükle İstediğin Efsunu sec (DEV 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 72

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Merhaba, Arkadaşlar Bugün sizlere Efsun adlı dosyayı paylaşacağım.
Dosyananın amacı nedir? açıklayayım öncelikle: İtem yapmakla uğraşmak istemeyenler itemini npcnin üstüne bırakıyor ve karşısına gelen ekranda istediği efsunu seçiyor ve böylelikle 2dk da itemini bitirebilir.


+++REP VERMEYİ UNUTMAYINIZ

Dosyayı indirmek istiyenler;


VİRUS TOTAL SONUCU EKLENDİ!
KANIT:
181039_67e67c919c617037d1c8d79b0f6a222b.png

NPC'ye İtemi Sürükle İstediğin Efsunu Sec (DEV QUEST)

Metin2 oyununda quest sistemleri, oyuncuların deneyim kazanması, efsunlar elde etmesi ve karakter gelişimini sağlaması açısından büyük önem taşır. Bu yazıda, NPC'ye bir itemi sürükleyerek istenen efsunun seçilebildiği gelişmiş bir DEV Quest yapısını inceleyeceğiz. Bu quest sayesinde oyuncular, kendi tercih ettikleri efsunları doğrudan NPC üzerinden belirleyebilecekler.

Quest Nedir ve Nasıl Çalışır?

Metin2 dünyasında questler, oyuncuların belirli görevleri tamamlayarak ödüller kazandığı sistemlerdir. DEV Quest olarak adlandırılan gelişmiş questler ise daha karmaşık yapıya sahiptir ve genellikle Lua dili ile yazılır. Bu quest türleri, sunucu tarafında özel komutlarla tetiklenir ve oyuncuya dinamik etkileşim sunar.

NPC ile Item Sürükleme Sistemi[/BR][/BR]
Bu quest sistemi, NPC'ye bir itemi sürükleyerek başlatılır. Oyuncu, belirli bir itemi (örneğin bir kağıt ya da özel bir eşya) NPC üzerine sürüklediğinde quest aktif olur. Ardından NPC, oyuncuya bir menü göstererek hangi efsunun istendiğini sorar. Oyuncu seçimini yaptıktan sonra, seçilen efsun doğrudan envanterine eklenir.

Örnek Lua Kod Yapısı

Quest dosyası lua uzantılıdır ve Metin2 sunucusuna özel olarak yüklenmelidir. Aşağıda örnek bir quest yapısı verilmiştir:

quest secilen_efsun_quest begin
state start begin
when ITEM_ID.use with pc.get_item_count(ITEM_ID) > 0 begin
say_title('Efsun Seçim Menüsü')
local secim = select('Güç Efsunu', 'Hız Efsunu', 'Zeka Efsunu', 'Vazgeç')

if secim == 1 then
pc.give_item2('güc_efsunu_item_id')
elseif secim == 2 then
pc.give_item2('hiz_efsunu_item_id')
elseif secim == 3 then
pc.give_item2('zeka_efsunu_item_id')
end
end
end

Sistem Özellikleri

- Oyuncu envanterinde belirtilen item varsa quest çalışır.
- NPC ile doğrudan etkileşim sağlar.
- Tercih edilen efsunu doğrudan verir.
- Hata ayıklama (debug) kolaydır.
- Sunucuya özel özelleştirilebilir.

Notlar

Bu tür custom quest yapıları, oyuncu deneyimini ciddi anlamda artırır. Özellikle Metin2 sunucularında bu gibi gelişmiş quest sistemleri, oyuncuların daha fazla oyunda kalmasını sağlar. Metin2Lobby.com olarak bu tür özgün questlerin paylaşımına devam ediyoruz.

Sonuç

NPC'ye item sürükleyip efsun seçme sistemi, Metin2 quest geliştiricileri için harika bir özelliktir. Hem kullanıcı dostu hem de sunucu yöneticileri için esneklik sağlar. Eğer Metin2 quest geliştirme konusunda daha fazla bilgiye ihtiyacınız varsa, Metin2Lobby olarak sitemizde birçok örnek bulabilirsiniz.


Drag Item to NPC and Choose Your Desired Enchant (DEV QUEST)

Metin2 game quests are essential for players to gain experience, acquire enchantments, and advance their characters. In this article, we will examine an advanced DEV Quest structure that allows players to select desired enchantments by dragging an item onto an NPC. With this quest, players can directly choose their preferred enchantments via the NPC.

What Is a Quest and How Does It Work?

In Metin2, quests are systems where players complete specific tasks to earn rewards. Advanced quests, known as DEV Quests, have more complex structures and are usually written in Lua. These types of quests are triggered by special commands on the server side and provide dynamic interaction with players.

Dragging Items to NPCs System[/BR][/BR]
This quest system starts when an item is dragged onto an NPC. The player drags a specific item (such as a paper or a special object) onto the NPC, which activates the quest. Then, the NPC shows a menu asking which enchantment the player wants. After the player selects their choice, the chosen enchantment is added directly to their inventory.

Sample Lua Code Structure

The quest file has a lua extension and must be loaded specifically onto the Metin2 server. Below is an example of a quest structure:

quest selected_enchant_quest begin
state start begin
when ITEM_ID.use with pc.get_item_count(ITEM_ID) > 0 begin
say_title('Enchant Selection Menu')
local selection = select('Power Enchant', 'Speed Enchant', 'Intelligence Enchant', 'Cancel')

if selection == 1 then
pc.give_item2('power_enchant_item_id')
elseif selection == 2 then
pc.give_item2('speed_enchant_item_id')
elseif selection == 3 then
pc.give_item2('intelligence_enchant_item_id')
end
end
end

System Features

- Works if the specified item exists in the player's inventory.
- Enables direct interaction with the NPC.
- Directly gives the chosen enchantment.
- Easy to debug.
- Can be customized per server.

Notes

Such custom quest structures significantly enhance the player experience. Especially in Metin2 servers, such advanced quest systems help keep players engaged longer. At Metin2Lobby.com, we continue to share these kinds of original quests.

Conclusion

The system allowing players to drag items to NPCs to choose enchantments is a great feature for Metin2 quest developers. It is both user-friendly and flexible for server administrators. If you need more information about Metin2 quest development, visit our site Metin2Lobby for many examples.
 

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

Benzer konular

Geri
Üst Alt