mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 06:07:27 +00:00
Better Quest Complete Handling for Party
This commit is contained in:
1 parent
f50ec28e54
commit
d145f58311
1 file changed
+6
-3
@@ -472,9 +472,6 @@ public class NoppesUtilPlayer {
|
||||
if (data.quest.completion == EnumQuestCompletion.Instant)
|
||||
EventHooks.onPartyFinished(party, data.quest);
|
||||
|
||||
if(data.quest.completion == EnumQuestCompletion.Npc)
|
||||
PartyController.Instance().sendQuestChat(party, "party.completeChat");
|
||||
|
||||
PartyEvent.PartyQuestTurnedInEvent partyEv = new PartyEvent.PartyQuestTurnedInEvent(party, data.quest);
|
||||
EventHooks.onPartyTurnIn(partyEv);
|
||||
if (partyEv.isCancelled())
|
||||
@@ -582,6 +579,12 @@ public class NoppesUtilPlayer {
|
||||
}
|
||||
}
|
||||
|
||||
if(data.quest.completion == EnumQuestCompletion.Npc){
|
||||
party.setQuest(null);
|
||||
PartyController.Instance().sendQuestChat(party, "party.completeChat");
|
||||
PartyController.Instance().pingPartyUpdate(party);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user