void MoveToChest() { if (GetCanEnterCombat()) _unit->GetAIInterface()->SetAllowedToEnterCombat(false); StopMovement(); _unit->GetAIInterface()->SetAIState(STATE_SCRIPTMOVE); MoveTo(1.100060f, -780.026367f, 9.811194f); }
void MoonScriptCreatureAI::ForceWaypointMove(uint32 pWaypointId) { if (GetCanEnterCombat()) _unit->GetAIInterface()->SetAllowedToEnterCombat(false); if (!GetCanMove()) SetCanMove(true); StopMovement(); _unit->GetAIInterface()->SetAIState(STATE_SCRIPTMOVE); SetMoveType(Move_WantedWP); SetWaypointToMove(pWaypointId); }
void AIUpdate() { if( mStarted == false ) { ApplyAura( 44200 ); ApplyAura( 26586 ); mStarted = true; RegisterAIUpdateEvent( 11500 ); return; } if( mStarted == true && GetCanEnterCombat() == false ) //start part { SetCanEnterCombat( true ); SetAllowMelee( true ); SetAllowSpell( true ); SetAllowTargeting( true ); SetCanMove( false ); AggroNearestUnit( 1 ); }; ParentClass::AIUpdate(); };