Tamamen kendi yazımım.
Başka bir yerde paylaşılacak olursa alıntı diye belirtilmesini istiyorum.
Dosyanın içinde virgüller ile ayrılmış mob vnumları bulunmakta, bunları istediğiniz gibi editleyip questi okutabilirseniz. Ayrıca GM lere özel bir görev gelicek. Oradan sistemi açıp, kapatabilirsiniz.
[LUA]Boss Duyu Sistemi (En Gelişmişinden
)
Metin2 Lobby olarak bu yazıda LUA tabanlı gelişmiş bir Boss Duyu Sistemi nasıl yapılır onu ele alacağız. Bu sistem sayesinde sunucunuzda belirlenen boss öldürüldüğünde tüm oyunculara duyuru yapılabilir, özel ödüller verilebilir ve sunucu atmosferi ciddi anlamda desteklenebilir. Metin2 sunucularında boss öldürme eylemi genellikle topluluk etkinliklerinin merkezinde yer alır. İşte tam da bu noktada, Boss Duyu Sistemi büyük rol oynar.
Boss Duyu Sisteminin Amacı Nedir?
Bu sistem sayesinde, sunucuda belirli güçlü boss karakterlerinden biri öldürüldüğünde, tüm aktif oyunculara anlık olarak duyuru yapılabilir. Oyuncuların dikkatini çekecek, etkileşimi artıracaktır. Ayrıca bu duyurularla birlikte özel ödüller verilebilir. Örneğin, boss öldürüldüğünde ilk öldüren oyuncuya özel eşya veya para ödülü verilebilir. Bu tür sistemler, sunucu sadakati ve oyuncu etkileşimini artırmak için kritik öneme sahiptir.
LUA Script Yapısı ve Kullanımı
Metin2 sunucularında quest sistemi LUA diline dayalıdır. Boss duyuru sistemi için de LUA tabanlı bir quest yazılır. Quest dosyası genellikle quest_list.lua dosyasına eklenir. Sistem, boss öldürüldüğünde tetiklenir. Tetikleme işlemi için kill event kullanılır. Bu event sayesinde, belirli bir NPC öldürüldüğünde özel bir fonksiyon çalıştırılır.
Örnek Kod Yapısı:
Sistem Özellikleri
Sistem Kurulumu
Hata Ayıklama ve Güvenlik
Quest yazarken dikkat edilmesi gereken bazı önemli hususlar vardır. Hatalı kodlama, sunucuda çökmelere neden olabilir. Özellikle kill eventlerinde dikkatli davranılmalıdır. Ayrıca, ödüllerin sadece gerçek öldüren oyuncuya verilmesi sağlanmalıdır. Aksi takdirde exploit riski doğabilir. Bu nedenle, game.drop_item_with_ownership gibi fonksiyonlar kullanılmalıdır.
Metin2 Lobby olarak bu gibi gelişmiş quest sistemlerini paylaşmaya devam edeceğiz. Daha fazla örnek için sitemizi takip etmeyi unutmayın.
[LUA]Boss Announce System (The Most Advanced One
)
Metin2 Lobby as we will discuss how to create an advanced Boss Announce System based on LUA. With this system, when a designated boss is killed in your server, all players can be notified instantly, special rewards can be given, and the overall server atmosphere can be significantly supported. In Metin2 servers, the act of killing bosses often lies at the center of community activities. At this point, the Boss Announce System plays a crucial role.
What Is The Purpose Of The Boss Announce System?
Thanks to this system, whenever one of the strong boss characters in the server is killed, an instant announcement can be made to all active players. This will attract players' attention and increase engagement. Moreover, special rewards can be given with these announcements. For instance, when a boss is killed, the first player who killed it could receive a special item or money as a reward. Such systems are critically important for increasing server loyalty and player interaction.
LUA Script Structure And Usage
In Metin2 servers, the quest system is based on the LUA language. A LUA-based quest is written for the boss announce system. The quest file is usually added to the quest_list.lua file. The system triggers when the boss is killed. The kill event is used for triggering. With this event, when a specific NPC is killed, a custom function is executed.
Sample Code Structure:
System Features
System Installation
Debugging And Security
There are some important points to consider while writing quests. Faulty coding may cause crashes on the server. Especially, caution should be exercised in kill events. Additionally, rewards should only be given to the actual player who killed the boss. Otherwise, there is a risk of exploitation. Therefore, functions like game.drop_item_with_ownership should be used.
Metin2 Lobby We will continue sharing such advanced quest systems. Do not forget to follow our site for more examples.
Başka bir yerde paylaşılacak olursa alıntı diye belirtilmesini istiyorum.
Dosyanın içinde virgüller ile ayrılmış mob vnumları bulunmakta, bunları istediğiniz gibi editleyip questi okutabilirseniz. Ayrıca GM lere özel bir görev gelicek. Oradan sistemi açıp, kapatabilirsiniz.
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.
Ziyaretçiler için gizlenmiş link,görmek için üye olmalısınız!
Giriş yap veya üye ol.
[LUA]Boss Duyu Sistemi (En Gelişmişinden
Metin2 Lobby olarak bu yazıda LUA tabanlı gelişmiş bir Boss Duyu Sistemi nasıl yapılır onu ele alacağız. Bu sistem sayesinde sunucunuzda belirlenen boss öldürüldüğünde tüm oyunculara duyuru yapılabilir, özel ödüller verilebilir ve sunucu atmosferi ciddi anlamda desteklenebilir. Metin2 sunucularında boss öldürme eylemi genellikle topluluk etkinliklerinin merkezinde yer alır. İşte tam da bu noktada, Boss Duyu Sistemi büyük rol oynar.
Boss Duyu Sisteminin Amacı Nedir?
Bu sistem sayesinde, sunucuda belirli güçlü boss karakterlerinden biri öldürüldüğünde, tüm aktif oyunculara anlık olarak duyuru yapılabilir. Oyuncuların dikkatini çekecek, etkileşimi artıracaktır. Ayrıca bu duyurularla birlikte özel ödüller verilebilir. Örneğin, boss öldürüldüğünde ilk öldüren oyuncuya özel eşya veya para ödülü verilebilir. Bu tür sistemler, sunucu sadakati ve oyuncu etkileşimini artırmak için kritik öneme sahiptir.
LUA Script Yapısı ve Kullanımı
Metin2 sunucularında quest sistemi LUA diline dayalıdır. Boss duyuru sistemi için de LUA tabanlı bir quest yazılır. Quest dosyası genellikle quest_list.lua dosyasına eklenir. Sistem, boss öldürüldüğünde tetiklenir. Tetikleme işlemi için kill event kullanılır. Bu event sayesinde, belirli bir NPC öldürüldüğünde özel bir fonksiyon çalıştırılır.
Örnek Kod Yapısı:
Kod:
[B]quest boss_announce begin[BR][/BR] state start begin[BR][/BR] when 1101.kill begin -- Örnek boss ID[BR][/BR] notice_all('[B]Tebrikler![/B] '..pc.get_name()..' adlı oyuncu '..npc.get_race_name()..' bossunu öldürdü!')[BR][/BR] game.drop_item_with_ownership('special_reward_item', 1)[BR][/BR] end[BR][/BR] end[BR][/BR]end[/B]
Sistem Özellikleri
- Otomatik duyuru yapılabilir.
- Özel ödüller verilebilir.
- Boss öldürüldüğünde özel efektler eklenebilir.
- İstatistik tutulabilir (kim kaç kez boss öldürmüş).
Sistem Kurulumu
- Quest dosyası root klasörüne atılır.
- Server yeniden başlatılır.
- Boss NPC ID'si doğru girilmelidir.
- Gerekirse özel ödüller düzenlenir.
Hata Ayıklama ve Güvenlik
Quest yazarken dikkat edilmesi gereken bazı önemli hususlar vardır. Hatalı kodlama, sunucuda çökmelere neden olabilir. Özellikle kill eventlerinde dikkatli davranılmalıdır. Ayrıca, ödüllerin sadece gerçek öldüren oyuncuya verilmesi sağlanmalıdır. Aksi takdirde exploit riski doğabilir. Bu nedenle, game.drop_item_with_ownership gibi fonksiyonlar kullanılmalıdır.
Metin2 Lobby olarak bu gibi gelişmiş quest sistemlerini paylaşmaya devam edeceğiz. Daha fazla örnek için sitemizi takip etmeyi unutmayın.
[LUA]Boss Announce System (The Most Advanced One
Metin2 Lobby as we will discuss how to create an advanced Boss Announce System based on LUA. With this system, when a designated boss is killed in your server, all players can be notified instantly, special rewards can be given, and the overall server atmosphere can be significantly supported. In Metin2 servers, the act of killing bosses often lies at the center of community activities. At this point, the Boss Announce System plays a crucial role.
What Is The Purpose Of The Boss Announce System?
Thanks to this system, whenever one of the strong boss characters in the server is killed, an instant announcement can be made to all active players. This will attract players' attention and increase engagement. Moreover, special rewards can be given with these announcements. For instance, when a boss is killed, the first player who killed it could receive a special item or money as a reward. Such systems are critically important for increasing server loyalty and player interaction.
LUA Script Structure And Usage
In Metin2 servers, the quest system is based on the LUA language. A LUA-based quest is written for the boss announce system. The quest file is usually added to the quest_list.lua file. The system triggers when the boss is killed. The kill event is used for triggering. With this event, when a specific NPC is killed, a custom function is executed.
Sample Code Structure:
Kod:
[B]quest boss_announce begin[BR][/BR] state start begin[BR][/BR] when 1101.kill begin -- Example boss ID[BR][/BR] notice_all('[B]Congratulations![/B] '..pc.get_name()..' has killed '..npc.get_race_name()..' boss!')[BR][/BR] game.drop_item_with_ownership('special_reward_item', 1)[BR][/BR] end[BR][/BR] end[BR][/BR]end[/B]
System Features
- Automatic announcements can be made.
- Special rewards can be granted.
- Special effects can be added when the boss is killed.
- Statistics can be kept (who killed the boss how many times).
System Installation
- Quest file is placed in the root folder.
- Server is restarted.
- Boss NPC ID must be entered correctly.
- Special rewards can be adjusted if needed.
Debugging And Security
There are some important points to consider while writing quests. Faulty coding may cause crashes on the server. Especially, caution should be exercised in kill events. Additionally, rewards should only be given to the actual player who killed the boss. Otherwise, there is a risk of exploitation. Therefore, functions like game.drop_item_with_ownership should be used.
Metin2 Lobby We will continue sharing such advanced quest systems. Do not forget to follow our site for more examples.
