Scriptname aaUCWishingScript extends ObjectReference  
{Script for the wishing well}

Message property aaUCWishingWellMsg auto
{Points to the message box that is shown on activation}

Spell property Wellspell auto
{Points to the fortify health blessing spell}

Spell property Wellspell2 auto
{Points to the fortify magicka blessing spell}

Spell property Wellspell3 auto
{Points to the resist magicka blessing spell}

Sound property WaterSplash auto
{Points to the water splash sound}

MiscObject property Gold auto
{Points to the gold to be removed for health spell}

MiscObject property Diamond auto
{Points to the diamond to be removed}

MiscObject property Bone auto
{Points to the dragon bone to be removed}

MiscObject property Tusk auto
{Points to the tusk to be removed}

Ingredient property Powdertusk auto
{Points to the powdered tusk to be added}

Event OnActivate(ObjectReference akActionRef)
  
	Int iButton = aaUCWishingWellMsg.Show()

       If (iButton == 0)
        	WaterSplash.Play(Self)
		Wellspell.Cast(akActionRef, akActionRef)
		Game.GetPlayer().RemoveItem(Gold, 500)

       ElseIf (iButton == 1)
             WaterSplash.Play(Self)
		Wellspell3.Cast(akActionRef, akActionRef)
		Game.GetPlayer().RemoveItem(Diamond, 1)
			
	ElseIf (iButton == 2)
        	WaterSplash.Play(Self)
		Wellspell2.Cast(akActionRef, akActionRef)
		Game.GetPlayer().RemoveItem(Bone, 1)

       ElseIf (iButton == 3)
          	WaterSplash.Play(Self)
		Game.GetPlayer().RemoveItem(Tusk, 1)
		Game.GetPlayer().AddItem(Powdertusk, 1)

	ElseIf (iButton == 4)
		Return 
       EndIf

endEvent