Jump to content

[C++]Ativar 70024/71051/71052/71084/71085 No Cinto.


juniorsilva
 Share

Recommended Posts

Olá pessoal.

 

Bom hoje eu vou ensinar como ativar 70024/71051/71052/71084/71085 no cinto de modo fácil e simples em vamos lá.

 

Primeira coisa vamos em Server/game/src/ e abrimos o arquivo item_attribute.cpp e adicionamos essa função

 

if(GetType() == ITEM_BELT)

 

{

 

return ATTRIBUTE_SET_WRIST;

 

}

acima da função

 

if (GetType() == ITEM_ARMOR || GetType() == ITEM_COSTUME)

Imagem do passo 1:

 

passo1.jpg?1486467067

 

 

######### Client ###########

 

primeiro passo concluído já pode compilar a game, agora vamos para o passo dois que é no cliente/root->uiinventory.py e buscamos por

 

if not item.GetItemType() in (item.ITEM_TYPE_WEAPON, item.ITEM_TYPE_ARMOR):

em seguida altere por

 

if not item.GetItemType() in (item.ITEM_TYPE_WEAPON, item.ITEM_TYPE_ARMOR, item.ITEM_TYPE_BELT):

pronto agora vamos busca outra linha com a mesma função

 

if not item.GetItemType() in (item.ITEM_TYPE_WEAPON, item.ITEM_TYPE_ARMOR):

e alteramos por

 

if not item.GetItemType() in (item.ITEM_TYPE_WEAPON, item.ITEM_TYPE_ARMOR, item.ITEM_TYPE_BELT):

Imagens do passo 2:

 

clientpasso1.jpg?1486467314

 

 

clientpasso2.jpg?1486467349

 

 

 

pronto agora é só ser feliz.

 

0202_002711.jpg?1486468396

Link to comment
Share on other sites

  • 5 months later...
  • 8 months later...
  • 5 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...