Emek serverlerde çok yararlı olabilecek bir quest . Her oyuncu etkinliklerin ne zaman olacağını görebiliyor. Ayrıca sistem günü ve saati gelince otomatik eventi başlatıyor.
- <li data-xf-list-type="ul">Filezillamıza giriyoruz /usr/game/share/locale/turkey/quest bölümüne lua dosyamızı atıyoruz. Puttye geliyoruz. <li data-xf-list-type="ul">cd /usr/game/share/locale/turkey/quest [ENTER] <li data-xf-list-type="ul">./qc oto_event.lua [ENTER] <li data-xf-list-type="ul">Yazıp oyundan gm charımız ile /reload q yazıyoruz. İsteyenler reboot ' da atabilir.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Lua kodu:
Kod:
quest event begin state start begin when letter begin send_letter("Etkinlik Takvimi ") end when info or button begin say_title("Etkinlik Takvimi :") say("") say("Pazartesi: Ay Işığı 21.00 - 23.00 ") say("Salı: Futbol Topu 21.00 - 23.00 ") say("Çarşamba: Pet Sandık 21.00 - 23.00 ") say("Perşembe: Kostüm Sandık 21.00 - 23.00 ") say("Cuma: Bulmaca Kutusu 21.00 - 23.00 ") say_reward("Özel Eventler;") say("Cumartesi : VS-Turnuvası 21.00 KRAL Tag ") say("Pazar : OX-Event - 21.00(10RuhTaşı,1Pençe,1Pul) ") say("") wait() send_letter("Etkinlik Takvimi ") end when login begin local saat = tonumber(os.date("%H")) local gun = tostring(os.date("%A")) if gun == "Monday" then if saat == 21 then if game.get_event_flag("ay_ac") == 0 then game.set_event_flag("ay_ac",1) game.set_event_flag("ay_kapa",0) game.set_event_flag("ayisigi",1) notice_all("Ayışığı eventi 2 saat süreyle başlamıştır.") end elseif saat == 23 then if game.get_event_flag("ay_kapa") == 0 then game.set_event_flag("ay_ac",0) game.set_event_flag("ay_kapa",1) game.set_event_flag("ayisigi",0) notice_all("Ayışığı eventi sona ermiştir.") end end elseif gun == "Tuesday" then if saat == 21 then if game.get_event_flag("top_ac") == 0 then game.set_event_flag("top_ac",1) game.set_event_flag("top_kapa",0) game.set_event_flag("futboltopu",1) notice_all("Futbol Topu eventi 2 saat süreyle başlamıştır.") end elseif saat == 23 then if game.get_event_flag("top_kapa") == 0 then game.set_event_flag("top_ac",0) game.set_event_flag("top_kapa",1) game.set_event_flag("futboltopu",0) notice_all("Futbol Topu eventi bitmiştir.") end end elseif gun == "Wednesday" then if saat == 21 then if game.get_event_flag("pet_ac") == 0 then game.set_event_flag("pet_ac",1) game.set_event_flag("pet_kapa",0) game.set_event_flag("pet_event",1) notice_all("Pet Sandığı eventi 2 saat süreyle başlamıştır.") end elseif saat == 23 then if game.get_event_flag("pet_kapa") == 0 then game.set_event_flag("pet_ac",0) game.set_event_flag("pet_kapa",1) game.set_event_flag("pet_event",0) notice_all("Pet Sandığı eventi bitmiştir.") end end elseif gun == "Thursday" then if saat == 21 then if game.get_event_flag("kostum_ac") == 0 then game.set_event_flag("kostum_ac",1) game.set_event_flag("kostum_kapa",0) game.set_event_flag("dressup",1) notice_all("Kostüm Eventi 2 saat süreyle başlamıştır.") end elseif saat == 23 then if game.get_event_flag("kostum_kapa") == 0 then game.set_event_flag("kostum_ac",0) game.set_event_flag("kostum_kapa",1) game.set_event_flag("dressup",0) notice_all("Kostüm Eventi bitmiştir.") end end elseif gun == "Friday" then if saat == 21 then if game.get_event_flag("bilgi_ac") == 0 then game.set_event_flag("bilgi_ac",1) game.set_event_flag("bilgi_kapa",0) game.set_event_flag("kids_day_quiz",1) notice_all("Bulmaca Kutusu Eventi 2 saat süreyle başlamıştır.") end elseif saat == 23 then if game.get_event_flag("bilgi_kapa") == 0 then game.set_event_flag("bilgi_ac",0) game.set_event_flag("bilgi_kapa",1) game.set_event_flag("kids_day_quiz",0) notice_all("Bulmaca Kutusu Eventi bitmiştir.") end end end end end end
Metin2'de Etkinlik Takvimi ve Otomatik Event Quest Sistemi
Metin2 Lobby olarak, oyuncularımızın daha keyifli ve organize bir oyun deneyimi yaşamasını sağlamak amacıyla etkinlik takvimi ve otomatik event quest sistemlerini detaylıca ele alıyoruz. Bu yazıda, Metin2 sunucularında kullanılan quest sistemlerinin gelişmiş örneklerinden biri olan event quest yapısını inceleyeceğiz. Ayrıca, lua tabanlı quest yazımı, trigger mekanizmaları, zamanlayıcılar ve otomasyon süreçleri hakkında teknik bilgiler sunacağız.
Metin2 Quest Sistemine Genel Bakış
Metin2 oyununda quest sistemi, oyuncuların belirli görevleri tamamlayarak ödüller kazandığı dinamik bir yapıdır. Bu görevler; NPC ile etkileşim, belirli item'ları toplama, belirli haritalarda görev yapma gibi farklı şekillerde şekillenebilir. Quest sistemi, lua dili kullanılarak yazılmaktadır. Quest script dosyaları, sunucu tarafında çalıştırılan komutlarla oyun içinde etkileşim kurulmasını sağlar. Quest geliştirme sürecinde, geliştiriciler hem oyun içi akışı hem de kullanıcı deneyimini optimize etmeye çalışır.
Etkinlik Takvimi Nedir?
Metin2 sunucularında etkinlik takvimi, belirli zamanlarda oynatılan özel etkinliklerin listesidir. Bu etkinlikler genellikle PvP turnuvaları, özel boss savaşları, günlük görevler veya özel item düşürme oranları şeklinde olabilir. Takvim üzerinden etkinlikler planlanabilir ve oyuncular bu etkinliklere göre oyun içi stratejilerini ayarlayabilirler. Takvim sistemi, quest timer ve trigger yapılarıyla entegre çalışarak, etkinliğin zamanında başlatılmasını sağlar.
Otomatik Event Quest Nedir?
Otomatik event quest, belirlenen saatte veya belirli koşullar sağlandığında otomatik olarak başlatılan quest sistemidir. Oyunculara, etkinlik sırasında belirli görevler verilir ve bu görevler tamamlandıkça özel ödüller kazanılır. Örneğin, 'Boss öldürme', 'Belirli item toplama', 'Belirli haritada görev yapma' gibi görevler otomatik olarak verilebilir. Bu sistemde lua kodları kullanılarak, quest begin ve quest end işlemleri zamanlayıcılarla kontrol edilir.
Quest Script Yapısı ve Otomasyon
Otomatik event quest sistemini kurarken, aşağıdaki temel yapılar önemlidir:
- Quest begin: Quest'in başlatılması.
- Timer[/BR]- Trigger: Belirli bir eylem tetiklendiğinde quest çalışır.
- Reward: Görev tamamlandığında verilen ödül.
- State: Quest'in durumunu yönetir (başlangıç, devam, bitiş).
Örnek bir script yapısı şu şekilde olabilir:
Kod:
[BR][/BR]quest auto_event begin[BR][/BR] state start begin[BR][/BR] when login or enter begin[BR][/BR] say('Event gunu basladi!')[BR][/BR] end[BR][/BR] when 2100.server_timer begin[BR][/BR] notice_all('Event 10 dakika icinde baslayacak!')[BR][/BR] end[BR][/BR] end[BR][/BR]end[BR][/BR]
Metin2 Lobby'da Quest Geliştirme
Metin2 Lobby, quest geliştirme konusunda aktif olarak çalışmaktadır. Geliştirilen quest sistemleri, hem sunucu performansını etkilememeli hem de oyuncu deneyimini artırmalıdır. Custom quest ve daily quest sistemleri, oyuncuların her gün oyunu açmalarını teşvik eder. Quest debug işlemleri ile hatalar erken aşamada tespit edilerek sorunsuz bir sistem sağlanır. Martysama ve Metin2Dev gibi platformlar, quest geliştirme sürecinde önemli kaynaklardır.
Sonuç
Etkinlik takvimi ve otomatik event quest sistemi, Metin2 sunucularında oyuncuların ilgisini çekecek güçlü bir araçtır. Lua tabanlı quest sistemleri, bu yapıların daha dinamik ve etkili çalışmasını sağlar. Metin2 Lobby, bu tür gelişmiş quest yapılarını desteklemeye devam ederek, oyunculara benzersiz deneyimler sunmaktadır.
Event Calendar and Automatic Event Quest System in Metin2
At Metin2 Lobby, we focus on providing our players with a more enjoyable and organized gaming experience by thoroughly examining the event calendar and automatic event quest systems. In this article, we will explore the advanced event quest structure, which is one of the dynamic examples of quest systems used in Metin2 servers. Additionally, we will provide technical information about lua-based quest scripting, trigger mechanisms, timers, and automation processes.
Overview of the Metin2 Quest System
In Metin2, the quest system allows players to complete certain tasks to earn rewards. These quests can take various forms such as interacting with NPCs, collecting specific items, or completing missions in certain maps. The quest system is scripted using the lua language. Quest script files enable interactions within the game through commands executed on the server side. During the quest development process, developers aim to optimize both the in-game flow and user experience.
What Is an Event Calendar?
The event calendar in Metin2 servers lists special events that occur at specific times. These events may include PvP tournaments, special boss fights, daily quests, or increased drop rates for special items. Players can plan their in-game strategies around these events. The calendar system works integrated with quest timer and trigger mechanisms to ensure events start on time.
What Is an Automatic Event Quest?
An automatic event quest is a quest system that starts automatically at a predetermined time or under certain conditions. Players are given specific tasks during the event, and upon completion, they receive special rewards. For example, quests like 'Defeat Boss', 'Collect Specific Items', or 'Complete Missions in Certain Maps' can be assigned automatically. In this system, lua codes are used to control quest begin and quest end operations via timers.
Quest Script Structure and Automation
When setting up an automatic event quest system, the following basic structures are important:
- Quest begin: Initiates the quest.
- Timer: Executes actions after a certain time interval.
- Trigger: Runs the quest when a specific action occurs.
- Reward: The prize given upon quest completion.
- State: Manages the status of the quest (start, continue, end).
An example script structure might look like this:
Kod:
[BR][/BR]quest auto_event begin[BR][/BR] state start begin[BR][/BR] when login or enter begin[BR][/BR] say('Event day has started!')[BR][/BR] end[BR][/BR] when 2100.server_timer begin[BR][/BR] notice_all('Event will start in 10 minutes!')[BR][/BR] end[BR][/BR] end[BR][/BR]end[BR][/BR]
Quest Development at Metin2 Lobby
Metin2 Lobby actively works on quest development. Developed quest systems should not only avoid affecting server performance but also enhance the player experience. Custom quest and daily quest systems encourage players to log in every day. Quest debug processes help detect errors early, ensuring a smooth system. Platforms like Martysama and Metin2Dev serve as valuable resources during the quest development process.
Conclusion
The event calendar and automatic event quest system are powerful tools that attract players in Metin2 servers. Lua-based quest systems allow these structures to function more dynamically and effectively. Metin2 Lobby continues to support such advanced quest structures, offering unique experiences to its players.
