[ Frozen ] Duyguları Bloklama (c++,py)

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
game/char.cpp

Kod:
SetQuestFlag("game_option.block_party_request", bFlag & BLOCK_PARTY_REQUEST ? 1 : 0);

arat

Kod:
SetQuestFlag("game_option.block_emotion_request", bFlag & BLOCK_EMOTION_REQUEST ? 1 : 0);

ekle.

game/char.h

Kod:
BLOCK_PARTY_REQUEST      = (1 << 5),

arat

Kod:
BLOCK_EMOITION_REQUEST      = (1 << 6),

ekle.

game/cmd_emotion.cpp



arat



ekle.

-------------------------------------------

client/packet.h

Kod:
BLOCK_PARTY_REQUEST         = (1 << 5),

arat

Kod:
BLOCK_EMOTION_REQUEST         = (1 << 6),

ekle.

client/pythonplayermodule.cpp

Kod:
PyModule_AddIntConstant(poModule, "BLOCK_PARTY_REQUEST",      BLOCK_PARTY_REQUEST);

arat

Kod:
PyModule_AddIntConstant(poModule, "BLOCK_EMOTION_REQUEST",      BLOCK_EMOTION_REQUEST);

ekle.

-------------------------------------------

pack/root/uigameoption.py

Kod:
self.blockButtonList.append(GetObject("block_party_request_button"))

arat

Kod:
self.blockButtonList.append(GetObject("emotionblock_on_button"))

ekle.

Kod:
self.blockButtonList[6].SetToggleUpEvent(self.__OnClickBlockEquipButton)

arat

Kod:
self.blockButtonList[7].SetToggleUpEvent(self.__OnClickBlockEmotionButton)

ekle.

Kod:
self.blockButtonList[6].SetToggleDownEvent(self.__OnClickBlockEquipButton)

arat

Kod:
self.blockButtonList[7].SetToggleDownEvent(self.__OnClickBlockEmotionButton)

ekle.



arat



ekle.

pack/uiscript/gameoptiondialog.py



arat



ekle.

İyi Forumlar.

Frozen Duyguları Bloklama Sistemi Nedir?

Metin2 özel sunucularında geliştirilen sistemlerden biri olan Frozen Duyguları Bloklama, oyuncuların belirli durumlarda hissettikleri duyguları kontrol etmesini sağlar. Bu sistem genellikle C++ veya Python dillerinde yazılmıştır ve oyuncu deneyimini artırıcı niteliktedir. Özellikle PvP odaklı sunucularda, oyuncuların kontrolsüz duygusal tepkiler vermemesi için bu tür sistemler tercih edilir.

Sistem Nasıl Çalışır?

Frozen Duyguları Bloklama sistemi, oyuncunun belirli durumlar altında (örneğin savaş sırasında) duygusal ifadeleri bloklar. Bu sayede öfke, üzüntü, mutluluk gibi ifadelerin PvP anlarında kullanılması engellenir. Bu tür ifadelerin bloklanması, oyun içi atmosferin korunmasına yardımcı olur.

C++ ile Uygulama

C++ dilinde yazılmış bir sistemde, oyuncu veritabanında belirli bir durum bayrağı (flag) oluşturulabilir. Bu bayrak, oyuncunun şu anda 'duygu engelli' olduğunu belirtir. Eğer oyuncu bir PvP alanı içindeyse, client tarafında duygu komutları devre dışı bırakılır. Bu işlem için game core üzerinde değişiklikler yapılması gerekir.

Python ile Uygulama

Python tarafında ise genellikle uiscript veya py root dosyalarında duygu komutlarını filtreleyen fonksiyonlar yazılır. Örneğin bir GUI üzerinden oyuncu duygu bloklaması aktifse, ilgili komut çalıştırılmaz. Bu tür kontroller auth veya db bağlantısı ile dinamik olarak yapılabilir.

Neden Kullanılır?

Bu tür sistemler özellikle Metin2 PvP sunucuları için önemlidir. Oyuncuların savaş esnasında abartılı duygusal ifadeler kullanması, diğer oyuncuların deneyimini bozabilir. Bu da sunucu sadakati açısından olumsuz etki yaratır. Frozen Duyguları Bloklama sayesinde daha profesyonel bir PvP ortamı sağlanır.

Sonuç

Frozen Duyguları Bloklama sistemi, Metin2 özel sunucuları için geliştirilebilecek küçük ama etkili sistemlerden biridir. Hem C++ hem de Python tabanlı uygulamalarla kolayca entegre edilebilir. Bu sayede oyuncuların deneyimi optimize edilir ve daha dengeli bir PvP yapısı kurulabilir.


What is Frozen Emotion Blocking System?

The Frozen Emotion Blocking system is one of the systems developed for Metin2 private servers. It allows players to control their emotional expressions during certain situations. This system is typically written in C++ or Python and enhances the player experience. Particularly on PvP-focused servers, such systems are preferred to prevent players from having uncontrolled emotional reactions.

How Does the System Work?

The Frozen Emotion Blocking system blocks players' emotional expressions under certain conditions (e.g., during combat). This prevents expressions like anger, sadness, or joy from being used during PvP moments. Blocking these expressions helps preserve the in-game atmosphere.

Implementation with C++

In a C++ based system, a specific status flag can be created in the player database indicating that the player is currently 'emotion-blocked'. If the player is inside a PvP zone, emotional commands are disabled on the client side. Modifications to the game core are required for this process.

Implementation with Python

In Python, functions that filter emotion commands are generally written in uiscript or py root files. For example, if the emotion blocking is active via a GUI, the command will not execute. These checks can be performed dynamically through auth or db connections.

Why Is It Used?

These types of systems are especially important for Metin2 PvP servers. Overuse of emotional expressions during combat can disrupt other players' experiences, which negatively affects server loyalty. With Frozen Emotion Blocking, a more professional PvP environment is achieved.

Conclusion

The Frozen Emotion Blocking system is a small but effective system that can be developed for Metin2 private servers. It can be easily integrated with both C++ and Python-based implementations, optimizing player experience and enabling a more balanced PvP structure.
 

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

Benzer konular

Geri
Üst Alt