Onforum.net - Web and gaming resource community

Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members .

Metin2 Please help with polymorphitem

peterekcze

Member
Credits
1
Hi guys,
i have problem with polymorph item in inventory. Dropped item have name, the same item has no name in inventory. Where there could be a problem.

SF: Ephelion2


0410_112258.jpg
0410_112306.jpg0410_113134.jpg

PythonNonPlayer.cpp
const char* CPythonNonPlayer::GetMonsterName(DWORD dwVnum)
{
const CPythonNonPlayer::TMobTable* c_pTable = GetTable(dwVnum);

if (!c_pTable)
{
static const char* sc_szEmpty = "";
return sc_szEmpty;
}

#ifdef ENABLE_GLOBAL_LANGUAGE
std::string translatedName = GetNameTranslation(dwVnum);
if (translatedName != "")
{
return translatedName.c_str();
}
#endif

return c_pTable->szLocaleName;
}
uiToolTip.py
def _GetItemName(self):
if localeInfo.UserLang != "en":
if str(self.itemIndex) in localeInfo.itemTrans:
return localeInfo.itemTrans[str(self.itemIndex)]
else:
return item.GetItemName()
else:
return item.GetItemName()

def __SetPolymorphItemTitle(self, monsterVnum):
itemName=nonplayer.GetMonsterName(monsterVnum)
itemName+=" "
itemName+=self._GetItemName()
self.SetTitle(itemName)

Only the longer name moba is displayed correctly

thank you for help
 

Attachments

  • uiToolTip.zip
    16.7 KB · Views: 2
  • PythonNonPlayer.zip
    2.2 KB · Views: 0
I personally don't know that Ephelion files or whatever the name is, but does it have multi-language?


#define ENABLE_GLOBAL_LANGUAGE
 
Thread starter Similar threads Forum Replies Date
miguel_saramago1@hotmail. Support 1
kekiest Support 1
Support 0
k1ngleo Support 3
Raikiri Support 1

Similar threads


Top

Dear User!

We found that you are blocking the display of ads on our site.

Please add it to the exception list or disable AdBlock.

The advertises that you'll see aren't intrusive they just help us to keep the community alive

If you don't want to see those ads just buy an upgrade.

Thank you for understanding!

RomanP

RomanP Purchase

User upgrade! at

🔥 Upgrade Now
xnmex

xnmex Purchase

User upgrade! at

🔥 Upgrade Now
Rogue

Rogue Purchase

User upgrade! at

🔥 Upgrade Now