diff --git a/scripts/_00e_treasuremarkerscript.pex b/scripts/_00e_treasuremarkerscript.pex index 048c1bda..35d17988 100644 Binary files a/scripts/_00e_treasuremarkerscript.pex and b/scripts/_00e_treasuremarkerscript.pex differ diff --git a/source/scripts/_00e_treasuremarkerscript.psc b/source/scripts/_00e_treasuremarkerscript.psc index 9b281d5c..94e6729c 100644 --- a/source/scripts/_00e_treasuremarkerscript.psc +++ b/source/scripts/_00e_treasuremarkerscript.psc @@ -6,14 +6,26 @@ Import Utility ; EVENTS ;===================================================================================== +Event OnInit() + Self.BlockActivation() +endEvent + Auto State Waiting - Event OnLoad() - Self.BlockActivation() - endEvent - Event OnActivate (ObjectReference akActionRef) - + + if akActionRef != PlayerREF + return + endif + + if PlayerREF.GetRace() == Game.GetFormFromFile(0x2EE47, "Enderal - Forgotten Stories.esm") as Race + Message werewolfMessage = Game.GetFormFromFile(0x2F032, "Enderal - Forgotten Stories.esm") as Message + if werewolfMessage + werewolfMessage.Show() + return + endif + endif + If akActionRef.GetItemCount(ShovelKeyword) > 0 TreasureDigger = akActionRef as Actor if TreasureDigger.IsInCombat() @@ -110,4 +122,4 @@ Message Property _00E_TreasureMarkerScript_sShovelNeeded Auto Keyword Property ShovelKeyword Auto Actor Property PlayerREF Auto -Idle Property DefaultSheathe Auto \ No newline at end of file +Idle Property DefaultSheathe Auto