Metin2 Işınlanma Yüzüğü Ekleme

  • Konbuyu başlatan Konbuyu başlatan Admin
  • Başlangıç tarihi Başlangıç tarihi
  • Cevaplar Cevaplar 0
  • Görüntüleme Görüntüleme 43

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Meraba arkadaşlar.Işınlanma yüzüğünü forumda aradım varmıydı diye ama bir sonuca varamadım ve bende yok olduğu için koyayım dedim.Evet Şimdi Direk konuya geçmek istiyorum:

File Zillayi acin giris yapin baglanin dbye bunu atin /usr/rain/channel/share_data/locale/hongkong/quest'in içine atin..

quest'teki make yi make.sh diye adlandirin.
Ve virtual pcye gelin bunları yazın:

cd /usr/rain/channel/share_data/locale/hongkong/quest
sh make.sh yazın bitince

cd /root yazın sonra reboot atın artık tamamdır

Hee unutmuyim Işınlanma yüzügünün kodu: 80009 dur
İtem Kodu: 80009
Tekrardan yazdım buda Link:
h t t p : / / u p l o a d e d . t o / f i l e / b 3 7 d z 9



Aradaki Boşlukları silmeyi unutmayınız!
Metin2 Işınlanma Yüzüğü Ekleme

Metin2 sunucularında özel item eklemek, oyuncular için daha keyifli bir deneyim sunar. Bu rehberde, Metin2 oyununda Işınlanma Yüzüğü adlı özel bir item'in nasıl ekleneceğini detaylıca anlatacağız. Bu işlem hem client hem de quest tarafında değişiklik gerektirir.

1. Işınlanma Yüzüğü Nedir?
Işınlanma Yüzüğü, oyuncuların belirli bir haritaya veya konuma anında ışınlanabilmesini sağlayan özel bir aksesuardır. Oyuncuların hızlı seyahat etmesini sağlar ve özellikle yüksek seviye oyuncular için büyük kolaylık sağlar.

2. Item Tanımı ve Özellikleri
Yüzük, 'Ring' kategorisinde tanımlanır ve genellikle 'Teleport Ring' olarak adlandırılır. Özellikleri arasında dayanıklılık, özel efektler ve sınırlı kullanım sayısı yer alabilir. Ayrıca, belirli bir süre sonra yeniden kullanılabilir hale gelmesi gibi zamanlayıcı (timer) özellikler de eklenebilir.

3. Client Tarafında Ayarlar
Öncelikle, client tarafında item'in görünümü, ismi ve açıklaması tanımlanmalıdır. Bu işlemler 'item_proto' dosyasında yapılır. Aşağıdaki gibi bir tanım yapılmalıdır:

Kod:
[BR][/BR]ID | Name | Type | SubType | Weight | Size | Gold | ShopBuyPrice | SignAttr | AffectFlag | MagicAffectFlag | AntiFlags | ImmuneFlag | Rarity | Sockets | Evolution | CostumeAttribute | LimitType0 | LimitValue0 | ApplyType0 | ApplyValue0 | Value0 | Value1 | Value2 | Value3 | Socket0 | Socket1 | Socket2 | Socket3 | Socket4 | Socket5 | Socket6 | Socket7 | Socket8 | Socket9 | Socket10 | Socket11 | Socket12 | Socket13 | Socket14 | Socket15 | Socket16 | Socket17 | Socket18 | Socket19 | Socket20 | Socket21 | Socket22 | Socket23 | Socket24 | Socket25 | Socket26 | Socket27 | Socket28 | Socket29 | Socket30 | Socket31 | Socket32 | Socket33 | Socket34 | Socket35 | Socket36 | Socket37 | Socket38 | Socket39 | Socket40 | Socket41 | Socket42 | Socket43 | Socket44 | Socket45 | Socket46 | Socket47 | Socket48 | Socket49 | Socket50 | Socket51 | Socket52 | Socket53 | Socket54 | Socket55 | Socket56 | Socket57 | Socket58 | Socket59 | Socket60 | Socket61 | Socket62 | Socket63 | Socket64 | Socket65 | Socket66 | Socket67 | Socket68 | Socket69 | Socket70 | Socket71 | Socket72 | Socket73 | Socket74 | Socket75 | Socket76 | Socket77 | Socket78 | Socket79 | Socket80 | Socket81 | Socket82 | Socket83 | Socket84 | Socket85 | Socket86 | Socket87 | Socket88 | Socket89 | Socket90 | Socket91 | Socket92 | Socket93 | Socket94 | Socket95 | Socket96 | Socket97 | Socket98 | Socket99 | Socket100[BR][/BR]


4. Quest Script ile Işınlanma İşlevi
Item kullanıldığında tetiklenecek quest scripti, Lua dilinde yazılır. Bu script, oyuncunun bulunduğu konumdan başka bir konuma ışınlanmasını sağlar. Örnek bir quest scripti şu şekildedir:

Kod:
[BR][/BR]quest teleport_ring begin[BR][/BR]    state start begin[BR][/BR]        when use with item.get_vnum() == 70007 begin -- Işınlanma Yüzüğü ID[BR][/BR]            if pc.get_level() >= 80 then[BR][/BR]                pc.warp(500, 500) -- Hedef koordinatlar[BR][/BR]                chat('Işınlama gerçekleşti!')[BR][/BR]            else[BR][/BR]                chat('Bu itemi kullanabilmek için seviye 80 olmalıdır.')[BR][/BR]            end[BR][/BR]        end[BR][/BR]    end[BR][/BR]end[BR][/BR]


5. Güvenlik ve Kısıtlamalar
Işınlanma yüzüğü, güçlü bir item olduğu için bazı güvenlik önlemleri alınmalıdır. Örneğin, sadece belirli seviye üzerindeki oyuncular tarafından kullanılabilir, sınırlı sayıda kullanılır veya belirli bir bekleme süresi olabilir. Bu kısıtlamalar quest scripti içinde tanımlanabilir.

6. Test ve Debugging
Quest scripti tamamlandıktan sonra test edilmelidir. Hatalar varsa, log dosyaları incelenerek düzeltilmelidir. Özellikle warp komutunun doğru çalıştığından emin olunmalıdır.

7. Sunucu Paylaşımı ve Topluluk
Hazırladığınız quest scriptini Metin2Lobby gibi siteler üzerinden toplulukla paylaşarak geri bildirim alabilirsiniz. Bu, quest geliştirme sürecinde size yardımcı olur.

Sonuç
Metin2'de Işınlanma Yüzüğü gibi özel item'ler eklemek, oyuncular için eğlenceli ve yaratıcı deneyimler sunar. Doğru yapılandırılmış quest sistemleri ile bu tür item'ler güçlü gameplay mekaniklerine dönüşebilir.


Adding Teleport Ring in Metin2

Adding special items to Metin2 servers enhances the gaming experience for players. In this guide, we will explain step by step how to add a special item called the 'Teleport Ring' in Metin2. This process involves changes both on the client and quest sides.

1. What is the Teleport Ring?
The Teleport Ring is a special accessory that allows players to instantly teleport to a specific map or location. It provides fast travel, especially beneficial for high-level players.

2. Item Definition and Features
The ring is categorized under 'Ring' and commonly named 'Teleport Ring'. Its features may include durability, special effects, and limited uses. Additionally, cooldowns can be implemented so the ring becomes usable again after a certain time.

3. Client-Side Configuration
Firstly, the appearance, name, and description of the item must be defined on the client side. These settings are made in the 'item_proto' file. An entry similar to the following should be added:

Kod:
[BR][/BR]ID | Name | Type | SubType | Weight | Size | Gold | ShopBuyPrice | SignAttr | AffectFlag | MagicAffectFlag | AntiFlags | ImmuneFlag | Rarity | Sockets | Evolution | CostumeAttribute | LimitType0 | LimitValue0 | ApplyType0 | ApplyValue0 | Value0 | Value1 | Value2 | Value3 | Socket0 | Socket1 | Socket2 | Socket3 | Socket4 | Socket5 | Socket6 | Socket7 | Socket8 | Socket9 | Socket10 | Socket11 | Socket12 | Socket13 | Socket14 | Socket15 | Socket16 | Socket17 | Socket18 | Socket19 | Socket20 | Socket21 | Socket22 | Socket23 | Socket24 | Socket25 | Socket26 | Socket27 | Socket28 | Socket29 | Socket30 | Socket31 | Socket32 | Socket33 | Socket34 | Socket35 | Socket36 | Socket37 | Socket38 | Socket39 | Socket40 | Socket41 | Socket42 | Socket43 | Socket44 | Socket45 | Socket46 | Socket47 | Socket48 | Socket49 | Socket50 | Socket51 | Socket52 | Socket53 | Socket54 | Socket55 | Socket56 | Socket57 | Socket58 | Socket59 | Socket60 | Socket61 | Socket62 | Socket63 | Socket64 | Socket65 | Socket66 | Socket67 | Socket68 | Socket69 | Socket70 | Socket71 | Socket72 | Socket73 | Socket74 | Socket75 | Socket76 | Socket77 | Socket78 | Socket79 | Socket80 | Socket81 | Socket82 | Socket83 | Socket84 | Socket85 | Socket86 | Socket87 | Socket88 | Socket89 | Socket90 | Socket91 | Socket92 | Socket93 | Socket94 | Socket95 | Socket96 | Socket97 | Socket98 | Socket99 | Socket100[BR][/BR]


4. Quest Script for Teleportation Functionality
When the item is used, the triggered quest script is written in Lua. The script teleports the player from their current location to another location. An example quest script looks like this:

Kod:
[BR][/BR]quest teleport_ring begin[BR][/BR]    state start begin[BR][/BR]        when use with item.get_vnum() == 70007 begin -- Teleport Ring ID[BR][/BR]            if pc.get_level() >= 80 then[BR][/BR]                pc.warp(500, 500) -- Target coordinates[BR][/BR]                chat('Teleportation successful!')[BR][/BR]            else[BR][/BR]                chat('You must be level 80 or higher to use this item.')[BR][/BR]            end[BR][/BR]        end[BR][/BR]    end[BR][/BR]end[BR][/BR]


5. Security and Restrictions
Since the teleport ring is a powerful item, security measures should be taken. For example, it could be restricted to only high-level players, have limited uses, or require a cooldown period. These restrictions can be defined within the quest script.

6. Testing and Debugging
After completing the quest script, it should be tested. If errors occur, log files should be reviewed and corrected. Ensure the warp command functions correctly.

7. Sharing with Community
You can share your quest script on platforms like Metin2Lobby to receive feedback from the community, which can assist in your quest development journey.

Conclusion
Adding special items like the Teleport Ring in Metin2 creates fun and creative experiences for players. With well-configured quest systems, such items can evolve into powerful gameplay mechanics.
 

Şuan Bu Konuyu Görüntüleyen Kullanıcılar (Toplam : 0, Üye : 0, Misafir : 0)

Benzer konular

Geri
Üst Alt