From 95d0d4946f11135a7723d0c0e245d3d1eba511cc Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Wed, 22 Jun 2022 15:27:49 +0200 Subject: [PATCH] Added QuickLootRE.psc for script compilation --- Scripts/ETR_TrackNewItems.pex | Bin 2253 -> 2453 bytes Source/Scripts/ETR_TrackNewItems.psc | 10 ++++---- Source/Scripts/QuickLootRE.psc | 33 +++++++++++++++++++++++++++ 3 files changed, 38 insertions(+), 5 deletions(-) create mode 100644 Source/Scripts/QuickLootRE.psc diff --git a/Scripts/ETR_TrackNewItems.pex b/Scripts/ETR_TrackNewItems.pex index 70f7841beea4fcc37fa26eced225f9f43625461c..05f045a11337e5cb474cdde1edd1ed54695530b7 100644 GIT binary patch delta 661 zcmZvaxlRI66o&sZ3nT~#fgl1A5zNFI#1$7-Nr;IQTDwdPaTy~JW5qL=iLp19HcDY* z;S2Z*zJnGPR-V~1l6WUGbMJTl^UuBK%zOAY68hPD`w#^XcpMDlk2j$LHJ@rDTrEGV;;2&+m z)IvZKtDI^NVw{EtaqAZVB$T)nYut);Y+#db0VxibInTpYsBo3tVwRXx&Eq&NFi3?9 e=v0=wVxSto2xX)6Nb*ELou7Qv24TzfEB^x85>F}s delta 327 zcmbO#d{$84SNMT@%uEc73_y^y>5lP40TV{ojjo@VHuo``GBR(vqc`~&i#nsyC&(fhwV@;yFY?s>~->aL7X#vtf*VFvdd; zDMpLQe>h}oEE$v-tQb@ntQl+=Y=M}GL54ws!Hz+ifemP= 292 - ; QuickLootRE.RegisterNewItemsList(ETR_ItemsNew) - ; QuickLootRE.RegisterDisplayedItemsList(ETR_ItemsStored) - ; QuickLootRE.RegisterFoundItemsList(ETR_ItemsFound) - ;endif + if SKSE.GetPluginVersion("QuickLootRE") >= 292 + QuickLootRE.RegisterNewItemsList(ETR_ItemsNew) + QuickLootRE.RegisterDisplayedItemsList(ETR_ItemsStored) + QuickLootRE.RegisterFoundItemsList(ETR_ItemsFound) + endif ; Rebuild all lists to avoid discrepancies, stale data, and broken records diff --git a/Source/Scripts/QuickLootRE.psc b/Source/Scripts/QuickLootRE.psc new file mode 100644 index 0000000..14d4c5b --- /dev/null +++ b/Source/Scripts/QuickLootRE.psc @@ -0,0 +1,33 @@ +Scriptname QuickLootRE Hidden +{Script used for adding custom icons to QuickLootRE} + +int Function GetVersion() global native +{Gets the version e.g 292 for 2.9.2} + +;iEquip Functions --------------------------------------- + +Function RegisterNewItemsList(FormList alist) global native +{Registers a form list to be used to check wheather an item is not + displayed in LOTD and is not in our inventory or LOTD containers.} + +Function RegisterFoundItemsList(FormList alist) global native +{Registers a form list to be used to check wheather an item is not + displayed in LOTD and is in our inventory or LOTD containers.} + +Function RegisterDisplayedItemsList(FormList alist) global native +{Registers a form list to be used to check wheather an item is displayed in LOTD.} + +; Gets the version as a string for viewing +string Function GetVersionString() global + int iVersion = QuickLootRE.GetVersion() + + if (iVersion == 0) + return "" + endif + + int iMajor = iVersion / 100 + int iMinor = (iVersion / 10) % 10 + int iBug = iVersion % 10 + string aVersion = iMajor + "." + iMinor + "." + iBug + return aVersion +EndFunction