mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-01 11:36:36 +00:00
Simplified the use of roamboxes and improved the AI for roambox pathing
This commit is contained in:
+14
-5
@@ -57,7 +57,16 @@ void NPC::AI_SetRoambox(float max_distance, float roam_distance_variance, uint32
|
||||
);
|
||||
}
|
||||
|
||||
void NPC::AI_SetRoambox(float distance, float max_x, float min_x, float max_y, float min_y, uint32 delay, uint32 min_delay) {
|
||||
void NPC::AI_SetRoambox(
|
||||
float distance,
|
||||
float max_x,
|
||||
float min_x,
|
||||
float max_y,
|
||||
float min_y,
|
||||
uint32 delay,
|
||||
uint32 min_delay
|
||||
)
|
||||
{
|
||||
roambox_distance = distance;
|
||||
roambox_max_x = max_x;
|
||||
roambox_min_x = min_x;
|
||||
@@ -71,10 +80,10 @@ void NPC::AI_SetRoambox(float distance, float max_x, float min_x, float max_y, f
|
||||
void NPC::DisplayWaypointInfo(Client *c) {
|
||||
|
||||
c->Message(Chat::White, "Mob is on grid %d, in spawn group %d, on waypoint %d/%d",
|
||||
GetGrid(),
|
||||
GetSp2(),
|
||||
GetCurWp(),
|
||||
GetMaxWp());
|
||||
GetGrid(),
|
||||
GetSpawnGroupId(),
|
||||
GetCurWp(),
|
||||
GetMaxWp());
|
||||
|
||||
|
||||
std::vector<wplist>::iterator cur, end;
|
||||
|
||||
Reference in New Issue
Block a user