Jump to content

How to make spell learned permenantly


Recommended Posts

Posted

Hello guys.

I have a problem with keeping the spell learned.

Spell's id is 46917.

Every time I learn it and logout, the spell unlearns itself! :blink:

Any ideas how I can keep it? <_<

Thanks in advance

-EDIT-

Additional ifno:

Spell add ability to dual wield 2h weapons. This spell is called Titan's grip and it works perfectly fine for Warrier which it was originally designed.

I am trying to implement this skill for Death Knights and it works untill I logout. I have tried even placing talents the same as I placed in Warrier and that didn't work either.

Posted
Edited. check the info. I should have posted it a little bit earlier :)

Don't use it on DKs, or modify mangos' talent checking code. Mangos is programmed to automatically see things that shouldn't be (DKs with warrior talents) and correct the problem.

Posted

Anyway to remove that or add it to DK? Since I am running it for private use.

Ohh and by talent placing I meant editing in database in character_talent table.

So.. If you could help me find a way to add it to the core that would be nice.

Posted

This is the relevent code (in Player.cpp):

            // prevent load talent for different class (cheating)
           if ((getClassMask() & talentTabInfo->ClassMask) == 0)
           {
               sLog.outError("Player::_LoadTalents:Player (GUID: %u) has talent with ClassMask: %u , but Player's ClassMask is: %u , talentID: %u , this talent will be deleted from character_talent",GetGUIDLow(), talentTabInfo->ClassMask, getClassMask() ,talentInfo->TalentID );
               CharacterDatabase.PExecute("DELETE FROM character_talent WHERE guid = '%u' AND talent_id = '%u'", GetGUIDLow(), talent_id);
               continue;
           }

I guess you can comment this out if you don't want this feature. I would also advise you to check your mangos log in future (and that means reading it yourself, not posting it here for us to read) because this would have explained what happened.

Posted
This is the relevent code (in Player.cpp):

            // prevent load talent for different class (cheating)
           if ((getClassMask() & talentTabInfo->ClassMask) == 0)
           {
               sLog.outError("Player::_LoadTalents:Player (GUID: %u) has talent with ClassMask: %u , but Player's ClassMask is: %u , talentID: %u , this talent will be deleted from character_talent",GetGUIDLow(), talentTabInfo->ClassMask, getClassMask() ,talentInfo->TalentID );
               CharacterDatabase.PExecute("DELETE FROM character_talent WHERE guid = '%u' AND talent_id = '%u'", GetGUIDLow(), talent_id);
               continue;
           }

I guess you can comment this out if you don't want this feature. I would also advise you to check your mangos log in future (and that means reading it yourself, not posting it here for us to read) because this would have explained what happened.

Good point on logs. I usually use them to check for server start probs not for spells check mismatches.

Thanks for the help and ifno. +1

×
×
  • Create New...

Important Information

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. Privacy Policy Terms of Use