Ok, so here is a rather simple script for a crossbow. I highly recommend taking out the hiding part until you are old enough that you can actually stay hidden while firing. Regular crossbows suck as they knock you out of hiding when you cock them. That's one of the big advantages of a mechanical crossbow. I died a few times testing this script while hunting rats.. Which is sad really. You have a lot of power with a crossbow kneeling, but you die quite easily.

Anyways, copy the code to a text file, name it something .lic and then put it in your lich/scripts/ folder. In bigshot set your hunting command to, script whateveryounamedyourscript and the script should run when bigshot attacks something.

You may also want to change the quiver to wherever you keep your bolts. Anything you want added then let me know.

Code:
if (checkleft != nil) && (checkleft != "crossbow") 
	fput "stow left"
	fput "unsheath"
	sleep 0.1
end
if (checkright != nil)
	fput "stow right"
	sleep 0.1
end
	
result = fput "look at my crossbow"

if result =~ /not cocked/
	fput "cock my crossbow"
	waitrt?
	fput "get 1 bolt from my quiver"
	fput "load my crossbow"
elsif result =~ /not loaded/
	fput "get 1 bolt from my quiver"
	fput "load my crossbow"
end

until checkkneeling
	fput "kneel"
end

until checkhidden
	fput "hide"
	sleep 1
	waitrt?
end

until checkstance == 'offensive'
	fput "stance offensive"
	sleep 0.1
end

fput "fire"

waitrt?

until checkstanding
	fput "stand"
end

until checkstance == 'defensive'
	fput "stance defensive"
	sleep 0.1
end