mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 07:38:36 +00:00
Add expedition event loot api
Add SetLootEventByNPCTypeID and SetLootEventBySpawnID quest apis These associate events with npcs or entities inside the dz to prevent them from being looted by characters that didn't receive the event lockout from the current expedition. This fixes an exploit that allowed a player that already had a lockout from another expedition being added to loot after the event is complete
This commit is contained in:
+2
-2
@@ -4301,14 +4301,14 @@ Expedition* QuestManager::GetExpeditionByCharID(uint32 char_id)
|
||||
|
||||
Expedition* QuestManager::GetExpeditionByInstanceID(uint32 instance_id)
|
||||
{
|
||||
return Expedition::FindExpeditionByInstanceID(instance_id);
|
||||
return Expedition::FindCachedExpeditionByInstanceID(instance_id);
|
||||
}
|
||||
|
||||
Expedition* QuestManager::GetExpeditionForCurrentInstance()
|
||||
{
|
||||
if (zone && zone->GetInstanceID() != 0)
|
||||
{
|
||||
return Expedition::FindExpeditionByInstanceID(zone->GetInstanceID());
|
||||
return Expedition::FindCachedExpeditionByInstanceID(zone->GetInstanceID());
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user