İteme 4 Taş ekleme // Redaust

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

Admin

Metin2Lobby
Yönetici
Founder
Katılım
6 Mayıs 2022
Mesajlar
52,647
Ticaret : 1 / 0 / 0
Eksiksiz Yapın Çalışacaktır.

common/item_lenght.h Açılır
Kod:
ITEM_SOCKET_MAX_NUM = 3,


Aratılır .

Kod:
ITEM_SOCKET_MAX_NUM = 4,

Değiştirilir .

game/src/constants.cpp Açılır .

Kod:
const int aiWeaponSocketQty[WEAPON_NUM_TYPES] =

Aratılır .

Kod:
4, // WEAPON_SWORD,
4, // WEAPON_DAGGER,
4, // WEAPON_BOW,
4, // WEAPON_TWO_HANDED,
4, // WEAPON_BELL,
4, // WEAPON_FAN,
0, // WEAPON_ARROW,
0, // WEAPON_MOUNT_SPEAR


Kod Bloğu Değiştirilir . ( Sadece Aşağısı ) const int'a Dokunmayın.

Kod:
const int aiArmorSocketQty[ARMOR_NUM_TYPES] =
Aratılır .

Kod:
4, // ARMOR_BODY,
1, // ARMOR_HEAD,
1, // ARMOR_SHIELD,
0, // ARMOR_WRIST,
0, // ARMOR_FOOTS,
0 // ARMOR_ACCESSORY
Kod Bloğu Değiştirilir . Saece Aşağısı const int'a Dokunmayın.

db/src/ClientManagerPlayer.cpp Açılır .

Kod:
str_to_number(item.alSockets[2], row[cur++]
Aratılır .

Kod:
str_to_number(item.alSockets[3], row[cur++]);
Altına Eklenir.

Kod:
"SELECT id,window+0,pos,count,vnum,socket0,socket1,socket2 ,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtyp e2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrv alue4,attrtype5,attrvalue5,attrtype6,attrvalue6 "


Aratılır .

Kod:
"SELECT id,window+0,pos,count,vnum,socket0,socket1,socket2 ,socket3,attrtype0,attrvalue0,attrtype1,attrvalue1 ,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtyp e4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrv alue6 "


Değiştirilir .

Kod:
"SELECT id,window+0,pos,count,vnum,socket0,socket1,socket2 ,attrtype0,attrvalue0,attrtype1,attrvalue1,attrtyp e2,attrvalue2,attrtype3,attrvalue3,attrtype4,attrv alue4,attrtype5,attrvalue5,attrtype6,attrvalue6 "



Aratılır .

Kod:
"SELECT id,window+0,pos,count,vnum,socket0,socket1,socket2 ,socket3,attrtype0,attrvalue0,attrtype1,attrvalue1 ,attrtype2,attrvalue2,attrtype3,attrvalue3,attrtyp e4,attrvalue4,attrtype5,attrvalue5,attrtype6,attrv alue6 "


Değiştirilir .

db/src/ClientManager.cpp Açılır .

Kod:
"SELECT id, window+0, pos, count, vnum, socket0, socket1, socket2 "

Aratılır .

Kod:
"SELECT id, window+0, pos, count, vnum, socket0, socket1, socket2, socket3 "


Değiştirilir .

db/src/Cache.cpp Açılır

Kod:
iLen += snprintf(szColumns + iLen, sizeof(szColumns) - iLen, ", socket0, socket1, socket2");


Aratılır .


Kod:
iLen += snprintf(szColumns + iLen, sizeof(szColumns) - iLen, ", socket0, socket1, socket2, socket3");


Değiştirilir .

Kod:
", %lu, %lu, %lu", p->alSockets[0], p->alSockets[1], p->alSockets[2]);
Aratılır .

Kod:
", %lu, %lu, %lu, %lu", p->alSockets[0], p->alSockets[1], p->alSockets[2], p->alSockets[3]);
Değiştirilir .

Kod:
", socket0=%lu, socket1=%lu, socket2=%lu", p->alSockets[0], p->alSockets[1], p->alSockets[2]);
Aratılır .

Kod:
", socket0=%lu, socket1=%lu, socket2=%lu, socket3=%lu", p->alSockets[0], p->alSockets[1], p->alSockets[2], p->alSockets[3]);

Değiştirilir .

Client/userinterface/gametype.h

Kod:
ITEM_SOCKET_SLOT_MAX_NUM = 3,
Aratılır.

Kod:
ITEM_SOCKET_SLOT_MAX_NUM = 4,

Değiştirilir .

Metin2 Client Paketi İçine İteme 4 Taş Ekleme Rehberi

Metin2 oyununda özel efektler, güçlü itemler ve görsel zenginlikler sunan paketler, oyuncuların dikkatini çeker. Özellikle İteme 4 Taşı gibi güçlü itemleri client veya pack içerisine entegre etmek, hem oyun deneyimini artırır hem de sunucuya özgü bir özellik kazandırır.

İteme 4 Nedir?
İteme 4, Metin2 oyununda eşyaların güçlerini artıran, rastgele bonuslar veren bir yükseltme sistemidir. Bu taşlar sayesinde silah, zırh ve diğer ekipmanlar daha güçlü hale gelir.

Client veya Pack'e Taş Ekleme Adımları
1. Gerekli Dosyaları Toplayın:
- item_proto.dsc
- locale_list.txt
- item_vnum.py
- effect_info.lua
- client-side asset dosyaları

2. item_proto.dsc Dosyasında Tanımlama Yapın:
Yeni bir item ID'si belirleyin ve İteme 4 Taşı için gerekli verileri girin. Örneğin:
Kod:
{[BR][/BR]  vnum: 71000[BR][/BR]  name: 'Iteme_4_Tas'[BR][/BR]  type: 'etc'[BR][/BR]  subtype: 'material'[BR][/BR]  weight: 1[BR][/BR]  size: 1[BR][/BR]  gold: 10000[BR][/BR]  shop_buy_price: 10000[BR][/BR]}

3. Client Tarafında Görsel Efekt ve İkon Ekleyin:
Client klasöründe gfx altına yeni iconu ve efekti yerleştirin. UI kısmında item iconu gösterilecekse burayı güncelleyin.

4. item_vnum.py Dosyasını Güncelleyin:
Yeni tanımladığınız item ID'sini script dosyalarında kullanmak üzere kaydedin.

5. locale_list.txt Dosyasına Tanımlama Ekleyin:
Bu dosya, client tarafında item adlarının doğru görüntülenmesini sağlar.

Taşın Sunucuda Aktif Olması için Gerekli Ayarlar
Sunucu tarafında item_usage.cpp, char_item.cpp gibi dosyalarda gerekli fonksiyonları tanımlamalısınız. Bu sayede taş kullanılabilir ve ekipmana takılabilir olacaktır.

Hata Alırsanız Kontrol Edilmesi Gereken Yerler
- item_proto dsc dosyasındaki yazım hataları
- client-server uyumsuzluğu
- dosya yollarının doğru olup olmadığı

Sonuç
İteme 4 Taşı gibi özel itemleri client veya pack içine doğru şekilde eklemek, Metin2 sunucularında kullanıcı deneyimini ciddi anlamda artırır. Bu işlem için hem client hem de server tarafında değişiklik yapılması gerekir.


Guide to Adding Iteme 4 Stone in Metin2 Client Packs

In Metin2, packs offering special effects, powerful items, and visual enhancements attract player attention. Integrating powerful items like the Iteme 4 Stone directly into a client or pack enhances gameplay and adds a unique feature to the server.

What is Iteme 4?
Iteme 4 is an upgrade system in Metin2 that increases equipment stats and grants random bonuses. These stones make weapons, armor, and other gear more powerful.

Steps to Add Stones to Client or Pack
1. Gather Required Files:
- item_proto.dsc
- locale_list.txt
- item_vnum.py
- effect_info.lua
- client-side asset files

2. Define in item_proto.dsc File:
Assign a new item ID and enter necessary data for the Iteme 4 Stone. Example:
Kod:
{[BR][/BR]  vnum: 71000[BR][/BR]  name: 'Iteme_4_Tas'[BR][/BR]  type: 'etc'[BR][/BR]  subtype: 'material'[BR][/BR]  weight: 1[BR][/BR]  size: 1[BR][/BR]  gold: 10000[BR][/BR]  shop_buy_price: 10000[BR][/BR]}

3. Add Visual Effects and Icons on Client Side:
Place new icons and effects under the gfx folder in the client directory. Update UI sections if needed for display purposes.

4. Update item_vnum.py File:
Save the new item ID so it can be used within script files.

5. Add Entry to locale_list.txt File:
This file ensures the item name displays correctly on the client side.

Server-Side Configurations for Activating the Stone
On the server side, define required functions in files like item_usage.cpp and char_item.cpp so that the stone becomes usable and attachable to equipment.

Common Areas to Check If Errors Occur
- Typo errors in item_proto.dsc file
- Mismatch between client and server
- Correctness of file paths

Conclusion
Adding special items like the Iteme 4 Stone correctly into a client or pack significantly enhances the user experience in Metin2 servers. This process requires modifications on both client and server sides.
 

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

Geri
Üst Alt