Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
mort65 authored Aug 10, 2022
1 parent 70b9b4c commit fe98ecc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions Data/source/scripts/zzzmoaitemcursescript.psc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Data/source/scripts/zzzmoautilscript.psc
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fe98ecc

Please sign in to comment.