Jump to content
metin2dev
Sign in to follow this  
Fire

[HowTo]Change Skill Group - Visual Bug Fix

Recommended Posts

Hi, i think that a lot of people know this bug because it afflict a lot of revision.
If you are a Body Warrior and you do a skill like Aura of the sword and we try to change our skill group in Mental, we can see that we have got Mental skill group and the Aura of the sword active too.

How fix this?

Open questlua_pc.cpp and search:

	int pc_set_skillgroup(lua_State* L)
    {
        if (!lua_isnumber(L, 1))
            sys_err("QUEST wrong skillgroup number");
        else
        {
            CQuestManager & q = CQuestManager::Instance();
            LPCHARACTER ch = q.GetCurrentCharacterPtr();
 
            ch->SetSkillGroup((BYTE) rint(lua_tonumber(L, 1)));
        }
        return 0;
    }

Replace code with:

	int pc_set_skillgroup(lua_State* L)
    {
        if (!lua_isnumber(L, 1))
            sys_err("QUEST wrong skillgroup number");
        else
        {
            CQuestManager & q = CQuestManager::Instance();
            LPCHARACTER ch = q.GetCurrentCharacterPtr();
 
            ch->RemoveGoodAffect();
            ch->SetSkillGroup((BYTE) rint(lua_tonumber(L, 1)));
        }
        return 0;
    }

 

  • Like 4

Share this post


Link to post
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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×