Jump to content

Skillbock Name by dropp


Recommended Posts

  • Premium
Am 25.7.2016 um 00:21 schrieb Denis:

It should work

 

  Unsichtbaren Inhalt anzeigen

 

#include "../UserInterface/PythonSkill.h"
/*
stuff...
*/

const char * CItemData::GetName() const
{
    CPythonSkill::SSkillData * c_pSkillData;
    bool Skills = CPythonSkill::Instance().GetSkillData(GetSocket(0), &c_pSkillData)

    char szText[1024];
    
    switch (GetType())
    {
        case ITEM_TYPE_POLYMORPH:
            return m_ItemTable.szLocaleName;
            break;
        case ITEM_TYPE_SKILLBOOK:
        case ITEM_TYPE_SKILLFORGET:
            if(Skills)
            {
                sprintf(szText, "%s - %s", m_ItemTable.szLocaleName, c_pSkillData->strName.c_str());
                return szText;
            }
            else
                return m_ItemTable.szLocaleName;
            break;
        default:
            return m_ItemTable.szLocaleName;
            break;
    }

}

 

 

Thank you very much, in which file does i have to add?

Link to comment
Share on other sites

  • Premium
vor 3 Stunden schrieb Galet:

At least you could give the solution to everyone because I'm kinda sure you're not the only one to look for it (just check the post) ;)

 

The guy who sent me, asked me not to share...

Sorry man but if he is so friendly and helping, I wont share if he dont want.

 

I hope you understand that...

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • 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.