mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 14:41:28 +00:00
Support for races up to waypoint node race, wip on interface for pathfinding to support both kinds.
This commit is contained in:
parent
eab6bb8314
commit
75ee3b30e2
@ -84,6 +84,8 @@ SET(zone_sources
|
||||
npc_ai.cpp
|
||||
object.cpp
|
||||
oriented_bounding_box.cpp
|
||||
pathfinder_nav_mesh.cpp
|
||||
pathfinder_waypoint.cpp
|
||||
pathing.cpp
|
||||
perl_client.cpp
|
||||
perl_doors.cpp
|
||||
@ -197,6 +199,9 @@ SET(zone_headers
|
||||
npc_ai.h
|
||||
object.h
|
||||
oriented_bounding_box.h
|
||||
pathfinder_interface.h
|
||||
pathfinder_nav_mesh.h
|
||||
pathfinder_waypoint.h
|
||||
pathing.h
|
||||
perlpacket.h
|
||||
petitions.h
|
||||
|
||||
@ -2317,13 +2317,13 @@ void command_race(Client *c, const Seperator *sep)
|
||||
Mob *t=c->CastToMob();
|
||||
|
||||
// Need to figure out max race for LoY/LDoN: going with upper bound of 500 now for testing
|
||||
if (sep->IsNumber(1) && atoi(sep->arg[1]) >= 0 && atoi(sep->arg[1]) <= 724) {
|
||||
if (sep->IsNumber(1) && atoi(sep->arg[1]) >= 0 && atoi(sep->arg[1]) <= 2259) {
|
||||
if ((c->GetTarget()) && c->Admin() >= commandRaceOthers)
|
||||
t=c->GetTarget();
|
||||
t->SendIllusionPacket(atoi(sep->arg[1]));
|
||||
}
|
||||
else
|
||||
c->Message(0, "Usage: #race [0-724] (0 for back to normal)");
|
||||
c->Message(0, "Usage: #race [0-2259] (0 for back to normal)");
|
||||
}
|
||||
|
||||
void command_gender(Client *c, const Seperator *sep)
|
||||
|
||||
@ -549,18 +549,11 @@ void PathManager::SpawnPathNodes()
|
||||
auto npc_type = new NPCType;
|
||||
memset(npc_type, 0, sizeof(NPCType));
|
||||
|
||||
if(PathNodes[i].id < 10)
|
||||
sprintf(npc_type->name, "%s", DigitToWord(PathNodes[i].id));
|
||||
else if(PathNodes[i].id < 100)
|
||||
sprintf(npc_type->name, "%s_%s", DigitToWord(PathNodes[i].id/10), DigitToWord(PathNodes[i].id % 10));
|
||||
else
|
||||
sprintf(npc_type->name, "%s_%s_%s", DigitToWord(PathNodes[i].id/100), DigitToWord((PathNodes[i].id % 100)/10),
|
||||
DigitToWord(((PathNodes[i].id % 100) %10)));
|
||||
|
||||
sprintf(npc_type->lastname, "%i", PathNodes[i].id);
|
||||
auto c = PathNodes[i].id / 1000u;
|
||||
sprintf(npc_type->name, "Node%u", c);
|
||||
npc_type->cur_hp = 4000000;
|
||||
npc_type->max_hp = 4000000;
|
||||
npc_type->race = 151;
|
||||
npc_type->race = 2254;
|
||||
npc_type->gender = 2;
|
||||
npc_type->class_ = 9;
|
||||
npc_type->deity= 1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user