Jump to content
Maintenance ×
×
×
  • Create New...
  • 0

Skillbook drop name


xDiiZeRx

Question

  • Answers 6
  • Created
  • Last Reply

Top Posters For This Question

Top Posters For This Question

6 answers to this question

Recommended Posts

  • 0
  • Premium

#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;
    }

}


 

Link to comment
Share on other sites

  • 0
28 minutes ago, .T4Ump said:

#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;
    }

}

Not work :))

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


  • Activity

    1. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    2. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    3. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    4. 0

      Some mobs dont drop items

    5. 3

      Back to the Dungeon System 7, 8, 9th Floor Problem

    6. 691

      [Group] Daily Music - Share your favorite!

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.