예제 #1
0
	void SetupPatrol(uint32 entry)
	{
		MoonScriptCreatureAI* Patrol = NULL;
		Patrol = SpawnCreature(entry, (-216.863632f+RandomFloat(10)-10), (514.258423f+RandomFloat(10)-10), 51.537754f, 1.480364f);
		if(Patrol == NULL)
			return;
		Patrol->AddWaypoint(Patrol->CreateWaypoint(1, 2500, Flag_Walk, PatrolCoords[3]));
		Patrol->AddWaypoint(Patrol->CreateWaypoint(2, 2500, Flag_Walk, PatrolCoords[4]));
		Patrol->ForceWaypointMove(1);
		Patrol = NULL;
	}
예제 #2
0
	void SetupPatrol(uint32 entry)
	{
		MoonScriptCreatureAI* Patrol = NULL;
		Patrol = SpawnCreature(entry, (-98.025314f+RandomFloat(10)-10), (-396.978333f+RandomFloat(10)-10), 58.609558f, 2.973405f);
		if(Patrol == NULL)
			return;
		Patrol->AddWaypoint(Patrol->CreateWaypoint(1, 2500, Flag_Walk, PatrolCoords[1]));
		Patrol->AddWaypoint(Patrol->CreateWaypoint(2, 2500, Flag_Walk, PatrolCoords[2]));
		Patrol->ForceWaypointMove(1);
		Patrol = NULL;
	}
예제 #3
0
	void SetupPatrol(uint32 entry)
	{
		MoonScriptCreatureAI* Patrol = NULL;
		Patrol = SpawnCreature(entry, (-265.543121f+RandomFloat(10)-10), (-578.010925f+RandomFloat(10)-10), 50.516342f, 6.246144f);
		if(Patrol == NULL)
			return;

		Patrol->AddWaypoint(Patrol->CreateWaypoint(1, 2500, WALK, PatrolCoords[5]));
		Patrol->AddWaypoint(Patrol->CreateWaypoint(2, 2500, WALK, PatrolCoords[6]));
		Patrol->AddWaypoint(Patrol->CreateWaypoint(3, 2500, WALK, PatrolCoords[7]));
		Patrol->ForceWaypointMove(1);
		Patrol = NULL;
	}