Gizmo
11-19-2005, 01:20 AM
Howdy Folks, just thought I'd post up a W.I.P Fletching Script I've been messing around with today. Right now it's like 12:30am and I don't feel like tweaking with it anymore, so I'll post it as is currently.
Right now, it produces arrows/bolts from already cut shafts and paints them as well. Note, in order for the script to work right now, you already need to have the shafts cut, not just the wood but the actual arrow or bolt shafts made. If anyone feels like adding on to it be my guess, in the future I hope to add on the darts, arrowheads, caps and crests/scribes as well. but for what it's worth, right now it's good enough to post.
Some things you'll have to tweak on your own, since my bow appraisal is different than usual bows..But nothing else should really need tinkering.
IF_5 goto itemcheck
echo *****
echo Usage is -fletch (dagger) (dagger sheath) (bow) (glue and paint pouch) (place arrow)
echo *****
echo Fletches and paints arrows and bolts
echo *****
exit
bad1:
echo *****
echo %1 does not exist
echo *****
exit
bad2:
echo *****
echo %2 does not exist
echo *****
exit
bad3:
echo *****
echo %3 does not exist
echo *****
exit
bad4:
echo *****
echo %4 does not exist
echo *****
exit
bad5:
echo *****
echo %5 does not exist
echo *****
exit
nofletchings:
echo *****
echo You don't have any fletchings left - Go buy some.
echo *****
exit
noglue:
echo *****
echo You don't have any fletching glue left - Go buy some.
echo *****
exit
itemcheck:
put tap my %1
match okay1 You tap
match bad1 I could not find
matchwait
okay1:
put tap my %2
match okay2 You tap
match bad2 I could not find
matchwait
okay2:
put tap my %3
match typetest You gently tap
match bad3 I could not find
matchwait
typetest:
put appraise %3
match crossbow crossbow
match bow ipantor longbow
matchwait
crossbow:
put stow left
put stow right
put remove my %3
put unload %3
match nobolt is not loaded!
match boltin You remove the
matchwait
boltin:
put drop bolt
put wear my %3
goto okay3
nobolt:
put cock my %3
match cocked already cocked.
match cocking Roundtime:
matchwait
cocking:
Pause 1
cocked:
put wear my %3
goto okay3
bow:
okay3:
put tap %4
match okay4 You tap
match bad4 I could not find
matchwait
okay4:
put tap %5
match readytostart You tap
match bad5 I could not find
matchwait
readytostart:
put wear my longbow
goto step1
badcut:
put put my %1 in my %2
badfletchadd:
goto step1
step1:
put get 1 shaft
waitfor a single
put get my %1
waitfor You remove
put cut my shaft with my %1
match badcut Realizing it would never
match step2 You pare away the excess wood
matchwait
step2:
pause 1
put put my %1 in my %4
waitfor You put
put get my paint from my %4
put paint my shaft
waitfor Roundtime:
pause 1
goto step3
step3:
pause 1
waitfor has dried
put put my paint in my %4
pause 1
put get my %1 from my %4
pause 1
put cut my shaft with my %1
put cut nocks in my shaft with my %1
match badcut You cut too deep
match step4 Crossbow shafts do not
match step4 You carefully cut a nock
matchwait
step4:
put put my %1 in my %2
put remove my %3
waitfor You sling
put measure my shaft with my %3
waitfor Roundtime:
pause 1
goto step5
step5:
put wear my %3
put get my %1
put cut my shaft with my %1
waitfor Roundtime:
pause 1
goto step6
step6:
put put my %1 in my %2
put get my glue
match step5ok You remove a bottle of
match noglue Get What?
matchwait
step5ok:
put pour glue on my shaft
waitfor Roundtime:
pause 1
goto step7
step7:
put put glue in my %4
put get 3 fletchings
match step6ok remove 3 of
match step6ok remove a bundle of
match nofletchings Get what?
matchwait
step6ok:
put put fletchings on my shaft
match step6 are able to salvage
match badfletchadd discard the fletchings and
match step8 You attach your
matchwait
step8:
pause 1
waitfor has dried.
put get my %1
put cut my shaft with my %1
put cut my shaft with my %1
match badcut slice the end
match step9 With a few quick cuts
matchwait
step9:
pause 1
put put %1 in my %2
put glance
match arrowdone arrow
match boltdone bolt
matchwait
arrowdone:
put put arrow in %5
goto step1
boltdone:
put put bolt in %5
goto step1
Right now, it produces arrows/bolts from already cut shafts and paints them as well. Note, in order for the script to work right now, you already need to have the shafts cut, not just the wood but the actual arrow or bolt shafts made. If anyone feels like adding on to it be my guess, in the future I hope to add on the darts, arrowheads, caps and crests/scribes as well. but for what it's worth, right now it's good enough to post.
Some things you'll have to tweak on your own, since my bow appraisal is different than usual bows..But nothing else should really need tinkering.
IF_5 goto itemcheck
echo *****
echo Usage is -fletch (dagger) (dagger sheath) (bow) (glue and paint pouch) (place arrow)
echo *****
echo Fletches and paints arrows and bolts
echo *****
exit
bad1:
echo *****
echo %1 does not exist
echo *****
exit
bad2:
echo *****
echo %2 does not exist
echo *****
exit
bad3:
echo *****
echo %3 does not exist
echo *****
exit
bad4:
echo *****
echo %4 does not exist
echo *****
exit
bad5:
echo *****
echo %5 does not exist
echo *****
exit
nofletchings:
echo *****
echo You don't have any fletchings left - Go buy some.
echo *****
exit
noglue:
echo *****
echo You don't have any fletching glue left - Go buy some.
echo *****
exit
itemcheck:
put tap my %1
match okay1 You tap
match bad1 I could not find
matchwait
okay1:
put tap my %2
match okay2 You tap
match bad2 I could not find
matchwait
okay2:
put tap my %3
match typetest You gently tap
match bad3 I could not find
matchwait
typetest:
put appraise %3
match crossbow crossbow
match bow ipantor longbow
matchwait
crossbow:
put stow left
put stow right
put remove my %3
put unload %3
match nobolt is not loaded!
match boltin You remove the
matchwait
boltin:
put drop bolt
put wear my %3
goto okay3
nobolt:
put cock my %3
match cocked already cocked.
match cocking Roundtime:
matchwait
cocking:
Pause 1
cocked:
put wear my %3
goto okay3
bow:
okay3:
put tap %4
match okay4 You tap
match bad4 I could not find
matchwait
okay4:
put tap %5
match readytostart You tap
match bad5 I could not find
matchwait
readytostart:
put wear my longbow
goto step1
badcut:
put put my %1 in my %2
badfletchadd:
goto step1
step1:
put get 1 shaft
waitfor a single
put get my %1
waitfor You remove
put cut my shaft with my %1
match badcut Realizing it would never
match step2 You pare away the excess wood
matchwait
step2:
pause 1
put put my %1 in my %4
waitfor You put
put get my paint from my %4
put paint my shaft
waitfor Roundtime:
pause 1
goto step3
step3:
pause 1
waitfor has dried
put put my paint in my %4
pause 1
put get my %1 from my %4
pause 1
put cut my shaft with my %1
put cut nocks in my shaft with my %1
match badcut You cut too deep
match step4 Crossbow shafts do not
match step4 You carefully cut a nock
matchwait
step4:
put put my %1 in my %2
put remove my %3
waitfor You sling
put measure my shaft with my %3
waitfor Roundtime:
pause 1
goto step5
step5:
put wear my %3
put get my %1
put cut my shaft with my %1
waitfor Roundtime:
pause 1
goto step6
step6:
put put my %1 in my %2
put get my glue
match step5ok You remove a bottle of
match noglue Get What?
matchwait
step5ok:
put pour glue on my shaft
waitfor Roundtime:
pause 1
goto step7
step7:
put put glue in my %4
put get 3 fletchings
match step6ok remove 3 of
match step6ok remove a bundle of
match nofletchings Get what?
matchwait
step6ok:
put put fletchings on my shaft
match step6 are able to salvage
match badfletchadd discard the fletchings and
match step8 You attach your
matchwait
step8:
pause 1
waitfor has dried.
put get my %1
put cut my shaft with my %1
put cut my shaft with my %1
match badcut slice the end
match step9 With a few quick cuts
matchwait
step9:
pause 1
put put %1 in my %2
put glance
match arrowdone arrow
match boltdone bolt
matchwait
arrowdone:
put put arrow in %5
goto step1
boltdone:
put put bolt in %5
goto step1