Servere Şebnem Yüzüğü Ekleme !

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
KURULUM:
Oyunumuzun Filezillasına bağlanıyoruz. Sizlere belirttiğim dizine giriyoruz.

cd /usr/game/share/locale/turkey/quest giriniz. Ardından indirdiğiniz sebnem.lua dosyasını filezillaya atınız

Daha sonra putty açıp login oluyoruz şu kodu yazınız.

cd /usr/game/share/locale/turkey/quest
daha sonra altına
./qc sebnem.lua yazıp entere basıyorsunuz.

Oyuna gelip /reload q yapın ve oyun içerisinden /i 40004 yazın göreceksiniz sebnem yüzüğü aktıf olacaktır.




Metin2 Lobby olarak, Metin2 sunucularında özel içerik üretimi konusunda uzmanlaşmış bir ekip olarak, bugün sizlere quest geliştirme alanında sıkça sorulan konulardan biri olan 'Servere Şebnem Yüzüğü Ekleme' işlemini detaylıca anlatıyoruz.

Metin2 sunucularında özel ödüller veya özel item sistemleri oluşturmak, oyuncu deneyimini zenginleştirmek açısından büyük önem taşır. Özellikle quest sistemleri üzerinden sunulan özel item'lar, oyuncuların motivasyonunu artırır. Bu yazıda, quest üzerinden Şebnem Yüzüğü[/BR] gibi özel bir item'ı nasıl sunucuya ekleyeceğinizi adım adım anlatacağız.

Öncelikle Şebnem Yüzüğü Nedir?
Metin2'de Şebnem Yüzüğü, genellikle özel quest ödülleriyle verilen nadir ve güçlü item'lar arasında yer alır. Oyuncuların belirli görevleri tamamlamasıyla elde edebileceği bu yüzük, hem estetik hem de bonus değerler açısından tercih edilir. Sunucunuzda bu item'ı quest reward olarak sunmak, oyuncular için cazip bir teşvik oluşturacaktır.

Quest Dosyası Hazırlığı
İlk adım olarak, lua quest dosyasını oluşturmak veya mevcut birini düzenlemektir. Quest dosyası genellikle server/core/quest klasöründe bulunur. Eğer custom quest geliştiriyorsanız, yeni bir .lua dosyası oluşturarak başlayabilirsiniz.

Quest Script Yazımı
Aşağıda örnek bir quest script parçası bulacaksınız. Bu script, oyuncunun belirli bir görevi tamamlaması durumunda Şebnem Yüzüğü item'ını verir:

Kod:
[B][COLOR=#9365b8]quest sebnem_yuzugu begin[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]state start begin[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]when login with pc.get_level() >= 70 begin[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]say_title('Yeni Görev')[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]say('Seviye 70 ve üzeri oyunculara özel görev')[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]local answer = select('Göreve Başla', 'Vazgeç')[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]if answer == 1 then[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]set_state(quest_step1)[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]state quest_step1 begin[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]when kill with npc.is_pc() == 0 and npc.get_race() == 101 begin[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]pc.setqf('mob_killed', pc.getqf('mob_killed') + 1)[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]if pc.getqf('mob_killed') >= 10 then[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]chat('Görev tamamlandı!')[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]pc.give_item2('sebnem_yuzugu', 1)[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]clear_letter()[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]set_state(__COMPLETE__)[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B]


Item ID ve Veritabanı Ayarları
Şebnem Yüzüğü gibi özel item'ların doğru şekilde verilebilmesi için, item_proto dosyasında tanımlı olması gerekir. Bu dosya genellikle server/game/item_proto klasöründedir. Item ID, sunucu çakışmalarını önlemek için benzersiz olmalıdır.

Quest Trigger ve NPC Ayarları
Quest sisteminin aktif olması için, oyuncunun etkileşimde bulunabileceği NPC veya tetikleyici sistemlerin ayarlanması da önemlidir. Bu sistemler, quest_trigger ve quest_npc dosyaları üzerinden yönetilir.

Debug ve Test Aşamaları
Quest yazımında hata yapma ihtimali her zaman vardır. Quest debug işlemleri için, test sunucusunda görevi başlatıp, tüm adımları kontrol etmeniz gerekir. Metin2dev veya Martysama gibi platformlardan örnek script'ler de inceleyebilirsiniz.

Sonuç
Sunucunuza Şebnem Yüzüğü gibi özel item'ları quest sistemi üzerinden entegre etmek, oyuncu sadakatini artırmak için etkili bir yöntemdir. Metin2Lobby.com olarak, quest geliştirme konusunda daha fazla kaynak ve örnek için sitemizi takip etmeye devam edin.


Metin2 Lobby, as a team specialized in creating custom content for Metin2 servers, today we explain in detail how to add the Sebnem Ring to your server through quest development, one of the frequently asked topics in this area.

Adding special rewards or special items on Metin2 servers is crucial in enhancing the player experience. Especially, special items given via quests motivate players significantly. In this article, we will explain step by step how to offer an item like the Sebnem Ring as a quest reward.

What is the Sebnem Ring?
In Metin2, the Sebnem Ring is considered among the rare and powerful items usually distributed through special quests. Players can obtain this ring after completing certain missions. Offering this ring as a quest reward on your server creates an attractive incentive for players due to its aesthetic and bonus attributes.

Preparing the Quest File
The first step is to create or modify a lua quest file. The quest file is typically located in the server/core/quest folder. If you are developing a custom quest, you can start by creating a new .lua file.

Writing the Quest Script
Below is an example quest script that awards the Sebnem Ring upon completing a specific task:

Kod:
[B][COLOR=#9365b8]quest sebnem_ring begin[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]state start begin[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]when login with pc.get_level() >= 70 begin[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]say_title('New Quest')[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]say('Special quest for level 70+ players')[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]local answer = select('Start Quest', 'Cancel')[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]if answer == 1 then[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]set_state(quest_step1)[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]state quest_step1 begin[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]when kill with npc.is_pc() == 0 and npc.get_race() == 101 begin[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]pc.setqf('mob_killed', pc.getqf('mob_killed') + 1)[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]if pc.getqf('mob_killed') >= 10 then[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]chat('Quest completed!')[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]pc.give_item2('sebnem_ring', 1)[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]clear_letter()[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]set_state(__COMPLETE__)[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B][BR][/BR][B][COLOR=#9365b8]end[/COLOR][/B]


Item ID and Database Setup
For special items like the Sebnem Ring to be properly awarded, they must be defined in the item_proto file. This file is usually located under server/game/item_proto. The item ID must be unique to avoid conflicts on the server.

Quest Trigger and NPC Configuration
For the quest system to work, NPCs or triggers for player interaction must be set up. These systems are managed via quest_trigger and quest_npc files.

Debugging and Testing
There's always a chance of errors during quest writing. For quest debugging, initiate the quest in a test environment and verify each step. You can also review example scripts from platforms such as Metin2dev or Martysama.

Conclusion
Integrating special items like the Sebnem Ring into your server via quests is an effective way to increase player loyalty. At Metin2Lobby.com, continue following our site for more resources and examples on quest development.
 

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

Geri
Üst Alt