• Unfortunately, we have experienced significant hard drive damage that requires urgent maintenance and rebuilding. The forum will be a state of read only until we install our new drives and rebuild all the configurations needed. Please follow our Facebook page for updates, we will be back up shortly! (The forum could go offline at any given time due to the nature of the failed drives whilst awaiting the upgrades.) When you see an Incapsula error, you know we are in the process of migration.

Item not show option damage

Skilled Illusionist
Joined
Feb 17, 2012
Messages
307
Reaction score
18
This my CPP.

this image
armarmearth - Item not show option damage - RaGEZONE Forums
 
Newbie Spellweaver
Joined
Mar 14, 2012
Messages
95
Reaction score
7
find -> "ITEM_ADVANCED_INFO",0 <- edit this part
strCombine.Format("%s :%d", ID2GAMEWORD("ITEM_ADVANCED_INFO",0), sDamage.dwLow); strMax.Format( " ~ %d", sDamage.dwHigh );

then search on gui "gameword.xml" find -> ITEM_ADVANCED_INFO <- see if there's
<VALUE Lang="pe" Index="0">Attack</VALUE>
 
Upvote 0
Junior Spellweaver
Joined
Jan 15, 2013
Messages
102
Reaction score
1
try this.

Find:
if ( pItemData->sSuitOp.emSuit != SUIT_HANDHELD )

Paste this below CBasicTextBox::MULTITEXT mlText;

//Declare
CBasicTextBox::MULTITEXT mlTextTest;
CString strCombine, strMax;
GLPADATA &sDamage = pItemData->sSuitOp.gdDamage;

if (sDamage.dwLow || sDamage.dwHigh)
{
strCombine.Format("%s :%d", ID2GAMEWORD("ITEM_ADVANCED_INFO",0), sDamage.dwLow);
strMax.Format( " ~ %d", sDamage.dwHigh );
mlTextTest.strText[0] = strCombine;
mlTextTest.dwColor[0] = NS_UITEXTCOLOR::WHITE;
mlTextTest.strText[1] = strMax;
mlTextTest.dwColor[1] = NS_UITEXTCOLOR::WHITE;
AddMultiText ( mlTextTest );
}

Make sure it's above this line
strText.Format("%s:%d", ID2GAMEWORD("ITEM_ADVANCED_INFO",1), nDefense);
 
Last edited:
Upvote 0
Newbie Spellweaver
Joined
Mar 14, 2012
Messages
95
Reaction score
7
not work sir :(

Im sorry i didnt paste the code XD the colored one is i added. just copy paste it to your uiitemloader search for CString strVAL, strVALIDATE, strMax;
CString strVAL, strVALIDATE, strMax;

strCombine.Format("%s :%d", ID2GAMEWORD("ITEM_ADVANCED_INFO",0), sDamage.dwLow);
strMax.Format( " ~ %d", sDamage.dwHigh );
if ( ((sDamage.dwLow == 0 && sDamage.dwHigh == 0) && !nExtraValue) && (!bRandExist || bRandExist) )
{
}else{ //here1

if ( !nExtraValue && !bRandExist )
{
mlText.strText[0] = strCombine;
mlText.dwColor[0] = NS_UITEXTCOLOR::WHITE;

mlText.strText[1] = strMax;
mlText.dwColor[1] = NS_UITEXTCOLOR::WHITE;
}
else if ( nExtraValue && !bRandExist )
{
mlText.strText[0] = strCombine;
mlText.dwColor[0] = NS_UITEXTCOLOR::WHITE;

strVALIDATE = nExtraValue > 0 ? "+" : "-";
strVAL.Format("(%s%d)", strVALIDATE, nExtraValue);
mlText.strText[1] = strVAL;
mlText.dwColor[1] = NS_UITEXTCOLOR::YELLOW;

mlText.strText[2] = strMax;
mlText.dwColor[2] = NS_UITEXTCOLOR::WHITE;

mlText.strText[3] = strVAL;
mlText.dwColor[3] = NS_UITEXTCOLOR::YELLOW;

if ( uGRADE > 0 )
{
CString Upgrade;
Upgrade.Format ( "+%d",uGRADE );
mlText.strText[6] = "[";
mlText.strText[7] = Upgrade;
mlText.strText[8] = "]";
mlText.dwColor[6] = NS_UITEXTCOLOR::WHITE;
mlText.dwColor[7] = NS_UITEXTCOLOR::YELLOW;
mlText.dwColor[8] = NS_UITEXTCOLOR::WHITE;
}
}
else if ( !nExtraValue && bRandExist )
{
mlText.strText[0] = strCombine;
mlText.dwColor[0] = NS_UITEXTCOLOR::WHITE;

strVAL.Format("(+%d)", nValue);
mlText.strText[1] = strVAL;
mlText.dwColor[1] = NS_UITEXTCOLOR::HOTPINK;

mlText.strText[2] = strMax;
mlText.dwColor[2] = NS_UITEXTCOLOR::WHITE;

mlText.strText[3] = strVAL;
mlText.dwColor[3] = NS_UITEXTCOLOR::HOTPINK;
}
else if ( nExtraValue && bRandExist )
{
mlText.strText[0] = strCombine;
mlText.dwColor[0] = NS_UITEXTCOLOR::WHITE;

strVALIDATE = nExtraValue > 0 ? "+" : "-";
strVAL.Format("(%s%d)", strVALIDATE, nExtraValue);
mlText.strText[1] = strVAL;
mlText.dwColor[1] = NS_UITEXTCOLOR::YELLOW;

CString strVAL2;
strVAL2.Format("(+%d)", nValue);
mlText.strText[2] = strVAL2;
mlText.dwColor[2] = NS_UITEXTCOLOR::HOTPINK;

mlText.strText[3] = strMax;
mlText.dwColor[3] = NS_UITEXTCOLOR::WHITE;

mlText.strText[4] = strVAL;
mlText.dwColor[4] = NS_UITEXTCOLOR::YELLOW;

mlText.strText[5] = strVAL2;
mlText.dwColor[5] = NS_UITEXTCOLOR::HOTPINK;
if ( uGRADE > 0 )
{
CString Upgrade;
Upgrade.Format ( "+%d",uGRADE );
mlText.strText[6] = "[";
mlText.strText[7] = Upgrade;
mlText.strText[8] = "]";
mlText.dwColor[6] = NS_UITEXTCOLOR::WHITE;
mlText.dwColor[7] = NS_UITEXTCOLOR::YELLOW;
mlText.dwColor[8] = NS_UITEXTCOLOR::WHITE;
}


}
AddMultiText ( mlText );
}
} //here2
 
Last edited:
Upvote 0
Back
Top