EP Verme Questi Hakkında Yardım !!!!

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
100 Ep Kodu

quest yuzep begin
state start begin
when 80014.use begin
say_title("Ep Bozdurma:")
say_reward("Bu itemi yok edip karsiliginda hesabina")
say_reward("100 EP yuklenmesini ister misin?")
local isim = pc.get_name()
local s = select("Evet","Hayir")
if s == 1 then
say("Peki Epin hesabina yuklendi fastbilisim.com")
wait()
pc.remove_item(80014)
mysql_query("UPDATE account.account SET coins = coins + 100 WHERE id = (SELECT account_id FROM player.player WHERE name='"..isim.."');")
end
elseif s == 2 then
end
end
end
end


Bu questi deniyorum arkadaşlar Çalışmıyor serverimde EP kupon sistemi war onlarda çalışmıyor biri yardımcı olabilirmi üstteki questin konusunu gitmek için 35. questde bu üsteki yazdıgım bi yardımcı olun arkadaşlar anlayan
EP Verme Questi Hakkında Yardım !!!!!

Metin2Lobby olarak Metin2 sunucularında quest sistemlerine odaklanan bu makalede, EP (Experience Point) veren quest oluşturma konusunda detaylı bilgiler sunuyoruz. Quest sistemi, Metin2 oyununda oyuncuların ilerlemesini sağlayan temel mekanizmalardan biridir. Özellikle lua tabanlı quest geliştirme konusunda bilgi sahibi olmak isteyen geliştiriciler için bu yazı önemli bir rehber niteliğinde olacaktır.

EP Verme Quest Nedir?
Metin2 oyununda EP veren bir quest, tamamlandığında oyuncuya belirli miktarda tecrübe puanı kazandıran özel bir görevdir. Bu quest türü, oyuncuların seviye atlamasını hızlandırabilir ve oyun içi motivasyonu artırabilir. Lua dilinde yazılmış olan quest dosyaları sayesinde, EP miktarı, tetiklenme koşulları, ödül sistemi gibi birçok özellik özelleştirilebilir.

Quest Oluşturma Aşamaları
Öncelikle, Metin2 sunucusunda bir quest oluşturabilmek için lua bilgisi gerekir. Quest sistemi, lua komutlarını kullanarak begin, end, state, trigger, timer, flag gibi yapılarla şekillenir. Örneğin, bir quest başlatıldığında begin bloğu çalışır, görev tamamlandığında end bloğu devreye girer. Bu bloklar arasında EP verme işlemi de tanımlanabilir.

EP Verme Kod Yapısı
Lua içinde bir quest dosyasında EP vermek için aşağıdaki gibi bir kod yapısı kullanılabilir:

Kod:
[BR][/BR]when complete.quest begin[BR][/BR]    say('Tebrikler! Quest tamamlandı!')[BR][/BR]    pc.give_exp2(500000) -- 500.000 EP verir[BR][/BR]end[BR][/BR]


Quest Reward Sistemi
Bir quest'te sadece EP değil, item veya gold gibi başka ödüller de verilebilir. Reward sistemi, quest tamamlandığında oyuncuya sunulan ödül türünü belirler. Metin2 sunucularında custom quest geliştirmek isteyen geliştiriciler için reward bloğu çok önemlidir. Ödül miktarı ve türü, quest zorluğuna göre ayarlanmalıdır.

Daily Quest ve EP
Daily quest olarak adlandırılan günlük görevler, oyunculara her gün yeniden aktif olma teşviki verir. Bu görevlerde EP vermek, oyuncuların seviye atlamasını destekler. Timer ve flag yapıları ile daily quest zamanlayıcıları oluşturulabilir. Metin2Dev ve MartySama gibi platformlar, bu tür gelişmiş quest örneklerini incelemeniz için kaynak oluşturabilir.

Hata Ayıklama ve Debug
Quest geliştirirken karşılaşılan en büyük sorunlardan biri debug yapmaktır. Lua dosyalarında hatalar oluştuğunda, quest beklendiği gibi çalışmayabilir. Metin2 sunucularında quest hatalarını tespit etmek için log dosyaları incelenmelidir. Say fonksiyonu ile debug mesajları yazdırılabilir.

Quest Editörleri ve Araçlar
Quest geliştirme sürecini kolaylaştırmak için bazı edit araçları kullanılabilir. Ancak, lua bilgisi olmadan bu araçlar sınırlı kalabilir. Metin2 geliştiricileri için quest dosyaları elle düzenlenmelidir. Metin2Lobby olarak, custom quest geliştirme konusunda deneyim kazanmak için bolca örnek incelemenizi öneririz.


Help with EP Giving Quest !!!!!

Metin2Lobby presents this article focusing on Metin2 quest systems, especially on how to create quests that award EP (Experience Points). The quest system is one of the core mechanisms that allow players to progress in Metin2. This guide is essential for developers looking to expand their knowledge about lua-based quest development.

What is an EP Giving Quest?
An EP giving quest in Metin2 is a special task that awards experience points upon completion. These types of quests can accelerate player level-ups and boost in-game motivation. With lua based quest files, various aspects such as the amount of EP, trigger conditions, and reward systems can be customized.

Steps to Create a Quest
To create a quest in a Metin2 server, you need to have knowledge of lua. The quest system operates using structures like begin, end, state, trigger, timer, and flag. For example, the begin block runs when a quest starts, while the end block activates upon completion. Within these blocks, EP rewards can be defined.

EP Giving Code Structure
In lua, the following code structure can be used to award EP:

Kod:
[BR][/BR]when complete.quest begin[BR][/BR]    say('Congratulations! Quest completed!')[BR][/BR]    pc.give_exp2(500000) -- Gives 500,000 EP[BR][/BR]end[BR][/BR]


Quest Reward System
In addition to EP, other rewards such as items or gold can also be given through a quest. The reward system defines what the player receives upon quest completion. Developers aiming to create custom quests on Metin2 servers should pay close attention to the reward block. The type and amount of reward should match the difficulty of the quest.

Daily Quests and EP
Daily quests encourage players to log in every day. Awarding EP through these quests helps players level up faster. Timer and flag structures can be used to set up daily quest timers. Platforms like Metin2Dev and MartySama offer examples of advanced quests that can serve as references.

Debugging and Error Handling
One of the main challenges in quest development is debugging. When errors occur in lua files, the quest may not function as expected. Log files must be reviewed to detect issues. Debug messages can be printed using the say function.

Quest Editors and Tools
Some tools can simplify the quest development process, but without knowledge of lua, they may prove limited. On Metin2, quest files are best edited manually. At Metin2Lobby, we recommend studying many examples to gain experience in custom quest development.
 

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

Benzer konular

Geri
Üst Alt