Official Pet Sistemi Offlineshop Fixi

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Offlineshop'a nakliye koyunca petin levelinin değişmesi sorunu. sorun socket kullanılıyor olmasıdır. uzun olduğundan toplu konusuna konu linki şeklinde dahil edilmiştir.

char_item.cpp açılır ve aratılır.

Kod:
item2->SetSocket(1, item->GetSocket(1));

değiştirilir.

Kod:
item2->SetSocket(1, item->GetID());

hemen altındaki şu kod kaldırılır.

Kod:
DBManager::instance().DirectQuery("UPDATE new_petsystem SET id =%d WHERE id = %d", item2->GetID(), item->GetID());

tekrar aratılır.

Kod:
item2->SetSocket(1,item->GetSocket(1));

değiştirilir.

Kod:
item2->SetSocket(0,item2->GetID());

altında bulunur.

Kod:
DBManager::instance().DirectQuery("UPDATE new_petsystem SET id =%d WHERE id = %d", item2->GetID(), item->GetID());

değiştirilir.

Kod:
DBManager::instance().DirectQuery("UPDATE new_petsystem SET id =%d WHERE id = %d", item2->GetID(), item->GetSocket(1));

new_petsystem.cpp açılır ve bulunur.

Kod:
void CNewPetActor::UpdateTime(){

bulunur ve silinir.

Kod:
pSummonItem->SetSocket(1,m_dwlevel); pSummonItem->SetSocket(0, false);

bulunur

Kod:
pSummonItem->SetForceAttribute(4, 1, m_dwtduration);

değiştirilir

Kod:
pSummonItem->SetForceAttribute(4, 1, m_dwlevel);

bulunur ve silinir

Kod:
pSummonItem->SetSocket(1,m_dwlevel);

bulunur

Kod:
pSummonItem->SetForceAttribute(4, 1, m_dwtduration);

değiştirilir.

Kod:
pSummonItem->SetForceAttribute(4, 1, m_dwlevel);

bulunur ve silinir

Kod:
pSummonItem->SetSocket(0,true);

Official Pet Sistemi Offlineshop Fixi

Metin2 özel sunucularında yetenekli geliştiriciler için önemli konulardan biri olan Official Pet Sistemi, oyuncuların evcil hayvanlarını offline olarak satın alabilmesine olanak tanır. Ancak bu sistemin düzgün çalışması için bazı hataların giderilmesi gerekir. Bu yazıda, Metin2 özel sunucu geliştiricileri için Official Pet Sistemi Offlineshop Fixi konusunu detaylıca ele alacağız.

Official Pet Sistemi Nedir?

Official Pet Sistemi, Metin2 oyununda oyuncuların belirli seviyelere ulaşmış oldukları evcil hayvanları sahiplenmelerini ve bunları offline durumda dahi kullanabilmelerini sağlayan gelişmiş bir özelliktir. Bu sistem sayesinde oyuncular, evcil hayvanlarını kullanarak bonuslar kazanabilir ve PvP mücadelelerinde avantaj sağlayabilirler.

Offlineshop Fixi Neden Gerekli?

Offlineshop, oyuncuların oyun kapalıyken bile mağaza işlemleri yapabilmesini sağlar. Ancak Official Pet sistemiyle entegre edildiğinde bazı hatalar oluşabilir. Örneğin, pet satın alma işlemi yapıldığında petin doğru şekilde oyuna yansımayabilir veya offline durumdayken petin aktif olmaması gibi sorunlar yaşanabilir. Bu nedenle, sistemde gerekli düzeltmelerin yapılması şarttır.

Fix Uygulama Adımları

1. Game Sunucusu Kaynak Kodu: İlk olarak, game_src dosyasında yer alan pet sistemine ait kaynak kodları kontrol etmelisiniz. Pet satın alma fonksiyonunun doğru şekilde tanımlandığından emin olun. Özellikle pet.cpp ve pet.h dosyalarında değişiklikler gerekebilir.
2. Python Scriptleri: Offlineshop sistemi genellikle Python tabanlıdır. Py root klasöründe yer alan offlineshop.py dosyasında pet ile ilgili kontrol mekanizmalarının doğru entegrasyonu sağlanmalıdır.
3. Database Ayarları: DB core tarafında pet bilgilerinin tutulduğu tablolarda, offline satış sırasında doğru veri yazılmasını sağlamak için trigger veya stored procedure tanımlamaları yapılmalıdır.

Fix Sonrası Kontroller

Fix uygulandıktan sonra, hem auth hem de game sunucularında test işlemleri yapılmalıdır. Oyuncu karakteri offline iken pet satın alındığında, karakter tekrar giriş yaptığında petin doğru şekilde aktif olması gerekir. Ayrıca PvP sistemlerinde petin verdiği bonusların da aktif olduğundan emin olunmalıdır.

Sonuç

Official Pet Sistemi Offlineshop Fixi, Metin2 özel sunucularında profesyonel düzeyde bir geliştirme gerektirir. C++ sistem bilgisi, Python GUI ve DB core bilgileri bu fix işlemini başarıyla gerçekleştirmek için gereklidir. Bu tür sistemsel geliştirmeler, oyuncu deneyimini ciddi anlamda artırır ve sunucunuzun rekabet gücünü güçlendirir.


Official Pet System Offlineshop Fix

The Official Pet System is one of the important topics for skilled developers in Metin2 private servers, allowing players to purchase pets offline. However, certain errors must be fixed for this system to function properly. In this article, we will discuss the Official Pet System Offlineshop Fix in detail for Metin2 private server developers.

What is the Official Pet System?

The Official Pet System is an advanced feature in Metin2 that allows players to own pets they have reached certain levels with and use them even while offline. With this system, players can gain bonuses through their pets and gain advantages in PvP battles.

Why is the Offlineshop Fix Necessary?

Offlineshop enables players to perform store transactions even when the game is closed. However, when integrated with the Official Pet System, some bugs may occur. For example, after purchasing a pet, it might not appear correctly in the game, or the pet may not become active while offline. Therefore, necessary corrections must be made to the system.

Steps to Apply the Fix

1. Game Server Source Code: First, you should check the source code related to the pet system in the game_src folder. Ensure that the pet purchase function is defined correctly. Modifications may be required in the pet.cpp and pet.h files.
2. Python Scripts: The Offlineshop system is generally based on Python. In the py root folder, ensure proper integration of pet-related checks within the offlineshop.py file.
3. Database Settings: On the DB core side, triggers or stored procedures should be defined in the tables storing pet information to ensure correct data insertion during offline sales.

Post-Fix Checks

After applying the fix, tests must be performed on both auth and game servers. When a pet is purchased while the player's character is offline, upon re-login, the pet should activate correctly. Additionally, verify that bonuses provided by the pet are active in PvP systems.

Conclusion

The Official Pet System Offlineshop Fix requires professional-level development skills in Metin2 private servers. Knowledge of C++ systems, Python GUI, and DB core is essential to successfully implement this fix. Such systematic improvements significantly enhance the player experience and strengthen your server's competitive edge.
 

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

Benzer konular

Geri
Üst Alt