Merhaba Arkadaşlar, Bugün size HAPİSHANE questini paylaşacağım.
Sistem Başarılı bir şekilde çalışıyor!
Quest yüklemeyi bilmeyenler bu adımları takip etsinler,
1.Adım : Filezillaya Bağlanıyoruz
2.Adım : /usr/game/share/locale/turkey/quest bölümüne hapishane.lua dosyasını atıyoruz
3.Adım : Putty'e Giriş yapıyoruz
4.Adım : cd /usr/game/share/locale/turkey/quest ENTER yapıyoruz
5.Adım : ./qc hapishane.lua yazıyoruz başarıyla dosyamızı okutmuş oluyoruz.
Sistem Başarılı bir şekilde çalışıyor!
Quest yüklemeyi bilmeyenler bu adımları takip etsinler,
1.Adım : Filezillaya Bağlanıyoruz
2.Adım : /usr/game/share/locale/turkey/quest bölümüne hapishane.lua dosyasını atıyoruz
3.Adım : Putty'e Giriş yapıyoruz
4.Adım : cd /usr/game/share/locale/turkey/quest ENTER yapıyoruz
5.Adım : ./qc hapishane.lua yazıyoruz başarıyla dosyamızı okutmuş oluyoruz.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
Rar Şifresi: tahaeksi
ÇALIŞTIĞINA DAİR KANIT:
İSTEYEN KOD OLARAK DA KULLANABİLİR:
Kod:
quest hapis_sistemi begin state start begin when letter with pc.is_gm() begin send_letter("Hapishaneye Yolla ") end when info or button with pc.is_gm() begin say_yesil(" Merhaba "..pc.get_name()..", ") say_kirmizi("Hapishaneye gönderilecek kişinin ismini gir:") local isimgir = input() say_reward("Ne kadar süreyle hapiste kalsın?") say("") say_mavi2("30 Dakika: 1800") say_mavi2("1 Saat: 3600") say_mavi2("15 Saat = 54000") say_mavi2("1 Gün = 86400") say_mavi2("3 Gün = 259200") say_mavi2("5 Gün = 432000") say_mavi2("7 Gün = 604800") say("") local sure = input() local id = mysql_query("SELECT player.id from player.player where player.name = '"..isimgir.."'") mysql_query("UPDATE player.player SET hapishane_suresi = hapishane_suresi +"..sure.." WHERE id = "..id.id[1]..";") end when login with pc.get_map_index() != 357 begin local ban = mysql_query("SELECT hapishane_suresi from player.player WHERE id="..pc.get_player_id().." LIMIT 1;")[1][1] if ban >= 1 then local bolge = math.random(1,8) if bolge == 1 then pc.warp(39911000,39911000) elseif bolge == 2 then pc.warp(39914000,39911000) elseif bolge == 3 then pc.warp(39916000,39913000) elseif bolge == 4 then pc.warp(39916000,39915000) elseif bolge == 5 then pc.warp(39914000,39917000) elseif bolge == 6 then pc.warp(39911000,39917000) elseif bolge == 7 then pc.warp(39909000,39915000) elseif bolge == 8 then pc.warp(39909000,39913000) end end end when login with pc.get_map_index() == 357 begin local ban = mysql_query("SELECT hapishane_suresi from player.player WHERE id="..pc.get_player_id().." LIMIT 1;")[1][1] if ban >= 1 then loop_timer("hapishane_sistemi", 20) mysql_query("UPDATE player.player SET hapishane_suresi = hapishane_suresi -5 WHERE id = "..pc.get_player_id()..";") loop_timer("hapishane_sistemi", 5) loop_timer("hapishane_bilgisi", 60) chat("Hapishaneden çıkmana kalan süre: "..ban.." saniye") chat("Cezanın bitmesi için sürekli oyunda kalman gerekir!") chat("Cezan bittiği an köye otomatik olarak gönderileceksin.") end end when hapishane_sistemi.timer begin mysql_query("UPDATE player.player SET hapishane_suresi = hapishane_suresi -5 WHERE id = "..pc.get_player_id()..";") local ban = mysql_query("SELECT hapishane_suresi from player.player WHERE id="..pc.get_player_id().." LIMIT 1;")[1][1] if ban <= 0 then cleartimer("hapishane_sistemi") cleartimer("hapishane_bilgisi") warp_to_village() end end when hapishane_bilgisi.timer begin local ban = mysql_query("SELECT hapishane_suresi from player.player WHERE id="..pc.get_player_id().." LIMIT 1;")[1][1] end when 20077.chat. "Kalan süremi öğrenmek istiyorum." begin if pc.get_map_index() != 357 then say_reward("Gardiyan:") say_kirmizi("Bu npc sadece hapishane bölümünde çalışmaktadır.") return end local ban = mysql_query("SELECT hapishane_suresi from player.player WHERE id="..pc.get_player_id().." LIMIT 1;")[1][1] say_yesil(" Merhaba "..pc.get_name()..", ") say_kirmizi("Hapishaneden çıkmana kalan süre: "..ban.." saniye") end end end
Metin2 Hapishane Sistemi Nedir?
Metin2 sunucularında hapishane sistemi, oyuncuların belirli kurallara uymaması durumunda cezalandırıldığı bir mekaniktir. Bu sistem, özellikle Metin2 quest sistemleri ile entegre çalışarak daha etkili bir deneyim sunabilir. Sunucu yöneticileri, Metin2 quest script dosyaları aracılığıyla hapishaneye atılma sebeplerini, süresini ve diğer detayları özelleştirebilir. Bu yazıda, Metin2 quest lua üzerinden hapishane sistemini nasıl kurabileceğinizi ve hangi avantajlar sağladığını detaylıca inceleyeceğiz.
Hapishane Sistemine Giriş
Hapishane, Metin2'de sunucu içi disiplini sağlamak amacıyla kullanılır. Oyuncuların kurallara aykırı davranışları sonucu geçici olarak oyun içindeki bazı haklarını kaybetmesini sağlar. Örneğin, bir oyuncu başka bir oyuncuya saldırırsa veya kural dışı bir eylem gerçekleştirmişse, quest sistemine bağlı olarak otomatik olarak hapishaneye gönderilebilir.
Hapishane Sisteminin Quest ile Entegrasyonu
Metin2 quest sistemleri, hapishane mekaniğini oldukça esnek hale getirir. Örneğin, lua quest dosyasında bir trigger tanımlanarak, belirli bir komutla ya da bir NPC ile etkileşimle oyuncunun hapishaneye gönderilmesi sağlanabilir. Quest trigger ve quest timer gibi yapılar sayesinde, hapishane süresi de kolayca kontrol edilebilir.
Hapishane Quest Script Örneği
Aşağıda basit bir hapishane quest lua örneği verilmiştir:
Kod:
[BR][/BR]when login begin[BR][/BR]say_title('Hos geldiniz!')[BR][/BR]end[BR][/BR][BR][/BR]when button and cmd == 'hapishane_gonder' begin[BR][/BR]set_warp_location('hapishane_map', 100, 100)[BR][/BR]warp_to('hapishane_map', 100, 100)[BR][/BR]set_flag('ceza_suresi', 300) -- 5 dakika[BR][/BR]syschat('5 dakika boyunca hapiste kalacaksiniz.')[BR][/BR]end[BR][/BR]
Bu scriptte, oyuncu 'hapishane_gonder' komutunu kullandığında, quest sistemine göre hapishane haritasına ışınlanır ve belirli bir süre boyunca orada kalır.
Hapishane Mekaniğinin Avantajları
Hapishane sistemi, Metin2 quest üzerinden yönetildiğinde birçok avantaja sahiptir. Bunlar arasında:
- Otomatik cezalandırma: Oyuncuların kurallara uygunluğu sistem tarafından otomatik olarak değerlendirilir.
- Kolay yönetim: Yöneticilerin doğrudan müdahale etmeden, quest dosyası üzerinden tüm işlemleri yapabilmesi.
- Özelleştirilebilirlik: Süre, harita, mesajlar gibi tüm detaylar Metin2 quest aracılığıyla değiştirilebilir.
Sık Karşılaşılan Sorunlar ve Çözümleri
Metin2 quest hata veya quest debug süreçlerinde hapishane sisteminin düzgün çalışmaması gibi durumlar olabilir. Bu durumlarda, quest state ve quest flag değerlerinin kontrol edilmesi gerekir. Quest debug sırasında, quest begin ve quest end komutlarının doğru çalıştığından emin olunmalıdır.
Sonuç
Metin2 quest sistemleri üzerinden hapishane mekaniği oluşturmak, sunucu güvenliği ve disiplini açısından oldukça faydalıdır. Doğru yapılandırılmış bir quest script sayesinde, hem oyuncular hem de yöneticiler için daha stabil ve adil bir ortam sağlanabilir.
What is the Metin2 Prison System?
In Metin2 servers, the prison system is a mechanic used to punish players who do not follow certain rules. This system can be more effective when integrated with Metin2 quest systems. Server administrators can customize reasons for imprisonment, durations, and other details via Metin2 quest script files. In this article, we will examine how you can implement the prison system through Metin2 quest lua and the advantages it offers in detail.
Introduction to the Prison System
Prison is used in Metin2 to maintain in-game discipline on servers. Players temporarily lose certain privileges within the game if they engage in rule-breaking behavior. For example, if a player attacks another player or performs an unauthorized action, they may automatically be sent to prison based on the quest system.
Integration of the Prison System with Quests
Metin2 quest systems make the prison mechanic quite flexible. For instance, by defining a trigger in a lua quest file, a player can be sent to prison via a specific command or interaction with an NPC. Thanks to structures like quest trigger and quest timer, the duration of imprisonment can also be easily controlled.
Example Prison Quest Script
Below is a simple example of a prison quest lua:
Kod:
[BR][/BR]when login begin[BR][/BR]say_title('Welcome!')[BR][/BR]end[BR][/BR][BR][/BR]when button and cmd == 'send_to_prison' begin[BR][/BR]set_warp_location('prison_map', 100, 100)[BR][/BR]warp_to('prison_map', 100, 100)[BR][/BR]set_flag('penalty_duration', 300) -- 5 minutes[BR][/BR]syschat('You will stay in prison for 5 minutes.')[BR][/BR]end[BR][/BR]
In this script, when the player uses the 'send_to_prison' command, they are teleported to the prison map according to the quest system and remain there for a set duration.
Advantages of the Prison Mechanic
When managed via Metin2 quest, the prison system has several advantages. These include:
- Automatic punishment: The system automatically evaluates player compliance with rules.
- Easy management: Administrators can manage all processes through the quest file without direct intervention.
- Customizability: All details such as duration, maps, messages, etc., can be modified via Metin2 quest.
Common Issues and Solutions
There may be cases where the prison system does not work properly during Metin2 quest error or quest debug phases. In such cases, quest state and quest flag values should be checked. During quest debug, ensure that quest begin and quest end commands are functioning correctly.
Conclusion
Creating a prison mechanic through Metin2 quest systems is highly beneficial for server security and discipline. With a well-configured quest script, a more stable and fair environment can be provided for both players and administrators.
