[4.3.4] make boss fly

Hi all,

i’m tryng to fix slabhide but i have some problems making him fly.

At the start of the fight the boss is walking, after some seconds he should go to the center of the room, and start go up of 10-11

when i use Boss->movetakeoff(), boss start wolking to me instead of start flying. If i use MovePoint boss stai in the center, but not fly.

I have also tryed to use SetDisableGravity instead of SetCanFly but don’t works too

someone know exact procedure to make a boss fly ?

thanks.

Did you try to change the “inhabitType” field for your creature? http://archive.trinitycore.info/Creature_template_tc2#InhabitType

Since a couple of months, subv made code that don’t allow creatures to fly if doesn’t match the flags.

Regards

Eilo

I need to make the boss fly only sometimes, not everytime

edit:

i have also tryed how you said, with InhabitType = 5, boss is still on the ground if i use “MovePoint”

esle if i use “MoveTakeOff” boss still attack me instead of fly :S

Look for another boss that does fly successfully and see how that one was scripted.

there aren’t XD

Then it might not be possible with the current TC code, especially if you’ve already tried setting the InhabitType. Consider reporting it as a bug at https://github.com/TrinityCore/TrinityCore/issues

Also, have you tried to apply some spell buff to him like levitate?

What about Ony adn Saph?

inhabit_type 5 = fly and ground, add it to db

me->SetHover(true);

me->SetDisableGravity(true);

me->SetCanFly(true);

i used such functions especial sethover and it always works for me

Dreadii beat me to the post. Those settings work for me as well.

Been working on Skadi the ruthless for a while now.

Do you have tryed in 4.3.4 branch too?

I will try sethover. Thanks.

i code ai codes ONLY on 434. used it for ragnaros / altairus und murozond as well

tryed and it works.

thanks a lot /emoticons/default_smile.png