Jump to content
Sign in to follow this  
Arslan

Aumentar Slot De Lojas

Recommended Posts

Boa noite pessoal do Tmoore Please login or register to see this image. /uploads/emoticons/xenforo-smilies-sprite.png.274688e589d11cf51879e1b36985bd7d.png">

gostaria de pedir um tutorial somenta parte da source para aumentar slots das lojas atualmente tenho a expansão no cliente. alguns npcs nao tiveram problema com a posição dos itens, porém o armeiro e armoreiro estão com alguns itens encima um do outro alguem teria um tuto de como resolver o problema de slots das lojas?

Share this post


Link to post
Share on other sites

Cliente:

Ficheiro UserInterface/packet.h

 

Procurar por:

 

SHOP_HOST_ITEM_MAX_NUM = 40,

 

Mudar para:

SHOP_HOST_ITEM_MAX_NUM = 80,

 

Game:

Ficheiro common/length.h

 

Procurar por:

SHOP_HOST_ITEM_MAX_NUM = 40,

SHOP_PRICELIST_MAX_NUM = 40,

 

Mudar para:

SHOP_HOST_ITEM_MAX_NUM = 80,

SHOP_PRICELIST_MAX_NUM = 80,

 

Ficheiro game/shop.cpp

 

Procurar por:

m_pGrid = M2_NEW CGrid(5, 9);

 

Mudar para:

m_pGrid = M2_NEW CGrid(10, 9);

  • Upvote 1

Share this post


Link to post
Share on other sites

após fazer essas mudanças o game compila porém nao consigo mais logar sempre me dá falha de conexão

shop.cpp

 

CShop::CShop()

: m_dwVnum(0), m_dwNPCVnum(0), m_pkPC(NULL)

{

m_pGrid = M2_NEW CGrid(10, 9);

}

 

length.h

 

 

enum EMisc

{

MAX_HOST_LENGTH = 15,

IP_ADDRESS_LENGTH = 15,

LOGIN_MAX_LEN = 30,

PASSWD_MAX_LEN = 16,

PLAYER_PER_ACCOUNT = 4,

ACCOUNT_STATUS_MAX_LEN = 8,

CHARACTER_NAME_MAX_LEN = 24,

SHOP_SIGN_MAX_LEN = 32,

INVENTORY_MAX_NUM = 180,

ABILITY_MAX_NUM = 50,

EMPIRE_MAX_NUM = 4,

BANWORD_MAX_LEN = 24,

SMS_MAX_LEN = 80,

MOBILE_MAX_LEN = 32,

SOCIAL_ID_MAX_LEN = 18,

 

GUILD_NAME_MAX_LEN = 12,

 

SHOP_HOST_ITEM_MAX_NUM = 80, /* È£½ºÆ®ÀÇ ÃÖ´ë ¾ÆÀÌÅÛ °³¼ö */

SHOP_GUEST_ITEM_MAX_NUM = 18, /* °Ô½ºÆ®ÀÇ ÃÖ´ë ¾ÆÀÌÅÛ °³¼ö */

 

SHOP_PRICELIST_MAX_NUM = 80, ///< °³ÀλóÁ¡ °¡°ÝÁ¤º¸ ¸®½ºÆ®¿¡¼­ À¯ÁöÇÒ °¡°ÝÁ¤º¸ÀÇ ÃÖ´ë °¹¼ö

 

CHAT_MAX_LEN = 512,

 

QUICKSLOT_MAX_NUM = 36,

 

JOURNAL_MAX_NUM = 2,

 

QUERY_MAX_LEN = 8192,

 

FILE_MAX_LEN = 128,

 

PLAYER_EXP_TABLE_MAX = 120,

PLAYER_MAX_LEVEL_CONST = 120,

 

GUILD_MAX_LEVEL = 20,

MOB_MAX_LEVEL = 100,

 

ATTRIBUTE_MAX_VALUE = 20,

CHARACTER_PATH_MAX_NUM = 64,

SKILL_MAX_NUM = 255,

SKILLBOOK_DELAY_MIN = 64800,

SKILLBOOK_DELAY_MAX = 108000,

SKILL_MAX_LEVEL = 40,

 

APPLY_NAME_MAX_LEN = 32,

EVENT_FLAG_NAME_MAX_LEN = 32,

 

MOB_SKILL_MAX_NUM = 5,

 

POINT_MAX_NUM = 255,

DRAGON_SOUL_BOX_SIZE = 32,

DRAGON_SOUL_BOX_COLUMN_NUM = 8,

DRAGON_SOUL_BOX_ROW_NUM = DRAGON_SOUL_BOX_SIZE / DRAGON_SOUL_BOX_COLUMN_NUM,

DRAGON_SOUL_REFINE_GRID_SIZE = 15,

MAX_AMOUNT_OF_MALL_BONUS = 20,

 

WEAR_MAX_NUM = 32,

 

se tiver algo errado diga-me por favor, caso nao tenha nada errado me mande os arquivos shop.cpp e lenght.h editados se possivel, uso mainline_released

Share this post


Link to post
Share on other sites

desculpe o double post mas foi resolvido o problema, erro da minha parte em um arquivo que editei

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.

Our website is made possible by displaying online advertisements to our visitors.
Please consider supporting us by disabling your ad blocker.
You will be able to see content when you disable your adblocker and enable javascript.