Öncelikle Merhaba Ben Sinan
ilk anlatışım sebebi ile acemice olduğu için kusura bakmayın lütfen. Hata veya eksiğim olmuşsa bana iletirseniz yada konu altında belirtirseniz sevinirim.
Sistemin amacı metinlerden, slotlardan veya bosslardan düşürdüğümüz 10 adet metin parçaçığı ile metin taşı kazanıp yanımıza özel bir metin çağırmak.
ilk olarak item vnumlarının sizin oyununuzda olmadığına dikkat edin. Ben kendi oyunumda olmadığı için bu vnumları belirledim.
Parçacıkları mob_drop_item'de istediğiniz metine veya slota ekleyebilirsiniz.
Pack açıcıyla icon.eix ve icon.epk yı açıp vermiş olduğum iconları item klasörünün içine atın ve pack kapatıcıyla kapatın
Pack açıcıyla locale_tr ile açıp dosya içerisindeki verdiğim yerleri editleyelim item_names ve item_protoda eklemeleri yaptıktan sonra
2 dosyayı Dumpla kapatıp item_protoyu Locale_tr klasörüne atıp pack kapatıcıyla Locale_tr'yi pack kapatıcı ile kapatalım.
Vermiş olduğum questi FileZilla bağlanıp
cd /usr/game/share/locale/turkey/quest bölümüne atıp bu konumdan putty ile ./qc ozelmetinler.lua olarak okutalım. İtem_name.txt ve İtem_proto.txt'yide içeri
attıktan sonra reboot atıp oyuna girelim.
Hepsi bu kadar umarım sizler için faydalı olur.
Metin Parçacığı İle Özel Metin Taşı Çağırma
Metin2, MMORPG oyunlarında özelleştirme imkanı sunan güçlü sistemlere sahiptir. Bu sistemlerden birisi de Quest (Görev) sistemidir. Özellikle Metin2 sunucularında özel questler oluşturmak isteyen geliştiriciler, Lua script dili üzerinden birçok işlemi gerçekleştirebilir. Bu yazıda, Metin2 quest geliştirme sürecinde 'Metin Parçacığı' kullanarak özel metin taşlarının nasıl çağrıldığını detaylıca ele alacağız.
Metin Parçacığı Nedir?
Metin Parçacığı, Metin2 quest sistemlerinde kullanıcıya gösterilecek mesajların, uyarıların veya bilgilendirme metinlerinin tutulduğu küçük bloklardır. Bu parçacıklar genellikle NPC’lerle etkileşim sırasında, görevlerde veya özel durumlarla tetiklenerek ekrana gelir.
Metin Taşı Nasıl Tanımlanır?
Metin taşı, genellikle bir metin kutusudur ve oyuncuya belirli bir metni göstermek için kullanılır. Metin taşı çağrısı, bir quest scripti içinde belirli bir olay tetiklendiğinde yapılabilir. Örneğin, oyuncu bir NPC ile konuştuğunda ya da bir görevi tamamladığında özel bir metin taşı açılabilir.
Quest Script İçinde Metin Parçacığı Kullanımı
Lua script dilinde yazılmış questlerde, metin taşı çağrısı yapmak oldukça basittir. Aşağıda örnek bir kullanım gösterilmiştir:
Bu kod, oyuncuya bir metin kutusu şeklinde 'Merhaba, sana özel görevim var.' mesajını gösterir. Burada 'say_dialog', Metin2 script fonksiyonlarından biridir ve kullanıcıya metin taşımı sağlar.
Metin Parçacığı ile Dinamik Mesaj Gönderimi
Metin2 quest geliştirirken, sabit metinler yerine dinamik mesajlar kullanmak da mümkündür. Örneğin, oyuncunun adını veya puanını göstermek gibi. Bu tür işlemler için string birleştirme veya özel değişkenler kullanılabilir.
Yukarıdaki örnekte, oyuncunun adı otomatik olarak metne eklenir ve kişiselleştirilmiş bir mesaj görüntülenir.
Metin Taşı ile Seçenek Sunma
Bazı durumlarda, kullanıcıya seçim sunmak için metin taşı yerine 'select' komutu tercih edilir. Ancak metin taşı içinde de kısa seçimler yapılabilir. Örneğin:
Bu sayede oyuncu, metin taşı aracılığıyla farklı seçenekler arasından seçim yapabilir.
Hata Ayıklama ve Debugging
Quest geliştirirken hatalarla karşılaşmak kaçınılmazdır. Özellikle metin taşı komutları doğru çalışmıyorsa, log kayıtlarını kontrol etmek gerekir. Metin2 sunucularında debug işlemleri için 'server_log' veya 'notice' fonksiyonları kullanılabilir.
Bu sayede hangi noktada sorun oluştuğu daha kolay tespit edilebilir.
Sonuç
Metin2 quest geliştirme sürecinde metin taşı ve metin parçacığı kullanımı oldukça önemlidir. Doğru şekilde yapılandırılmış metin sistemleri, oyuncu deneyimini artırır ve görevlerin daha anlaşılır olmasını sağlar. Lua script bilgisiyle birlikte, gelişmiş quest sistemleri oluşturulabilir. Metin2lobby.com olarak, quest geliştirme konusunda destek sunmaya devam ediyoruz.
Calling Custom Text Stone with Text Chunk
Metin2 features powerful customization systems that are popular in MMORPG games. One of these systems is the Quest system. Developers who want to create custom quests on Metin2 servers can perform many operations via the Lua scripting language. In this article, we will examine in detail how to call custom text stones using text chunks within the Metin2 quest development process.
What Is a Text Chunk?
A text chunk is a small block containing messages, warnings, or informational texts shown to the player within the Metin2 quest system. These chunks usually appear during interactions with NPCs, during quests, or triggered by specific events.
How Is a Text Stone Defined?
A text stone is typically a message box used to display specific texts to the player. A call for a text stone can be triggered inside a quest script when certain events occur, such as when a player talks to an NPC or completes a task.
Using Text Chunks in Quest Scripts
In Lua-based quest scripts, calling a text stone is straightforward. An example usage is shown below:
This code displays the message 'Hello, I have a special mission for you.' to the player in a textbox. Here, 'say_dialog' is one of the Metin2 script functions used to show text stones to the user.
Sending Dynamic Messages with Text Chunks
While developing Metin2 quests, it is possible to use dynamic messages instead of static ones. For instance, displaying the player's name or score. Such operations can be achieved using string concatenation or custom variables.
In the above example, the player's name is automatically added to the message, resulting in a personalized message.
Offering Choices with Text Stones
In some cases, instead of a text stone, the 'select' command may be preferred to offer choices to the user. However, short selections can also be made within the text stone. For example:
With this, the player can choose among different options through the text stone.
Debugging and Error Handling
Encountering errors while developing quests is inevitable. If text stone commands do not work correctly, checking log records is essential. On Metin2 servers, functions like 'server_log' or 'notice' can be used for debugging purposes.
This allows easier identification of where issues occur.
Conclusion
Using text stones and text chunks is crucial in the Metin2 quest development process. Properly configured text systems enhance the player experience and make quests more understandable. With Lua scripting knowledge, advanced quest systems can be created. At Metin2lobby.com, we continue to provide support for quest development.
ilk anlatışım sebebi ile acemice olduğu için kusura bakmayın lütfen. Hata veya eksiğim olmuşsa bana iletirseniz yada konu altında belirtirseniz sevinirim.
Sistemin amacı metinlerden, slotlardan veya bosslardan düşürdüğümüz 10 adet metin parçaçığı ile metin taşı kazanıp yanımıza özel bir metin çağırmak.
ilk olarak item vnumlarının sizin oyununuzda olmadığına dikkat edin. Ben kendi oyunumda olmadığı için bu vnumları belirledim.
Parçacıkları mob_drop_item'de istediğiniz metine veya slota ekleyebilirsiniz.
Pack açıcıyla icon.eix ve icon.epk yı açıp vermiş olduğum iconları item klasörünün içine atın ve pack kapatıcıyla kapatın
Pack açıcıyla locale_tr ile açıp dosya içerisindeki verdiğim yerleri editleyelim item_names ve item_protoda eklemeleri yaptıktan sonra
2 dosyayı Dumpla kapatıp item_protoyu Locale_tr klasörüne atıp pack kapatıcıyla Locale_tr'yi pack kapatıcı ile kapatalım.
Vermiş olduğum questi FileZilla bağlanıp
cd /usr/game/share/locale/turkey/quest bölümüne atıp bu konumdan putty ile ./qc ozelmetinler.lua olarak okutalım. İtem_name.txt ve İtem_proto.txt'yide içeri
attıktan sonra reboot atıp oyuna girelim.
Hepsi bu kadar umarım sizler için faydalı olur.
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.
Metin Parçacığı İle Özel Metin Taşı Çağırma
Metin2, MMORPG oyunlarında özelleştirme imkanı sunan güçlü sistemlere sahiptir. Bu sistemlerden birisi de Quest (Görev) sistemidir. Özellikle Metin2 sunucularında özel questler oluşturmak isteyen geliştiriciler, Lua script dili üzerinden birçok işlemi gerçekleştirebilir. Bu yazıda, Metin2 quest geliştirme sürecinde 'Metin Parçacığı' kullanarak özel metin taşlarının nasıl çağrıldığını detaylıca ele alacağız.
Metin Parçacığı Nedir?
Metin Parçacığı, Metin2 quest sistemlerinde kullanıcıya gösterilecek mesajların, uyarıların veya bilgilendirme metinlerinin tutulduğu küçük bloklardır. Bu parçacıklar genellikle NPC’lerle etkileşim sırasında, görevlerde veya özel durumlarla tetiklenerek ekrana gelir.
Metin Taşı Nasıl Tanımlanır?
Metin taşı, genellikle bir metin kutusudur ve oyuncuya belirli bir metni göstermek için kullanılır. Metin taşı çağrısı, bir quest scripti içinde belirli bir olay tetiklendiğinde yapılabilir. Örneğin, oyuncu bir NPC ile konuştuğunda ya da bir görevi tamamladığında özel bir metin taşı açılabilir.
Quest Script İçinde Metin Parçacığı Kullanımı
Lua script dilinde yazılmış questlerde, metin taşı çağrısı yapmak oldukça basittir. Aşağıda örnek bir kullanım gösterilmiştir:
Kod:
[B]say_dialog('Merhaba, sana özel görevim var.')[/B]
Bu kod, oyuncuya bir metin kutusu şeklinde 'Merhaba, sana özel görevim var.' mesajını gösterir. Burada 'say_dialog', Metin2 script fonksiyonlarından biridir ve kullanıcıya metin taşımı sağlar.
Metin Parçacığı ile Dinamik Mesaj Gönderimi
Metin2 quest geliştirirken, sabit metinler yerine dinamik mesajlar kullanmak da mümkündür. Örneğin, oyuncunun adını veya puanını göstermek gibi. Bu tür işlemler için string birleştirme veya özel değişkenler kullanılabilir.
Kod:
[B]local oyuncu_adi = pc.get_name()[/B][BR][/BR][B]say_dialog(oyuncu_adi .. ', görevini başarıyla tamamladın!')[/B]
Yukarıdaki örnekte, oyuncunun adı otomatik olarak metne eklenir ve kişiselleştirilmiş bir mesaj görüntülenir.
Metin Taşı ile Seçenek Sunma
Bazı durumlarda, kullanıcıya seçim sunmak için metin taşı yerine 'select' komutu tercih edilir. Ancak metin taşı içinde de kısa seçimler yapılabilir. Örneğin:
Kod:
[B]local secim = select('Göreve başla', 'Bilgi al', 'Vazgeç')[/B]
Bu sayede oyuncu, metin taşı aracılığıyla farklı seçenekler arasından seçim yapabilir.
Hata Ayıklama ve Debugging
Quest geliştirirken hatalarla karşılaşmak kaçınılmazdır. Özellikle metin taşı komutları doğru çalışmıyorsa, log kayıtlarını kontrol etmek gerekir. Metin2 sunucularında debug işlemleri için 'server_log' veya 'notice' fonksiyonları kullanılabilir.
Kod:
[B]server_log('Metin taşı açılıyor...')[/B]
Bu sayede hangi noktada sorun oluştuğu daha kolay tespit edilebilir.
Sonuç
Metin2 quest geliştirme sürecinde metin taşı ve metin parçacığı kullanımı oldukça önemlidir. Doğru şekilde yapılandırılmış metin sistemleri, oyuncu deneyimini artırır ve görevlerin daha anlaşılır olmasını sağlar. Lua script bilgisiyle birlikte, gelişmiş quest sistemleri oluşturulabilir. Metin2lobby.com olarak, quest geliştirme konusunda destek sunmaya devam ediyoruz.
Calling Custom Text Stone with Text Chunk
Metin2 features powerful customization systems that are popular in MMORPG games. One of these systems is the Quest system. Developers who want to create custom quests on Metin2 servers can perform many operations via the Lua scripting language. In this article, we will examine in detail how to call custom text stones using text chunks within the Metin2 quest development process.
What Is a Text Chunk?
A text chunk is a small block containing messages, warnings, or informational texts shown to the player within the Metin2 quest system. These chunks usually appear during interactions with NPCs, during quests, or triggered by specific events.
How Is a Text Stone Defined?
A text stone is typically a message box used to display specific texts to the player. A call for a text stone can be triggered inside a quest script when certain events occur, such as when a player talks to an NPC or completes a task.
Using Text Chunks in Quest Scripts
In Lua-based quest scripts, calling a text stone is straightforward. An example usage is shown below:
Kod:
[B]say_dialog('Hello, I have a special mission for you.')[/B]
This code displays the message 'Hello, I have a special mission for you.' to the player in a textbox. Here, 'say_dialog' is one of the Metin2 script functions used to show text stones to the user.
Sending Dynamic Messages with Text Chunks
While developing Metin2 quests, it is possible to use dynamic messages instead of static ones. For instance, displaying the player's name or score. Such operations can be achieved using string concatenation or custom variables.
Kod:
[B]local player_name = pc.get_name()[/B][BR][/BR][B]say_dialog(player_name .. ', you have successfully completed your quest!')[/B]
In the above example, the player's name is automatically added to the message, resulting in a personalized message.
Offering Choices with Text Stones
In some cases, instead of a text stone, the 'select' command may be preferred to offer choices to the user. However, short selections can also be made within the text stone. For example:
Kod:
[B]local choice = select('Start Quest', 'Get Info', 'Cancel')[/B]
With this, the player can choose among different options through the text stone.
Debugging and Error Handling
Encountering errors while developing quests is inevitable. If text stone commands do not work correctly, checking log records is essential. On Metin2 servers, functions like 'server_log' or 'notice' can be used for debugging purposes.
Kod:
[B]server_log('Opening text stone...')[/B]
This allows easier identification of where issues occur.
Conclusion
Using text stones and text chunks is crucial in the Metin2 quest development process. Properly configured text systems enhance the player experience and make quests more understandable. With Lua scripting knowledge, advanced quest systems can be created. At Metin2lobby.com, we continue to provide support for quest development.
