2020-10-13 01:26:16 +00:00
|
|
|
scriptname BRMerchToggleScript extends ObjectReference
|
|
|
|
|
|
|
|
Keyword property BRLinkMerchShelf auto
|
|
|
|
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-11-29 04:45:55 +00:00
|
|
|
debug.MessageBox("BRMerchandiseList.Toggle not implemented yet!")
|
|
|
|
; bool result = BRMerchandiseList.Toggle(BRScript.ApiUrl, BRScript.ApiKey, BRScript.ActiveShopId, MerchantShelf)
|
|
|
|
; Debug.Trace("BRMerchandiseList.Toggle result: " + result)
|
|
|
|
; if !result
|
|
|
|
; Debug.MessageBox("Failed to load or clear shop merchandise.\n\n" + BRScript.BugReportCopy)
|
|
|
|
; endif
|
2020-10-13 01:26:16 +00:00
|
|
|
endif
|
2020-10-16 03:42:57 +00:00
|
|
|
endEvent
|
2020-10-14 02:38:27 +00:00
|
|
|
|
2020-11-29 04:45:55 +00:00
|
|
|
; event OnLoadMerchandiseSuccess(bool result)
|
|
|
|
; Debug.Trace("BRMerchToggleScript OnLoadMerchandiseSuccess result: " + result)
|
|
|
|
; ObjectReference MerchantShelf = self.GetLinkedRef(BRLinkMerchShelf)
|
|
|
|
; debug.MessageBox("BRMerchandiseList.Replace3D not implemented yet!")
|
|
|
|
; ; while !BRMerchandiseList.Replace3D(MerchantShelf)
|
|
|
|
; ; Debug.Trace("BRMerchandiseList.Replace3D returned false, waiting and trying again")
|
|
|
|
; ; Utility.Wait(0.05)
|
|
|
|
; ; endWhile
|
|
|
|
; endEvent
|
2020-10-19 00:56:10 +00:00
|
|
|
|
2020-11-29 04:45:55 +00:00
|
|
|
; event OnLoadMerchandiseFail(string error)
|
|
|
|
; Debug.Trace("BRMerchToggleScript OnLoadMerchandiseFail error: " + error)
|
|
|
|
; BRQuestScript BRScript = BRQuest as BRQuestScript
|
|
|
|
; Debug.MessageBox("Failed to load or clear shop merchandise.\n\n" + error + "\n\n" + BRScript.BugReportCopy)
|
|
|
|
; endEvent
|