Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Tooltip about Upgrade Success

Status
Not open for further replies.
Initiate Mage
Joined
Apr 3, 2020
Messages
14
Reaction score
0
madman54 - Tooltip about Upgrade Success - RaGEZONE Forums


The tooltip is only showing in ultimate weapons, is not showing in armor sets, weapon general and etc..

Source: Fulgur Source

Code:
[COLOR=#000000]#ifdef __UPGRADE_SUCCESS[/COLOR]
[COLOR=#000000]auto iter = prj.m_mapUpgradeSuccess.find(pItemElem->GetProp()->dwReferStat1);[/COLOR]
[COLOR=#000000]if (iter != prj.m_mapUpgradeSuccess.end())[/COLOR]
[COLOR=#000000]{[/COLOR]
[COLOR=#000000]const map<int, int>& upgrade = iter->second;[/COLOR]
[COLOR=#000000]auto iter2 = upgrade.find(pItemElem->GetAbilityOption());[/COLOR]
[COLOR=#000000]if (iter2 != upgrade.end() && iter2->second > 0)[/COLOR]
[COLOR=#000000]{[/COLOR]
[COLOR=#000000]CString str;[/COLOR]
[COLOR=#000000]str.Format("\nSuccess guaranteed: %d attempt(s)", iter2->second - pItemElem->m_nUpgradeTries);[/COLOR]
[COLOR=#000000]strEdit.AddString(str, dwItemColor[g_Option.m_nToolTipText].dwTime);[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]}[/COLOR]
[COLOR=#000000]#endif // __UPGRADE_SUCCESS
[/COLOR]
 
Last edited:
Inactive
Joined
Jan 20, 2009
Messages
1,015
Reaction score
1,830
If you expect help you must provide either the code itself or the source you pulled it from.

Also I moved this to the "Help Section" for you.
 
Initiate Mage
Joined
Apr 3, 2020
Messages
14
Reaction score
0
sorry i post it to the wrong section and about my problem i got it from fulgur files.
Thanks for moving it!
 
Skilled Illusionist
Joined
Apr 21, 2010
Messages
378
Reaction score
96
As said in another forum where you posted the same question:

You have to upgrade it at least to +1 to show.

Code:
if (iter2 != upgrade.end() && iter2->second [COLOR="#FF0000"][B]> 0[/B][/COLOR])

You did post the code in that other forum. Why not here?
 
Last edited:
Status
Not open for further replies.
Back
Top