mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +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:
+1
-1
@@ -1492,7 +1492,7 @@ bool Zone::Process() {
|
||||
if(Instance_Timer->Check())
|
||||
{
|
||||
// if this is a dynamic zone instance notify system associated with it
|
||||
Expedition* expedition = Expedition::FindExpeditionByInstanceID(GetInstanceID());
|
||||
Expedition* expedition = Expedition::FindCachedExpeditionByInstanceID(GetInstanceID());
|
||||
if (expedition)
|
||||
{
|
||||
expedition->RemoveAllMembers(false); // entity list will teleport clients out immediately
|
||||
|
||||
Reference in New Issue
Block a user