mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-25 19:07:16 +00:00
Changes to allow individual spawn2 locations to vary in npc selection (cond)
This commit is contained in:
1 parent
26e14c02b6
commit
2e98de3923
7 files changed
+46
-21
No files matched your search
+10
-1
@@ -258,7 +258,16 @@ Mob *QuestManager::spawn_from_spawn2(uint32 spawn2_id)
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
uint32 npcid = spawn_group->GetNPCType();
|
||||
|
||||
uint16 condition_value=1;
|
||||
uint16 condition_id=found_spawn->GetSpawnCondition();
|
||||
|
||||
if (condition_id > 0) {
|
||||
condition_value = zone->spawn_conditions.GetCondition(zone->GetShortName(), zone->GetInstanceID(), condition_id);
|
||||
}
|
||||
|
||||
uint32 npcid = spawn_group->GetNPCType(condition_value);
|
||||
|
||||
if (npcid == 0) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user