2020-10-13 01:26:16 +00:00
|
|
|
scriptname BRMerchPrevPageScript extends ObjectReference
|
|
|
|
|
|
|
|
Keyword property BRLinkMerchShelf auto
|
|
|
|
Keyword property BRLinkMerchChest auto
|
|
|
|
Keyword property BRLinkItemRef auto
|
2020-10-25 07:21:08 +00:00
|
|
|
Keyword property BRLinkActivatorRef auto
|
2020-10-13 01:26:16 +00:00
|
|
|
Keyword property BRLinkMerchToggle auto
|
|
|
|
Keyword property BRLinkMerchNext auto
|
|
|
|
Keyword property BRLinkMerchPrev auto
|
2020-10-25 07:21:08 +00:00
|
|
|
Activator property ActivatorStatic auto
|
2020-10-13 01:26:16 +00:00
|
|
|
Actor property PlayerRef auto
|
|
|
|
Quest Property BRQuest Auto
|
|
|
|
|
2020-10-16 03:42:57 +00:00
|
|
|
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
|
2020-10-25 07:21:08 +00:00
|
|
|
bool result = BRMerchandiseList.PrevPage(BRScript.ApiUrl, BRScript.ApiKey, BRScript.ActiveShopId, MerchantShelf, ActivatorStatic, BRLinkMerchShelf, BRLinkMerchChest, BRLinkItemRef, BRLinkActivatorRef, BRLinkMerchToggle, BRLinkMerchNext, BRLinkMerchPrev)
|
2020-10-16 03:42:57 +00:00
|
|
|
Debug.Trace("BRMerchandiseList.PrevPage result: " + result)
|
2020-10-14 02:38:27 +00:00
|
|
|
if !result
|
2020-10-19 00:56:10 +00:00
|
|
|
Debug.MessageBox("Failed to load or clear shop merchandise.\n\n" + BRScript.BugReportCopy)
|
2020-10-13 01:26:16 +00:00
|
|
|
endif
|
|
|
|
endif
|
2020-10-16 03:42:57 +00:00
|
|
|
endEvent
|