From 83629e9c79b86a6258f9576c9c6ac278c7925d74 Mon Sep 17 00:00:00 2001 From: Eddoursul Date: Fri, 20 May 2022 13:25:32 +0200 Subject: [PATCH] Added support for picking up gems --- Pickup Helper.esp | Bin 2611 -> 2806 bytes Scripts/PRKF_ETAxTakePerk_02000805.pex | Bin 1882 -> 2035 bytes Source/Scripts/PRKF_ETAxTakePerk_02000805.psc | 38 +++++++++++------- 3 files changed, 24 insertions(+), 14 deletions(-) diff --git a/Pickup Helper.esp b/Pickup Helper.esp index d1455c26bf3ae70375b6a85420848f05218077e7..ef30aa15063e75fa55000b6307f481e7ebebfc15 100644 GIT binary patch delta 401 zcmdli@=bJt8q=+ei5im_gD37jEPTMhJt#EbG$R8;U}$g%0}upHp2%1@c?Ofrb~IQqRaxYaSRNMlNDLTC%G(cp1V{^HTDQJWEn@-BWWR4t)#sG!w{tW)7fVAF^ssZe}%LW|OD0t(|Pc!87?2yVv9>&P71XGx-R|w8?)s%_kpc*PiUb Yp~m=jaz2L=P|E>!waG5*>wsc`0NDp|?f?J) delta 309 zcmew+x>;m`8k0oaM2$&|E)#bj7H)8G4+;%9&B(wI7#bYH00b_RCo&cq@H4oEI93E? zCTE8hxTNMJRx$#W{Qu9)!NA1H5CG(-76qlIK?FsBx+W{IN=&Y2lAgQ?h~=0hWCV~5 z2ue)JEG>p8W&xTo*_%mn@>!-nMwiJk%!i~T*%%lCT!Xy9w(EdM2>&JPWD6Ee4ihF; z1||kZhRGLMWtbS)CtqeU0of+O19eAma#3bM3CMH?21bzSTUZppHY{KfnHuW}!enW-sf-*zmJXxgCTe N_C-K3j>)>5`T%VfQ!fAj diff --git a/Scripts/PRKF_ETAxTakePerk_02000805.pex b/Scripts/PRKF_ETAxTakePerk_02000805.pex index 89ffa49130790b01193696fc4048fe1dce5773aa..5b0626ab19310cb660de147bdb6b18456f852d83 100644 GIT binary patch literal 2035 zcmZ`(?NZxD6g?{&+t?Tz{vR3^361zVgRESUEX;b8yi;Z+|?u z`uv2;{zb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amz4Qg_+SIe5#FKW zCrY=6*wvgUHDu31<@!Brc1FIf@3$IW@vy2yI8uHdB4u@gtQl4W zKA0#utdnXI=Lr3LYOLW4${2f=@g>!XjYVuw!q_O|D=HHk6;!95RYG-Vc|45#(I~#g zV@j366MTbBa-|j-o-nMgF?`Fg%&@7)n<8+I(NJc_ZY5&37}hBE=`@xxY|&(9Ms6n} zw;3MXiQGnJcH~YXa)+UOhwl#YP2m}yM?=?dw$AW^?r|oSS|VYMp>l^xjaF(#WEypf zY{b!73TrYvVyK(7EHN}lU!^~7r|)EKRLpz{f0-DW#x`iNA7WP%*Soeyz0hqCq?5d2 z*pKf9RO1Et34NVF>8fY4wP>vm5^TRWY%RmK$Y9Zr*cv-SDWhf%jGN3K5+oT840-k+ DsqS69 diff --git a/Source/Scripts/PRKF_ETAxTakePerk_02000805.psc b/Source/Scripts/PRKF_ETAxTakePerk_02000805.psc index 2f2494c..643230f 100644 --- a/Source/Scripts/PRKF_ETAxTakePerk_02000805.psc +++ b/Source/Scripts/PRKF_ETAxTakePerk_02000805.psc @@ -1,11 +1,11 @@ ;BEGIN FRAGMENT CODE - Do not edit anything between this and the end comment -;NEXT FRAGMENT INDEX 36 +;NEXT FRAGMENT INDEX 37 Scriptname PRKF_ETAxTakePerk_02000805 Extends Perk Hidden -;BEGIN FRAGMENT Fragment_33 -Function Fragment_33(ObjectReference akTargetRef, Actor akActor) +;BEGIN FRAGMENT Fragment_36 +Function Fragment_36(ObjectReference akTargetRef, Actor akActor) ;BEGIN CODE -PlayerScript.TakeByKeyword(VendorItemAnimalHide, true) +PlayerScript.TakeByKeyword(VendorItemGem) ;END CODE EndFunction ;END FRAGMENT @@ -27,11 +27,21 @@ endif EndFunction ;END FRAGMENT -;BEGIN FRAGMENT Fragment_6 -Function Fragment_6(ObjectReference akTargetRef, Actor akActor) +;BEGIN FRAGMENT Fragment_33 +Function Fragment_33(ObjectReference akTargetRef, Actor akActor) ;BEGIN CODE -; Arrows and projectiles -PlayerScript.TakeByFormOrList(ETAxArrowList) +PlayerScript.TakeByKeyword(VendorItemAnimalHide, true) +;END CODE +EndFunction +;END FRAGMENT + +;BEGIN FRAGMENT Fragment_18 +Function Fragment_18(ObjectReference akTargetRef, Actor akActor) +;BEGIN CODE +; Flora +if ! akTargetRef.IsActivationBlocked() + PlayerScript.PickFloraByType(akTargetRef.GetBaseObject()) +endif ;END CODE EndFunction ;END FRAGMENT @@ -52,13 +62,11 @@ PlayerScript.TakeByKeyword(VendorItemOreIngot, true) EndFunction ;END FRAGMENT -;BEGIN FRAGMENT Fragment_18 -Function Fragment_18(ObjectReference akTargetRef, Actor akActor) +;BEGIN FRAGMENT Fragment_6 +Function Fragment_6(ObjectReference akTargetRef, Actor akActor) ;BEGIN CODE -; Flora -if ! akTargetRef.IsActivationBlocked() - PlayerScript.PickFloraByType(akTargetRef.GetBaseObject()) -endif +; Arrows and projectiles +PlayerScript.TakeByFormOrList(ETAxArrowList) ;END CODE EndFunction ;END FRAGMENT @@ -86,3 +94,5 @@ Keyword Property VendorItemOreIngot Auto MiscObject Property Lockpick Auto Keyword Property VendorItemAnimalHide Auto + +Keyword Property VendorItemGem Auto