Update calls to load interior ref lists
This commit is contained in:
parent
679a97a2d6
commit
90087c3056
BIN
Bazaar Realm.esp
BIN
Bazaar Realm.esp
Binary file not shown.
@ -2,5 +2,5 @@ scriptname BRInteriorRefList
|
||||
|
||||
bool function Create(string apiUrl, string apiKey, int shop_id, quest quest) global native
|
||||
bool function ClearCell() global native
|
||||
bool function Load(string apiUrl, string apiKey, int interior_ref_id, ObjectReference player, quest quest) global native
|
||||
bool function LoadByShopId(string apiUrl, string apiKey, int shop_id, ObjectReference player, quest quest) global native
|
||||
bool function Load(string apiUrl, string apiKey, int interior_ref_id, ObjectReference player, ObjectReference private_chest, ObjectReference public_chest, quest quest) global native
|
||||
bool function LoadByShopId(string apiUrl, string apiKey, int shop_id, ObjectReference player, ObjectReference private_chest, ObjectReference public_chest, quest quest) global native
|
@ -22,6 +22,8 @@ string property ActiveShopDescription auto
|
||||
; references
|
||||
Actor property PlayerRef auto
|
||||
ObjectReference property ShopXMarker auto
|
||||
ObjectReference property PrivateChest auto
|
||||
ObjectReference property PublicChest auto
|
||||
; messages
|
||||
Message property ShopDetailMessage auto
|
||||
Message property BuyMerchandiseMessage auto
|
||||
@ -151,7 +153,7 @@ bool function LoadInteriorRefs()
|
||||
endif
|
||||
Debug.Trace("ClearCell result: " + result)
|
||||
|
||||
result = BRInteriorRefList.Load(ApiUrl, ApiKey, InteriorRefListId, ShopXMarker, self)
|
||||
result = BRInteriorRefList.Load(ApiUrl, ApiKey, InteriorRefListId, ShopXMarker, PrivateChest, PublicChest, self)
|
||||
if result
|
||||
return true
|
||||
else
|
||||
@ -261,7 +263,7 @@ event OnListShopsSuccess(int[] ids, string[] names, string[] descriptions)
|
||||
endif
|
||||
Debug.Trace("ClearCell result: " + result)
|
||||
|
||||
result = BRInteriorRefList.LoadByShopId(ApiUrl, ApiKey, ActiveShopId, ShopXMarker, self)
|
||||
result = BRInteriorRefList.LoadByShopId(ApiUrl, ApiKey, ActiveShopId, ShopXMarker, PrivateChest, PublicChest, self)
|
||||
if !result
|
||||
Debug.MessageBox("Failed to load shop.\n\n" + BugReportCopy)
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user