mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-16 18:52:22 +00:00
Add custom feature, cross-class skill trainer, fix up stuck detection and added a better solution to it.
This commit is contained in:
+8
-1
@@ -445,7 +445,7 @@ Mob::Mob(const char* in_name,
|
||||
AssistAggro = false;
|
||||
npc_assist_cap = 0;
|
||||
|
||||
PathRecalcTimer.reset(new Timer(1500));
|
||||
PathRecalcTimer.reset(new Timer(500));
|
||||
PathingLoopCount = 0;
|
||||
}
|
||||
|
||||
@@ -1240,6 +1240,13 @@ void Mob::FillSpawnStruct(NewSpawn_Struct* ns, Mob* ForWho)
|
||||
|
||||
ns->spawn.flymode = 0;
|
||||
}
|
||||
|
||||
if (RuleB(Character, AllowCrossClassTrainers) && ForWho) {
|
||||
if (ns->spawn.class_ >= WARRIORGM && ns->spawn.class_ <= BERSERKERGM) {
|
||||
int trainer_class = WARRIORGM + (ForWho->GetClass() - 1);
|
||||
ns->spawn.class_ = trainer_class;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Mob::CreateDespawnPacket(EQApplicationPacket* app, bool Decay)
|
||||
|
||||
Reference in New Issue
Block a user