[C ++] Enable 70024/71051/71052/71084/71085 In the Belt.

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Rullez

Banned
Banned
Joined
Jul 4, 2019
Messages
20
Credits
9
Well I am going to "teach" how to activate 70024/71051/71052/71084/71085 on the belt in easy and simple way come on.

First thing let's go to Server / game / src / and open the file item_attribute.cpp and add this function:

if(GetType() == ITEM_BELT)



{



return ATTRIBUTE_SET_WRIST;



}

above function



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



Image1:
passo1.jpg

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

first completed step can already compile the game, now let's go to step two which is on the client / root-> uiinventory.py and look for:

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

then change by:

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

ready now let's search another line with the same function:

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


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


clientpasso1.jpg

clientpasso2.jpg

(In another words 5 bonus as a simple armor, but its a belt! :O )
Rejoice
 
Nice. One tip(not for beginners I assume...): create and use a specific set of attributes, instead of using wrist set ;)
 
Yah or u just can restrict the bonus of the belts into what u want them to be
Thats the nice thing about being on this side of the game.... the possibilities .... are "unmeasured"
 
Back
Top