Jump to content

Recommended Posts

So, I created a prestige system and I wanted to write the prestige level before the karma rank and the character name. 

Example: Lv 105 [Prestige1] Friendly RachadoPT

 

The only thing that i cant do at the moment is the client part... I dont know where do i need to change and what to do :|

I was looking for the code for the karma rank but i can only find the names of each karma rank...

 

Can anyone here help me please?

 

Greetz, RachadoPT

Link to comment
https://metin2.dev/topic/4953-help-how-to-write-something-before-the-name/
Share on other sites

  • Former Staff

You're looking for the TextTail in PythonTextTail.cpp, just duplicate the already exist guild, align or the character name tails.

mainline don't has this file.

Wich branch you found this?

  • Former Staff

go to

 UserInterfaceInstanceBaseInstanceBaseEffect.cpp

and change this as needed

    sprintf(szText, "Lv%", level);

    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);

example of what you can do this

if (level >= 1 && level < 10)
{
    sprintf(szText, "|cFF959697Lv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (level >= 10 && level < 20)
{
    sprintf(szText, "|cFFFFFFFFLv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (level >= 20 && level < 30)
{
    sprintf(szText, "|cFF00FF7FLv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (level >= 30 && level < 40)
{
    sprintf(szText, "|cFF00FF00Lv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (level >= 40 && level < 50)
{
    sprintf(szText, "|cFF00CCFFLv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (level >= 50 && level < 60)
{
    sprintf(szText, "|cFF0000FFLv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (level >= 60 && level < 70)
{
    sprintf(szText, "|cFFDA70D6Lv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (level >= 70 && level < 80)
{
    sprintf(szText, "|cFFC67171Lv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (level >= 80 && level < 90)
{
    sprintf(szText, "|cFF00FFFFLv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (level >= 90 && level < 100)
{
    sprintf(szText, "|cFFFFCC00Lv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (level >= 100 && level < 105)
{
    sprintf(szText, "|cFFFF4500Lv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
else if (level >= 105)
{
    sprintf(szText, "|cFFCD661DLv %d|r", level);
    CPythonTextTail::Instance().AttachLevel(GetVirtualID(), szText, s_kLevelColor);
}
  • Love 1

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.