Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: mathex on July 28, 2015, 12:36:01 pm

Title: [QUESTION] Allow skinning of all mobs no matter skill level
Post by: mathex on July 28, 2015, 12:36:01 pm
Hey I want to allow skinning on all mobs, no matter the mobs level and my skill level. I've tried setting it in the core (everywhere with SKILL_EFFECT_SKINNING), but that didn't work. is there anywhere in the client I have to edit this or am I just editing the core in the wrong places?
Title: Re: [QUESTION] Allow skinning of all mobs no matter skill le
Post by: Kaev on July 28, 2015, 05:02:48 pm
Not tested, but i think you search this: https://github.com/TrinityCore/TrinityC ... .cpp#L5165 (https://github.com/TrinityCore/TrinityCore/blob/2e586bc520e7eda2387e850c3c0049e6daa880de/src/server/game/Spells/Spell.cpp#L5165" onclick="window.open(this.href);return false;)
Title: Re: [QUESTION] Allow skinning of all mobs no matter skill le
Post by: mathex on July 28, 2015, 06:25:08 pm
Quote from: "Kaev"
Not tested, but i think you search this: https://github.com/TrinityCore/TrinityC ... .cpp#L5165 (https://github.com/TrinityCore/TrinityCore/blob/2e586bc520e7eda2387e850c3c0049e6daa880de/src/server/game/Spells/Spell.cpp#L5165" onclick="window.open(this.href);return false;)

That's what I just changed to 0. All around.
Title: Re: [QUESTION] Allow skinning of all mobs no matter skill le
Post by: schlumpf on July 28, 2015, 06:51:31 pm
If you change that to 0,  (ReqValue < 0 ? 0 : ReqValue) > irand(skillValue - 25, skillValue + 37)) a few lines below will become 0 > irand(), which is always false. Better change the conditions or choose something else than 0, like a very high value.
Title: Re: [QUESTION] Allow skinning of all mobs no matter skill le
Post by: mathex on July 29, 2015, 11:11:50 pm
Quote from: "schlumpf"
If you change that to 0,  (ReqValue < 0 ? 0 : ReqValue) > irand(skillValue - 25, skillValue + 37)) a few lines below will become 0 > irand(), which is always false. Better change the conditions or choose something else than 0, like a very high value.
Tried changing to a high level and even delete the code, nothing of that did work.