Jump to content

Skillbock Name by dropp


Recommended Posts

  • Honorable Member

I will not do it for you, but you could do right here in GameLib/ItemData.cpp:

 

const char * CItemData::GetName() const
{
	switch (GetType())
	{
		case ITEM_TYPE_POLYMORPH:
			return "formatted item name for polymarble";
			break;
		case ITEM_TYPE_SKILLBOOK:
		case ITEM_TYPE_SKILLFORGET:
			return "formatted item name for skill items";
			break;
		default:
			return m_ItemTable.szLocaleName;
			break;
	}

	//return m_ItemTable.szLocaleName;
}

 

PS.: If you choose this way, you have to edit the uiToolTip.py file also then. (__SetPolymorphItemTitle <&> __SetSkillBookToolTip)

Link to comment
Share on other sites

  • Former Staff

You did not understand.

http://wiki.metin-2.com/index.php/Manual

Those are the manuals and if you drop a manual that manual will say the skill name.

 

Like Aura of the Sword Manual, so you just need to replace manual icon to skillbook icon.

Spoiler

50401	Three-Way Cut Manual
50402	Sword Spin Manual
50403	Berserk Manual
50404	Aura of the Sword Manual
50405	Dash Manual
50406	Life Force Manual
50416	Strike Manual
50417	Bash Manual
50418	Pounding Manual
50419	Strong Body Manual
50420	Sword Strike Manual
50421	Sword Orb Manual
50431	Ambush Manual
50432	Fast Attack Manual
50433	Rolling Dagger Manual
50434	Disguise Manual
50435	Poisonous Cloud Manual
50436	Insidious Poison Manual
50446	Repetitive Shot Manual
50447	Arrow Shower Manual
50448	Fire Arrow Manual
50449	Feather Walk Manual
50450	Poison Arrow Manual
50451	Spark Manual
50461	Finger Strike Manual
50462	Dragon Swirl Manual
50463	Enchanted Blade Manual
50464	Fear Manual
50465	Enchanted Armour Manual
50466	Dispel Manual
50476	Dark Strike Manual
50477	Flame Strike Manual
50478	Flame Spirit Manual
50479	Dark Protection Manual
50480	Spirit Strike Manual
50481	Dark Orb Manual
50491	Flying Talisman Manual
50492	Shooting Dragon Manual
50493	Dragon's Roar Manual
50494	Blessing Manual
50495	Reflect Manual
50496	Dragon's Aid Manual
50506	Lightning Throw Manual
50507	Summon Lightning Manual
50508	Lightning Claw Manual
50509	Cure Manual
50510	Swiftness Manual
50511	Attack Manual

 

 
Link to comment
Share on other sites

  • Premium

Nono... I wont change anything at dropps!

Just if the metin dropps an "Skillbook" like "Heroic strike" ther stand only "Skillbook". (In german "Fertigkeitsbuch")

I want: If the metin stone dropps and "Heroic Strike Skillbook" there should stand "Heroic Strike Skilbook" and not only "Skillbook".

The Problem is - i got only 1 item/vnum for all skillbooks.

 

Edit: Shisui sayed right. But if i take this Skillbooks, i have to change dropps. But i still want to use only 1 Book for all books.

Link to comment
Share on other sites

  • 1 month later...
  • 3 months later...
  • 4 weeks later...

It should work

#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

  • 1 year later...
  • Premium
6 hours ago, thespeedy said:

push

????????

 

 

On 25/7/2016 at 12:21 AM, Denis said:

It should work

 

  Hide contents

 

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

}

 

 

 

 

"Nothing's free in this life.

Ignorant people have an obligation to make up for their ignorance by paying those who help them.

Either you got the brains or cash, if you lack both you're useless."

Syreldar

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.