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:
hg
2020-06-14 19:21:46 -04:00
parent 06d84b83de
commit f97cc7cdec
9 changed files with 143 additions and 28 deletions
+1 -1
View File
@@ -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