View Full Version : [SOLVED] Npc Power type.

10-24-2013, 03:47 PM
Hello, ArcEmu users, maybe anyone know how to set that npc have not only mana for example dk pets to have Energy and etc? :)

10-24-2013, 04:21 PM
look for a DK pet in database and check it's structure and the most important check if it use anny scripts ...

10-24-2013, 04:38 PM
In database no script usage but i think it mustn't be here... :DD
Where to look for that script usage?

10-24-2013, 04:57 PM
hmm idk where is stored , ive been working only in trinity sorry :|

10-24-2013, 05:03 PM
Don't the pet already have "POWER_TYPE_FOCUS"? That is similar to energy. :/

I guess if you really wanted to have energy, I'm guessing you could change FOCUS to ENERGY.

Pet.cpp "CreateAsSummon" (#L208 : Hunter pet; You will see the SetPower / SetMaxPower / SetPowerType being used)

Pet.cpp "ApplyStatsForLevel" (At the end of this function, you will see "SetPower" function being used.)

Pet.cpp "LoadFromDB" (You will see set SetPower / SetMaxPower / SetPowerType being called on #L678)

I'm not entirely sure about death knight's pet because you don't tame them.

10-24-2013, 05:28 PM
Nop, in Arc for now i have all dk pets with mana that reason why they can't use spells. :D

10-26-2013, 06:18 AM
Hmm, I doubt it could be the NPC considering it should be handled by the "Pet" class because they are considered as a pet. If I messed with ArcEmu nowadays, I'd probably know, but I never had the intentions to do what you're doing.