begin sltw_NR_boulder_break

short miner's pickHit
short countHit
short countSays
short DoOnce


If ( OnActivate == 1 )
	If ( GetItemCount, "Miner's Pick" >= 1 )
		MessageBox "You must use your miner's pick to break the rocks"
	return

	Else
		MessageBox "The rocks are not loose enough to move with your hands, you will need to hit it with something."
	return

	endif
endif

If ( HitOnMe, "miner's pick" )
	MessageBox "Good, just like that."
endif

Set countHits to ( countHits + 1)

if ( countHits == 1 )
	if ( countSays == 0 )
		PlaySound3D "Silgrad\pickaxe.wav"
		Set countSays to 1
	endif
endif

if ( countHits == 2 )
	if ( countSays == 0 )
		PlaySound3D "Silgrad\pickaxe.wav"
		Set countSays to 2
	endif
endif

if ( countHits == 3 )
	if ( countSays == 0 )
		PlaySound3D "Silgrad\pickaxe.wav"
		Set countSays to 3
	endif

	Disable

	PlaceAtPC, "_NR_act_boulder04_f", 0, 5, 0
	PlaceAtPC, "_NR_act_boulder04_f", 1, 2, 1
	PlaceAtPC, "_NR_act_boulder04_f", 2, 8, 0

endif

End