From 8f56d87acafd8716473db68c079f33de8306ae42 Mon Sep 17 00:00:00 2001 From: Vortrex <3858226+VortrexFTW@users.noreply.github.com> Date: Thu, 13 Jan 2022 17:31:23 -0600 Subject: [PATCH] Add index members to NPC classes --- scripts/server/class.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/server/class.js b/scripts/server/class.js index 814ede45..f91f23e8 100644 --- a/scripts/server/class.js +++ b/scripts/server/class.js @@ -1607,6 +1607,7 @@ class NPCTriggerData { this.npcId = 0; this.index = 0; this.npc = 0; + this.npcIndex = -1; this.triggerType = 0; this.conditions = []; this.responses = []; @@ -1624,6 +1625,7 @@ class NPCTriggerConditionData { this.databaseId = 0; this.triggerId = 0; this.index = 0; + this.triggerIndex = 0; this.conditionType = 0; this.conditionValue = false; this.matchType = false; @@ -1643,6 +1645,7 @@ class NPCTriggerResponseData { this.databaseId = 0; this.triggerId = 0; this.index = 0; + this.triggerIndex = 0; this.responseType = 0; this.responseValue = false;