BazaarRealmMod/Source/Scripts/BRMerchPrevPageScript.psc

24 lines
1.1 KiB
Plaintext
Raw Normal View History

2020-10-13 01:26:16 +00:00
scriptname BRMerchPrevPageScript extends ObjectReference
Keyword property BRLinkMerchShelf auto
Keyword property BRLinkMerchChest auto
Keyword property BRLinkItemRef auto
Keyword property BRLinkActivatorRef auto
2020-10-13 01:26:16 +00:00
Keyword property BRLinkMerchToggle auto
Keyword property BRLinkMerchNext auto
Keyword property BRLinkMerchPrev auto
Activator property ActivatorStatic auto
2020-10-13 01:26:16 +00:00
Actor property PlayerRef auto
Quest Property BRQuest Auto
event OnActivate(ObjectReference akActionRef)
2020-10-13 01:26:16 +00:00
if akActionRef == PlayerRef
ObjectReference MerchantShelf = self.GetLinkedRef(BRLinkMerchShelf)
BRQuestScript BRScript = BRQuest as BRQuestScript
bool result = BRMerchandiseList.PrevPage(BRScript.ApiUrl, BRScript.ApiKey, BRScript.ActiveShopId, MerchantShelf, ActivatorStatic, BRLinkMerchShelf, BRLinkMerchChest, BRLinkItemRef, BRLinkActivatorRef, BRLinkMerchToggle, BRLinkMerchNext, BRLinkMerchPrev)
Debug.Trace("BRMerchandiseList.PrevPage result: " + result)
if !result
Debug.MessageBox("Failed to load or clear shop merchandise.\n\n" + BRScript.BugReportCopy)
2020-10-13 01:26:16 +00:00
endif
endif
endEvent