From fe98ecc78a63fa791847fe21ee3300b116855e2a Mon Sep 17 00:00:00 2001 From: Mort65 Date: Thu, 11 Aug 2022 01:35:13 +0430 Subject: [PATCH] Add files via upload --- Data/source/scripts/zzzmoaitemcursescript.psc | 6 ++---- Data/source/scripts/zzzmoautilscript.psc | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/Data/source/scripts/zzzmoaitemcursescript.psc b/Data/source/scripts/zzzmoaitemcursescript.psc index 15e35e12..2a758c51 100644 --- a/Data/source/scripts/zzzmoaitemcursescript.psc +++ b/Data/source/scripts/zzzmoaitemcursescript.psc @@ -361,13 +361,12 @@ Function LoseOtherItems() Tradables[1] = MarkOfArkay As Form Tradables[2] = BlackFilledGem As Form Tradables[3] = GrandFilledGem As Form + iCheckLimit = ConfigMenu.fMaxItemsToCheckSlider As Int transferItems(ValuableItemsChest, PlayerRef as ObjectReference) If (ConfigMenu.iLoseInclusion == 1) - iCheckLimit = ConfigMenu.fMaxItemsToCheckSlider As Int removeEquipments(PlayerRef As ObjectReference, LostItemsChest, Tradables, Equipment) Else - Int iTotal = PlayerRef.GetNumItems() - iCheckLimit = ConfigMenu.fMaxItemsToCheckSlider As Int + Int iTotal = PlayerRef.GetNumItems() If (iCheckLimit == 0) || (iCheckLimit > iTotal) iCheckLimit = iTotal EndIf @@ -677,7 +676,6 @@ Function removeEquipments(ObjectReference akInChest, ObjectReference akOutChest, kItem = Equipment[i] If (!kItem) iChecked-=1 - ;Debug.TraceConditional("MarkOfArkay: Unknown item at index(" + i + ")",bIsLoggingEnabled) bContinue = True EndIf If !bContinue diff --git a/Data/source/scripts/zzzmoautilscript.psc b/Data/source/scripts/zzzmoautilscript.psc index ba9e91d9..afe06ad4 100644 --- a/Data/source/scripts/zzzmoautilscript.psc +++ b/Data/source/scripts/zzzmoautilscript.psc @@ -528,7 +528,7 @@ Function transferItemsWithExclusions(ObjectReference akInContainer, ObjectRefere While aiIndex < aiLast + 1 kItem = akInContainer.GetNthForm(aiIndex) If kItem - If (!bExcludeArr || (excludesArr.Find(kItem) < 0)) && (!excludeList && excludeList.Find(kItem) < 0) + If (!bExcludeArr || (excludesArr.Find(kItem) < 0)) && (!excludeList || excludeList.Find(kItem) < 0) If (aiNumber <= -1) || (aiNumber > akInContainer.GetItemCount(kItem)) akInContainer.RemoveItem(kItem, akInContainer.GetItemCount(kItem), True, akOutContainer) Else