Hi elitepvpers,
I am working on reducing some file sizes so i removed all II_PART_F etc
and altered mdldyna.inc
however in Spec_Item it will load only the Male Icons.
Now what i have in mind is to make an function to replace the male icon with female if you are an female char.
For the first test i have left the sex of the char out.
I know its an mess but i am still testing
Now take an look into this line
Its located underneath ReplaceStringInPlace
Now its giving me an error
No instance of overloaded function "MakePath" matches the arguments list argument types are (const char[6], std::string)
But is strIcon not an string? even it an part of the string is getting replaced?
With kind regards
I am working on reducing some file sizes so i removed all II_PART_F etc
and altered mdldyna.inc
however in Spec_Item it will load only the Male Icons.
Now what i have in mind is to make an function to replace the male icon with female if you are an female char.
For the first test i have left the sex of the char out.
Code:
void CItemBase::SetTexture()
{
#ifdef __CLIENT
ItemProp* pProp = GetProp();
if (!pProp)
{
LPCTSTR szErr = Error("CItemBase::SetTexture GetProp() NULL Return %d", m_dwItemId);
ADDERRORMSG(szErr);
}
//if(g_pPlayer->GetSex() == SEX_FEMALE)
//{
switch (pProp->dwItemKind3)
{
case IK3_HELMET:
case IK3_SUIT:
case IK3_GAUNTLET:
case IK3_BOOTS:
// std::string strIcon = pProp->szIcon;
// size_t f = strIcon.find("Itm_m");
// strIcon.replace(f, std::string("Itm_m").length(), "Itm_f");
// m_pTexture = CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDevice, MakePath(DIR_ITEM, _T("strIcon")), 0xffff00ff);
// break;
std::string strIcon = pProp->szIcon;
ReplaceStringInPlace(strIcon, "Itm_m", "Itm_f");
m_pTexture = CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDevice, MakePath(DIR_ITEM, strIcon), 0xffff00ff);
break;
}
//}
//m_pTexture = CWndBase::m_textureMng.AddTexture( g_Neuz.m_pd3dDevice, MakePath( DIR_ITEM, strIcon ), 0xffff00ff );
#endif
}
Now take an look into this line
Code:
m_pTexture = CWndBase::m_textureMng.AddTexture(g_Neuz.m_pd3dDevice, MakePath(DIR_ITEM, strIcon), 0xffff00ff);
Now its giving me an error
No instance of overloaded function "MakePath" matches the arguments list argument types are (const char[6], std::string)
But is strIcon not an string? even it an part of the string is getting replaced?
With kind regards