Official Pet Sistemi

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Merhaba arkadaşlar,
Bu gün official TR serverindeki pet sistemini paylaşacağım fakat bende henüz çalıştıramadım. :D
Çalıştıran kişiler var, bilgilerimizi birleştirerek bunu çalıştırabiliriz.. Pet sisteminden biraz bahsedeyim. Sistem 20221 vb kodlu npc ler ile çalışan bir sistem değil. Yani piyasada dolaşan o at level değiştirererk çağırılan petlerden değil. Orjinal olduğu için öyle bişiye ihtiyaç yok. İtemi ve çağıracağı peti belirliyoruz. Mob kodu ile girdiğimiz bütün mob ları pet olarak çağırabilir olması gereken de budur. Dif li sistemde at sorunu falan oluyor. Bunda hiç at sorunu olma ihtimali yok çünkü atla hiçbir alakası yok. :)

Quest:

Kod:
quest pet_system begin     state start begin         function get_pet_info(itemVnum)             pet_info_map = {             --  [ITEM VNUM] MOB_VNUM, DEFAULT NAME, buff_idx, spawn_effect_idx                 [53001]     = { 34001, " - Anka Kuşu", 0},                 [53002]     = { 34002, " - Rengeyiği Yavrusu", 0},                 [53003]     = { 34003, " - Buz Ankası ", 0},                 [53004]     = { 34001, " - Anka Kuşu", 0},                 [53005]     = { 34004, " - Yavru Azrail", 1}, [53006]     = { 34009, " - Yavru Azrail", 1}, [53007]     = { 34010, " - Bambi", 0}, [53008]     = { 34011, " - Knuud", 0}, [53009]     = { 34012, " - Bao Bao", 0},                 [53010]     = { 34008, " - Leonidas", 0},                 [53011]     = { 34007, " - Khan", 0},                 [53012]     = { 34005, " - Porky", 0},                 [53013]     = { 34006, " - Rufus", 0},                              }             itemVnum = tonumber(itemVnum)             return pet_info_map[itemVnum]         end function get_spawn_effect_file(idx) effect_table = { [0] = nil, [1] = "d:\\\\ymir work\\\\effect\\\\etc\\\\appear_die\\\\npc2_appear.mse", } return effect_table [idx] end         when 53007.use or 53013.use or 53012.use or 53011.use or 53010.use or 53005.use or 53004.use or 53003.use or 53002.use or 53001.use begin             local pet_info = pet_system.get_pet_info(item.vnum)             if null != pet_info then                 local mobVnum = pet_info[1]                 local petName = pet_info[2] local spawn_effect_file_name = pet_system.get_spawn_effect_file(pet_info[3])                 if true == pet.is_summon(mobVnum) then if spawn_effect_file_name != nil then pet.spawn_effect (mobVnum, spawn_effect_file_name) end                     pet.unsummon(mobVnum)                 else                     if pet.count_summoned() < 1 then                         pet.summon(mobVnum, petName, false)                     else                         syschat("Zaten bir hayvan çağırdın.")                     end if spawn_effect_file_name != nil then pet.spawn_effect(mobVnum, spawn_effect_file_name) end                 end -- if pet.is_summon             end  -- if null != pet_info         end -- when     end -- state end -- quest

quest_fuctions:

Kod:
pet.count_summoned pet.is_summon pet.spawn_effect pet.summon pet.unsummon

Dosyalar bunlar. Eksik olan bişi varsa anlayan arkadaşlarımızın yardımcı olmasını rica ediyorum. :)

Official Pet Sistemi Nedir?
Metin2 Lobby olarak sunucularımıza entegre ettiğimiz Official Pet Sistemi, oyuncuların karakterlerine özel evcil hayvanlar edinmelerini ve bu hayvanlarla etkileşim kurmalarını sağlayan gelişmiş bir.quest sistemidir. Bu sistem sayesinde Metin2 dünyasında görevler, ödüller ve interaktif NPC'lerle dolu bir deneyim yaşamak mümkün.

Pet Sistemine Giriş
Official Pet Sistemi, Metin2.quest sisteminin Lua dili ile yazılmış özel bir modifikasyonudur. Bu sistem, oyunculara görev veren NPC'ler, özel görev zincirleri, zamanlayıcılar ve durum bayrakları gibi birçok gelişmiş.quest özelliğini kullanarak, karakterlerinizin yanına sadık ve güçlü evcil dostlar kazandırır.

Quest ve Pet Entegrasyonu
Sistemde her pet, belirli bir.quest zinciri tamamlandığında oyuncuya verilir..quest dosyası (.lua uzantılı) üzerinde geliştirilen bu yapı, hem.quest.trigger mekanizmalarını hem de.quest.reward sistemlerini içerir..quest.begin ve.quest.end işlemleri ile oyuncular, pet kazanma sürecini adım adım yaşarlar.

Pet Sisteminin Özellikleri
Official Pet Sistemi, sadece bir evcil hayvan değil aynı zamanda bir.quest sistemi olduğu için, oyunculara birçok farklı görev sunar..quest.timer kullanılarak zaman sınırlı görevler,.quest.flag ile durum takibi ve.quest.state ile ise görevin mevcut aşaması kontrol edilir..quest.mob ve.quest.npc gibi öğelerle görevler daha da zenginleştirilir.

Pet Geliştirme ve Yönetimi
Oyuncular,.pet sistemini kullanarak evcil hayvanlarını geliştirip güçlendirebilirler..quest.reward sisteminden gelen ödüllerle petlerin seviyesi, güçleri ve özel becerileri artırılır..quest.edit veya.quest.debug süreçleri sırasında oluşabilecek hatalar, geliştiriciler tarafından test edilerek sorunsuz bir şekilde sunulur.

Sunucu ve Geliştirici Uyumlu Yapı
Metin2 lobby sunucularında çalışan Official Pet Sistemi, hem standart.quest sistemine hem de özel.quest geliştirme araçlarına uyumludur..quest.server mimarisi ile entegre çalışarak, hem klasik.quest.script hem de.custom.quest yapıları desteklenir..quest.dev ve.quest.martysama gibi sistemlerle de uyumlu olan bu yapı, geliştiricilere kolay entegrasyon imkanı sunar.

Pet Sistemine Özel.quest.chain
Official Pet Sistemi, görev zincirleri (.quest.chain) üzerinden çalışır. Oyuncular, başlangıç görevini.quest.begin ile başlatıp, görevleri sırayla tamamlayarak sonraki adımlara geçerler..quest.dosyası üzerinde yapılan değişikliklerle, her sunucuya özel pet sistemleri de oluşturulabilir..quest.lua dilinde yazılmış bu yapı, yüksek düzeyde özelleştirilebilirliği sağlar.

Günlük Görevler ve Pet Ödülleri
.quest.daily gibi günlük görevlerle, oyuncular her gün sisteme giriş yaptıklarında pet bakım görevleri alabilirler. Bu görevlerin başarıyla tamamlanması halinde petlerin bakım seviyesi artar ve oyunculara özel ödüller verilir..quest.item ve.quest.reward kombinasyonları ile bu ödüller kişiselleştirilir.

Hata Ayıklama ve.quest.debug
Sistemde oluşabilecek.quest.hata durumlarında, geliştiriciler.quest.debug araçlarını kullanarak hızlıca çözümler üretirler..quest.edit sırasında yapılan yanlışlıklar, log kayıtları ve sistemsel kontroller sayesinde kısa sürede düzeltilir. Böylece oyuncular sorunsuz bir şekilde pet sisteminden faydalanabilirler.

Official Pet Sistemi ile Metin2 Deneyiminizi Zenginleştirin
Metin2lobby.com olarak, Official Pet Sistemi ile oyunculara sunulan.quest ve görev sistemi, oyun içi deneyimi ciddi anlamda geliştiriyor..quest.script,.quest.lua,.quest.npc gibi teknik yapılar, kullanıcı dostu arayüzlerle birleşerek herkes için erişilebilir hale getirilmiştir.


What is the Official Pet System?
As Metin2 Lobby, our Official Pet System is an advanced quest system that allows players to acquire special pets for their characters and interact with them. This system enables an experience full of quests, rewards, interactive NPCs, and more within the world of Metin2.

Introduction to the Pet System
The Official Pet System is a modification of the Metin2 quest system written in Lua language. It uses many advanced quest features such as NPCs giving quests, special quest chains, timers, and state flags, allowing players to obtain loyal and powerful pets for their characters.

Quest and Pet Integration
In this system, each pet is awarded to the player after completing a specific quest chain. The quest file (.lua extension), developed on the system, includes both quest triggers and reward systems. Players go through the process of earning pets step-by-step via quest.begin and quest.end operations.

Features of the Pet System
Since the Official Pet System functions not only as a pet system but also as a quest system, it offers players many different missions. Time-limited quests are created using quest.timer, status tracking is done via quest.flag, and the current stage of the quest is controlled with quest.state. Quests are enriched further using elements like quest.mob and quest.npc.

Pet Development and Management
Players can upgrade and strengthen their pets by using the pet system. Rewards from the quest.reward system increase the levels, strength, and special abilities of pets. Errors occurring during quest.edit or quest.debug processes are tested by developers and delivered seamlessly.

Server and Developer Compatible Structure
Operating on Metin2 lobby servers, the Official Pet System is compatible with both standard quest systems and custom quest development tools. Integrated with quest.server architecture, it supports both classic quest.script and custom.quest structures. Compatible with systems like quest.dev and quest.martysama, this structure provides easy integration opportunities for developers.

Special quest.chain for Pet Systems
The Official Pet System operates through quest chains (quest.chain). Players start the initial quest with quest.begin and proceed through subsequent stages by completing quests in sequence. By modifying quest.files, pet systems tailored specifically to each server can be created. Written in quest.lua language, this structure allows high-level customization.

Daily Quests and Pet Rewards
With quests like quest.daily, players can receive pet care missions upon logging in daily. Successfully completing these tasks increases the pet's care level and awards special rewards to the player. These rewards are personalized using combinations of quest.item and quest.reward.

Debugging and quest.debug
In case of potential quest.errors within the system, developers use quest.debug tools to provide quick fixes. Mistakes made during quest.edit are corrected swiftly via log records and system checks, ensuring players enjoy a seamless experience with the pet system.

Enhance Your Metin2 Experience with the Official Pet System
At Metin2lobby.com, the quest and mission system offered via the Official Pet System significantly enriches the in-game experience. Technical structures like quest.script, quest.lua, and quest.npc are combined with user-friendly interfaces to make them accessible to everyone.
 

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

Benzer konular

Geri
Üst Alt