CONST_ANI_ARROW is a number 2
You can find all in data/lib/constant.lua
local arrows = {1, 2}
Original script is using randomly arrows or bolts per shot. 1 is bolt, 2 is arrow.
You can change 1, 2 to CONST_ANI_BOLT, CONST_ANI_ARROW.
Also that line should be fixed to:
doSendDistanceShoot({ x =...