Quest sayesinde, 71000 ID'li item ile 11005 (Savaş Sorumlusu) ID'li NPC'den giriş yapabilirsiniz. Sistem, 60 dakika soğuma süresi ile tasarlanmıştır. Dosyalarınıza uygun olarak 63. ve 64. satırları düzenleyebilirsiniz.
---------------------------------------------------------
quest nemere_dungeon begin
state start begin
when login begin
if pc.get_map_index() >= 3520000 and pc.get_map_index() < 3529000 then
local last_entry = pc.getqf("last_entry_time") or 0
local current_time = get_global_time()
local cooldown_seconds = 3600 -- 1 saat = 3600 saniye
if current_time - last_entry < cooldown_seconds then
local remaining_time = cooldown_seconds - (current_time - last_entry)
local remaining_minutes = math.ceil(remaining_time / 60)
say_title("Bekci:")
say(string.format("Zindana tekrar girebilmeniz için daha %d dakika beklemeniz gerekiyor.", remaining_minutes))
return
end
end
end
when logout begin
local idx = pc.get_map_index()
if idx == 352 or (idx >= (352 * 10000) and idx < (352 * 10000 + 9000)) then
pc.setqf("last_entry_time", get_global_time())
end
end
when 11005.chat."Nemerenin Gözetleme Kulesi(Tek Kat)" begin
local last_entry = pc.getqf("last_entry_time") or 0
local current_time = get_global_time()
local cooldown_seconds = 3600 -- 1 saat = 3600 saniye
if current_time - last_entry < cooldown_seconds then
local remaining_time = cooldown_seconds - (current_time - last_entry)
local remaining_minutes = math.ceil(remaining_time / 60)
say_title("Bekci:")
say(string.format("Zindana tekrar girebilmeniz için daha %d dakika beklemeniz gerekiyor.", remaining_minutes))
return
end
if pc.get_level() < 90 then
say_title("Bekci:")
say("90. seviyenin altında olduğun için zindana giremezsin.")
return
end
if pc.count_item(71000) < 1 then
say_title("Bekci:")
say(string.format("Gerekli eşya: %s. Eşyayı envanterinde bulundurmalısın.", item_name(71000)))
return
end
if party.is_party() then
say_title("Bekci:")
say("Grup halinde zindana giremezsiniz.")
return
end
say_title("Bekci:")
say("Zindana girmek istiyor musun?")
local s = select("Evet!", "Hayır, girmek istemiyorum.")
if s == 1 then
pc.remove_item(71000, 1)
pc.setqf("last_entry_time", get_global_time())
d.new_jump(352, 772100, 640100)
d.spawn_mob_dir(18045, 286, 225, 1)
end
end
when kill with npc.get_race() == 18045 begin
d.setf("nemere_dead", 1)
notice_all("|cff00ff00 " .. pc.get_name() .. " Nemere'yi mağlup etti!")
server_timer("nemere_exit_timer", 3600, d.get_map_index())
end
when nemere_exit_timer.server_timer begin
if d.select(get_server_timer_arg()) then
d.notice("Zaman doldu.")
d.setf("sure_doldu", 1)
d.clear_regen()
d.exit_all()
end
end
end
end
Tek Kat Razadör - Soğuma Saati Belirlenebilir Quest Sistemi
Metin2 Lobby olarak sunucularınızda kullanabileceğiniz özel quest sistemlerinden birisi olan 'Tek Kat Razadör - Soğuma Saati Belirlenebilir' konsepti, oyuncuların belirli bir süre sonra tekrar etkinliği kullanabilmesi için geliştirilmiş stratejik bir özelliktir. Bu yazıda bu sistemin nasıl çalıştığını, hangi avantajları sunduğunu ve Metin2.quest geliştirme sürecinde nasıl entegre edileceğini detaylıca inceleyeceğiz.
Neden Tek Kat Razadör Kullanılır?
Metin2 sunucularında yüksek seviye düşmanlarla yapılan savaşlarda, oyuncular bazen güçlü razadörlerden yararlanmak ister. Ancak bu gibi güçlü araçların sınırsız kullanımına izin vermek dengesi bozucu olabilir. Bu nedenle bazı özel quest sistemleri, razadörlerin belirli aralıklarla kullanılmasını sağlayacak şekilde tasarlanmıştır. 'Tek Kat Razadör' sistemi bu bağlamda, oyuncuya bir defalık kullanım imkanı sunarken, tekrar kullanım süresini 'soğuma süresi' ile sınırlar.
Soğuma Süresi Nedir?
Soğuma süresi, bir eylemin tekrar yapılmasından önce geçmesi gereken süreyi ifade eder. Bu süre, Metin2.quest sistemlerinde genellikle timer veya flag gibi kavramlarla yönetilir. Quest sisteminde, razadör kullanıldığında belirli bir süre boyunca aynı karakterin tekrar kullanmasına izin verilmemesi sağlanır. Bu süre dolduğunda, oyuncu razadörü yeniden kullanabilir.
Quest Script Yapısı ve Lua Entegrasyonu
Metin2.quest sistemlerinde 'Tek Kat Razadör - Soğuma Saati Belirlenebilir' sisteminin oluşturulması için Lua script dili kullanılır. Lua, Metin2 sunucularında quest yazmak için kullanılan temel programlama dilidir. Quest script'leri genellikle 'quest_begin' ve 'quest_end' blokları arasında tanımlanır. Bu sistemde, razadör kullanımı tetiklendiğinde, quest scripti içinde bir sayaç başlatılır. Bu sayaç, kullanıcıya ne zaman razadörü tekrar kullanabileceğini gösterir.
Özel Flag Kullanımı
Quest sisteminde, razadörün kullanılıp kullanılmadığını takip etmek için özel flag'ler kullanılır. Flag, oyuncunun durumunu saklayan bir değişkendir. Razadör kullanıldığında flag değeri değiştirilir ve soğuma süresi başlatılır. Bu sayede kullanıcı tekrar denediğinde, sistem flag durumuna bakarak izin verip vermeyeceğini belirler.
Gelişmiş Quest Timer Kullanımı
Timer, Metin2.quest sistemlerinde belirli zaman aralıklarında işlevleri çalıştırmak için kullanılır. 'Tek Kat Razadör' sisteminde timer, razadör kullanımından sonra otomatik olarak sayaç başlatır. Bu sayaç, belirlenen süre tamamlandığında tekrar razadör kullanımına izin verir. Bu sayede hem sunucu dengesi korunur hem de oyunculara stratejik bir kullanım imkanı tanınır.
Soğuma Saati Nasıl Ayarlanır?
Soğuma süresi, quest script içinde dakika cinsinden ayarlanabilir. Örneğin, 60 dakikalık bir soğuma süresi isteniyorsa, timer 60 * 60 saniye olarak ayarlanır. Bu süre zarfında oyuncu razadörü tekrar kullanamaz. Bu süre bittiğinde, flag sıfırlanır ve razadör tekrar kullanılabilir hale gelir.
Metin2.quest Geliştirme Sürecinde Dikkat Edilmesi Gerekenler
Metin2.quest geliştirmesi yaparken, özellikle hata ayıklama (debug) aşaması çok önemlidir. Yanlış bir flag veya timer ayarı, sistemin düzgün çalışmamasına neden olabilir. Ayrıca, her quest sisteminin doğru çalışması için test aşaması gereklidir. Geliştirilen quest sistemlerinin, sunucuda farklı karakterlerle test edilmesi önerilir.
Zamanlanmış Görevler ve Daily Quest Entegrasyonu
Tek Kat Razadör sistemi, günlük görevlerle (daily quest) birleştirildiğinde daha da etkili olabilir. Günlük görevlerde kazanılan ödül olarak razadör verilebilir ve bu razadörün sadece bir kez ve sınırlı bir süre sonra tekrar kullanılabilir olması sağlanabilir. Bu, oyuncuların her gün aktif olmalarını teşvik eder.
Sonuç
'Tek Kat Razadör - Soğuma Saati Belirlenebilir' sistemi, Metin2 sunucularında hem dengeli oyun deneyimi sunar hem de oyunculara stratejik düşünme imkanı tanır. Bu tür özel quest sistemleri, Metin2.quest geliştirme uzmanları tarafından dikkatli planlama ve test ile uygulanmalıdır. Metin2 Lobby olarak, bu tür gelişmiş quest sistemlerini desteklemeye devam ediyoruz.
Single Use Razador - Configurable Cooldown Time
Metin2 Lobby presents one of the special quest systems that can be used on your servers: 'Single Use Razador - Configurable Cooldown Time'. This system allows players to use the ability again after a specific duration, and in this article, we will examine in detail how it works, its benefits, and how it can be integrated into the Metin2 quest development process.
Why Use Single Use Razador?
In Metin2 servers, during high-level combat encounters, players sometimes rely on powerful razadors. However, allowing unlimited usage of such strong tools could imbalance the game. Therefore, some special quest systems are designed to allow razadors to be used at certain intervals. The 'Single Use Razador' system provides a one-time usage opportunity for the player and limits the reuse time through a 'cooldown period'.
What Is Cooldown Time?
Cooldown time refers to the duration that must pass before an action can be repeated. In Metin2 quest systems, this is generally managed with concepts like timer or flag. When the razador is used in the quest system, a countdown begins which prevents the same character from using it again for a set period. Once this time elapses, the player can reuse the razador.
Quest Script Structure and Lua Integration
To create the 'Single Use Razador - Configurable Cooldown Time' system in Metin2 quest systems, the Lua scripting language is used. Lua is the primary programming language for writing quests in Metin2 servers. Quest scripts are typically defined between 'quest_begin' and 'quest_end' blocks. In this system, once the razador is triggered, a counter starts within the quest script. This counter indicates when the user can use the razador again.
Usage of Custom Flags
In the quest system, custom flags are used to track whether the razador has been used. A flag is a variable that stores the player's status. When the razador is used, the flag value is changed and the cooldown time begins. This way, when the user tries again, the system checks the flag status to determine whether to allow usage or not.
Advanced Quest Timer Usage
Timers are used in Metin2 quest systems to execute functions at specific intervals. In the 'Single Use Razador' system, the timer automatically starts a countdown after the razador is used. Once the predetermined time is completed, the razador can be used again. This maintains server balance while offering strategic usage options to players.
How to Set Cooldown Time?
The cooldown time can be set in minutes within the quest script. For example, if a 60-minute cooldown is desired, the timer is set to 60 * 60 seconds. During this time, the player cannot reuse the razador. Once the time is up, the flag resets and the razador becomes usable again.
Key Considerations in Metin2 Quest Development
During Metin2 quest development, the debugging phase is very important. Incorrect flag or timer settings may cause the system to malfunction. Additionally, testing each quest system is essential. It is recommended to test developed quest systems with different characters on the server.
Scheduled Tasks and Daily Quest Integration
When combined with daily quests, the Single Use Razador system can become even more effective. Razadors can be awarded as rewards in daily quests and configured to be reusable only once and after a limited cooldown. This encourages players to stay active every day.
Conclusion
The 'Single Use Razador - Configurable Cooldown Time' system provides balanced gameplay experience on Metin2 servers while offering players strategic thinking opportunities. Such special quest systems must be carefully planned and tested by Metin2 quest development experts. As Metin2 Lobby, we continue to support such advanced quest systems.
---------------------------------------------------------
quest nemere_dungeon begin
state start begin
when login begin
if pc.get_map_index() >= 3520000 and pc.get_map_index() < 3529000 then
local last_entry = pc.getqf("last_entry_time") or 0
local current_time = get_global_time()
local cooldown_seconds = 3600 -- 1 saat = 3600 saniye
if current_time - last_entry < cooldown_seconds then
local remaining_time = cooldown_seconds - (current_time - last_entry)
local remaining_minutes = math.ceil(remaining_time / 60)
say_title("Bekci:")
say(string.format("Zindana tekrar girebilmeniz için daha %d dakika beklemeniz gerekiyor.", remaining_minutes))
return
end
end
end
when logout begin
local idx = pc.get_map_index()
if idx == 352 or (idx >= (352 * 10000) and idx < (352 * 10000 + 9000)) then
pc.setqf("last_entry_time", get_global_time())
end
end
when 11005.chat."Nemerenin Gözetleme Kulesi(Tek Kat)" begin
local last_entry = pc.getqf("last_entry_time") or 0
local current_time = get_global_time()
local cooldown_seconds = 3600 -- 1 saat = 3600 saniye
if current_time - last_entry < cooldown_seconds then
local remaining_time = cooldown_seconds - (current_time - last_entry)
local remaining_minutes = math.ceil(remaining_time / 60)
say_title("Bekci:")
say(string.format("Zindana tekrar girebilmeniz için daha %d dakika beklemeniz gerekiyor.", remaining_minutes))
return
end
if pc.get_level() < 90 then
say_title("Bekci:")
say("90. seviyenin altında olduğun için zindana giremezsin.")
return
end
if pc.count_item(71000) < 1 then
say_title("Bekci:")
say(string.format("Gerekli eşya: %s. Eşyayı envanterinde bulundurmalısın.", item_name(71000)))
return
end
if party.is_party() then
say_title("Bekci:")
say("Grup halinde zindana giremezsiniz.")
return
end
say_title("Bekci:")
say("Zindana girmek istiyor musun?")
local s = select("Evet!", "Hayır, girmek istemiyorum.")
if s == 1 then
pc.remove_item(71000, 1)
pc.setqf("last_entry_time", get_global_time())
d.new_jump(352, 772100, 640100)
d.spawn_mob_dir(18045, 286, 225, 1)
end
end
when kill with npc.get_race() == 18045 begin
d.setf("nemere_dead", 1)
notice_all("|cff00ff00 " .. pc.get_name() .. " Nemere'yi mağlup etti!")
server_timer("nemere_exit_timer", 3600, d.get_map_index())
end
when nemere_exit_timer.server_timer begin
if d.select(get_server_timer_arg()) then
d.notice("Zaman doldu.")
d.setf("sure_doldu", 1)
d.clear_regen()
d.exit_all()
end
end
end
end
Tek Kat Razadör - Soğuma Saati Belirlenebilir Quest Sistemi
Metin2 Lobby olarak sunucularınızda kullanabileceğiniz özel quest sistemlerinden birisi olan 'Tek Kat Razadör - Soğuma Saati Belirlenebilir' konsepti, oyuncuların belirli bir süre sonra tekrar etkinliği kullanabilmesi için geliştirilmiş stratejik bir özelliktir. Bu yazıda bu sistemin nasıl çalıştığını, hangi avantajları sunduğunu ve Metin2.quest geliştirme sürecinde nasıl entegre edileceğini detaylıca inceleyeceğiz.
Neden Tek Kat Razadör Kullanılır?
Metin2 sunucularında yüksek seviye düşmanlarla yapılan savaşlarda, oyuncular bazen güçlü razadörlerden yararlanmak ister. Ancak bu gibi güçlü araçların sınırsız kullanımına izin vermek dengesi bozucu olabilir. Bu nedenle bazı özel quest sistemleri, razadörlerin belirli aralıklarla kullanılmasını sağlayacak şekilde tasarlanmıştır. 'Tek Kat Razadör' sistemi bu bağlamda, oyuncuya bir defalık kullanım imkanı sunarken, tekrar kullanım süresini 'soğuma süresi' ile sınırlar.
Soğuma Süresi Nedir?
Soğuma süresi, bir eylemin tekrar yapılmasından önce geçmesi gereken süreyi ifade eder. Bu süre, Metin2.quest sistemlerinde genellikle timer veya flag gibi kavramlarla yönetilir. Quest sisteminde, razadör kullanıldığında belirli bir süre boyunca aynı karakterin tekrar kullanmasına izin verilmemesi sağlanır. Bu süre dolduğunda, oyuncu razadörü yeniden kullanabilir.
Quest Script Yapısı ve Lua Entegrasyonu
Metin2.quest sistemlerinde 'Tek Kat Razadör - Soğuma Saati Belirlenebilir' sisteminin oluşturulması için Lua script dili kullanılır. Lua, Metin2 sunucularında quest yazmak için kullanılan temel programlama dilidir. Quest script'leri genellikle 'quest_begin' ve 'quest_end' blokları arasında tanımlanır. Bu sistemde, razadör kullanımı tetiklendiğinde, quest scripti içinde bir sayaç başlatılır. Bu sayaç, kullanıcıya ne zaman razadörü tekrar kullanabileceğini gösterir.
Özel Flag Kullanımı
Quest sisteminde, razadörün kullanılıp kullanılmadığını takip etmek için özel flag'ler kullanılır. Flag, oyuncunun durumunu saklayan bir değişkendir. Razadör kullanıldığında flag değeri değiştirilir ve soğuma süresi başlatılır. Bu sayede kullanıcı tekrar denediğinde, sistem flag durumuna bakarak izin verip vermeyeceğini belirler.
Gelişmiş Quest Timer Kullanımı
Timer, Metin2.quest sistemlerinde belirli zaman aralıklarında işlevleri çalıştırmak için kullanılır. 'Tek Kat Razadör' sisteminde timer, razadör kullanımından sonra otomatik olarak sayaç başlatır. Bu sayaç, belirlenen süre tamamlandığında tekrar razadör kullanımına izin verir. Bu sayede hem sunucu dengesi korunur hem de oyunculara stratejik bir kullanım imkanı tanınır.
Soğuma Saati Nasıl Ayarlanır?
Soğuma süresi, quest script içinde dakika cinsinden ayarlanabilir. Örneğin, 60 dakikalık bir soğuma süresi isteniyorsa, timer 60 * 60 saniye olarak ayarlanır. Bu süre zarfında oyuncu razadörü tekrar kullanamaz. Bu süre bittiğinde, flag sıfırlanır ve razadör tekrar kullanılabilir hale gelir.
Metin2.quest Geliştirme Sürecinde Dikkat Edilmesi Gerekenler
Metin2.quest geliştirmesi yaparken, özellikle hata ayıklama (debug) aşaması çok önemlidir. Yanlış bir flag veya timer ayarı, sistemin düzgün çalışmamasına neden olabilir. Ayrıca, her quest sisteminin doğru çalışması için test aşaması gereklidir. Geliştirilen quest sistemlerinin, sunucuda farklı karakterlerle test edilmesi önerilir.
Zamanlanmış Görevler ve Daily Quest Entegrasyonu
Tek Kat Razadör sistemi, günlük görevlerle (daily quest) birleştirildiğinde daha da etkili olabilir. Günlük görevlerde kazanılan ödül olarak razadör verilebilir ve bu razadörün sadece bir kez ve sınırlı bir süre sonra tekrar kullanılabilir olması sağlanabilir. Bu, oyuncuların her gün aktif olmalarını teşvik eder.
Sonuç
'Tek Kat Razadör - Soğuma Saati Belirlenebilir' sistemi, Metin2 sunucularında hem dengeli oyun deneyimi sunar hem de oyunculara stratejik düşünme imkanı tanır. Bu tür özel quest sistemleri, Metin2.quest geliştirme uzmanları tarafından dikkatli planlama ve test ile uygulanmalıdır. Metin2 Lobby olarak, bu tür gelişmiş quest sistemlerini desteklemeye devam ediyoruz.
Single Use Razador - Configurable Cooldown Time
Metin2 Lobby presents one of the special quest systems that can be used on your servers: 'Single Use Razador - Configurable Cooldown Time'. This system allows players to use the ability again after a specific duration, and in this article, we will examine in detail how it works, its benefits, and how it can be integrated into the Metin2 quest development process.
Why Use Single Use Razador?
In Metin2 servers, during high-level combat encounters, players sometimes rely on powerful razadors. However, allowing unlimited usage of such strong tools could imbalance the game. Therefore, some special quest systems are designed to allow razadors to be used at certain intervals. The 'Single Use Razador' system provides a one-time usage opportunity for the player and limits the reuse time through a 'cooldown period'.
What Is Cooldown Time?
Cooldown time refers to the duration that must pass before an action can be repeated. In Metin2 quest systems, this is generally managed with concepts like timer or flag. When the razador is used in the quest system, a countdown begins which prevents the same character from using it again for a set period. Once this time elapses, the player can reuse the razador.
Quest Script Structure and Lua Integration
To create the 'Single Use Razador - Configurable Cooldown Time' system in Metin2 quest systems, the Lua scripting language is used. Lua is the primary programming language for writing quests in Metin2 servers. Quest scripts are typically defined between 'quest_begin' and 'quest_end' blocks. In this system, once the razador is triggered, a counter starts within the quest script. This counter indicates when the user can use the razador again.
Usage of Custom Flags
In the quest system, custom flags are used to track whether the razador has been used. A flag is a variable that stores the player's status. When the razador is used, the flag value is changed and the cooldown time begins. This way, when the user tries again, the system checks the flag status to determine whether to allow usage or not.
Advanced Quest Timer Usage
Timers are used in Metin2 quest systems to execute functions at specific intervals. In the 'Single Use Razador' system, the timer automatically starts a countdown after the razador is used. Once the predetermined time is completed, the razador can be used again. This maintains server balance while offering strategic usage options to players.
How to Set Cooldown Time?
The cooldown time can be set in minutes within the quest script. For example, if a 60-minute cooldown is desired, the timer is set to 60 * 60 seconds. During this time, the player cannot reuse the razador. Once the time is up, the flag resets and the razador becomes usable again.
Key Considerations in Metin2 Quest Development
During Metin2 quest development, the debugging phase is very important. Incorrect flag or timer settings may cause the system to malfunction. Additionally, testing each quest system is essential. It is recommended to test developed quest systems with different characters on the server.
Scheduled Tasks and Daily Quest Integration
When combined with daily quests, the Single Use Razador system can become even more effective. Razadors can be awarded as rewards in daily quests and configured to be reusable only once and after a limited cooldown. This encourages players to stay active every day.
Conclusion
The 'Single Use Razador - Configurable Cooldown Time' system provides balanced gameplay experience on Metin2 servers while offering players strategic thinking opportunities. Such special quest systems must be carefully planned and tested by Metin2 quest development experts. As Metin2 Lobby, we continue to support such advanced quest systems.
