PDA

View Full Version : Mule Arch Wight Hunter



StrayRogue
02-28-2005, 03:00 PM
This is made for a Wizard, using the Wizard FE. Change your container/runestave noun as appropriate. It starts at the stairs outside the area, and takes you back to the library to rest and respell up. Adapted from Plo's SF script, so its a little scruffy, but it DOES work:

#Hunts Mule Wights

COUNTER SET 0
save look

start:
pause 1
put %s
COUNTER ADD 1
match stand P>
match charcheck an arch wight.
match charcheck an arch wight,
match charcheck an arch wight and
match path%c Obvious exits:
match path%c You can't
matchwait

charcheck:
match stand P>
match doh disk
match doh Also here:
match manacheck Obvious exits:
matchwait

doh1:
match stand P>
match killdir You feel a sudden rush
match path%c Cast Roundtime
pause 1
put inc 516
matchwait

stand:
match stand You struggle
match goon You stand
put stand
matchwait

doh:
goto path%c

manacheck:
match stand P>
match doh1 You don't have
match killdir I could not find
put send 16 asdf
matchwait

killdir:
match stand P>
match killdir Could not find
match goon You do not
match goon You search
match goon What were you
put stance off
waitfor You
put incant 904
waitfor You
pause 3
put stance gua
waitfor You
put loot
matchwait

goon:
COUNTER SUBTRACT 1
#put stow left
save look
goto start

path1:
path4:
path10:
path11:
path12:
path13:
path20:
save s
goto start

path2:
path22:
save e
goto start

path3:
path21:
save se
goto start

path5:
path19:
save sw
goto start

path6:
path7:
path8:
path14:
path16:
path17:
path18:
path23:
path24:
path25:
path26:
save n
goto start

path9:
path15:
save w
goto start

path27:
match stand P>
match backtocrack You don't have
match checkcrack I could not find
put send 20 asdf
matchwait

checkcrack:
match stand P>
match backtocrack You must rest!
match restart Your mind is
put exp
matchwait

restart:
COUNTER SET 0
save look
goto start

backtocrack:
put go stai
waitfor Obvious
put go pan
waitfor Obvious
put go door
waitfor Obvious
put e
waitfor Obvious
put e
waitfor Obvious
put s
waitfor Obvious
put s
waitfor Obvious
put u
waitfor Obvious
put u
waitfor Obvious
put u
waitfor Obvious
put e
waitfor Obvious
put se
waitfor Obvious
goto rest

rest:
put put staff in my harn
pause 60
put send 50 erx
match waitmore You don't
match spellmeup I could
matchwait

spellmeup:
put 401
pause 3
put 406
pause 3
put 414
pause 3
put 503
pause 3
put 513
pause 3
put 913
pause 60
put send 50 erx
match waitmore You don't
match gohunt I could
matchwait

waitmore:
pause 30
put send 50 erx
match waitmore2 You don't
match gohunt I could
matchwait

waitmore2:
goto waitmore

gohunt:
put set monsterbold off
pause 1
put take staff
waitfor You
put nw
waitfor Obvious
put w
waitfor Obvious
put d
waitfor Obvious
put d
waitfor Obvious
put d
waitfor Obvious
put n
waitfor Obvious
put n
waitfor Obvious
put w
waitfor Obvious
put w
waitfor Obvious
put go door
waitfor Obvious
put go panel
waitfor Obvious
put go stair
waitfor Obvious
goto path1

[Edited on 28-2-05 by StrayRogue]

[Edited on 28-2-05 by StrayRogue]

StrayRogue
02-28-2005, 04:27 PM
Hmmm, one problem I've just encountered is that it doesn't loop around when it restarts. Basically I get a goto label not found error after gohunt completes. Anyone have any idea why or how I can set it so that as soon as it moves you back into the correct area it begins hunting again?

StrayRogue
02-28-2005, 07:22 PM
That doesn't work either.

Latrinsorm
02-28-2005, 08:05 PM
I've had the same problem with longer scripts. Have the goto go to an intermediary label, then at the intermediary label go to where you want to go. I have no idea why this works, but it does.

Also, make sure you don't have any trailing spaces in the actual script.

StrayRogue
02-28-2005, 08:52 PM
Originally posted by Mini-Spir
Reading over this script again it appears it goes to the resting spot to spell you up and then go out and hunt with no apparent check to see if you need to hunt yet.

I would have fixed it earlier but I was leaving work.. I'll rewrite this.

Er yes it does.

Mini-Spir
02-28-2005, 09:03 PM
#Hunts Mule Wights

Top:
COUNTER SET 0
save look

start:
pause
put %s
COUNTER ADD 1
match stand P>
match charcheck an arch wight.
match charcheck an arch wight,
match charcheck an arch wight and
match path%c Obvious exits:
match path%c You can't
matchwait

charcheck:
match stand P>
match doh disk
match doh Also here:
match manacheck Obvious exits:
matchwait

doh1:
match stand P>
match killdir You feel a sudden rush
match path%c Cast Roundtime
pause 1
put inc 516
matchwait

stand:
match stand You struggle
match goon You stand
put stand
matchwait

doh:
goto path%c

manacheck:
match stand P>
match doh1 You don't have
match killdir I could not find
put send 16 asdf
matchwait

killdir:
match stand P>
match killdir Could not find
match goon You do not
match goon You search
match goon What were you
put stance off
waitfor You
put incant 904
waitfor You
put stance gua
waitfor You
put loot
matchwait

goon:
COUNTER SUBTRACT 1
#put stow left
save look
goto start

path1:
path4:
path10:
path11:
path12:
path13:
path20:
save s
goto start

path2:
path22:
save e
goto start

path3:
path21:
save se
goto start

path5:
path19:
save sw
goto start

path6:
path7:
path8:
path14:
path16:
path17:
path18:
path23:
path24:
path25:
path26:
save n
goto start

path9:
path15:
save w
goto start

path27:
match stand P>
match backtocrack You don't have
match checkcrack I could not find
put send 16 asdf
matchwait

checkcrack:
match stand P>
match backtocrack You must rest!
match restart Your mind is
put exp
matchwait

restart:
COUNTER SET 0
save look
goto start

backtocrack:
move go staircase
move go panel
move go door
move e
move e
move e
move e
move e
move climb stair
move w
move w
move s
move e
move se
Goto SpellUpCheck

SpellUpCheck:
# - Variable spell cost for 513/913 this will not stay at 50.
Match WaitFor You don't have
Match SpellUp I could not find
put send 50 SpellUpCheck
Matchwait

WaitFor:
Pause 60
Goto SpellUpCheck

SpellUp:
put 401
pause 3
put 406
pause 3
put 414
pause 3
put 503
pause 3
put 513
pause 3
put 913
Goto AfterPause

AfterPause:
pause 60
Match AfterPause You don't have
Match Library I could
put send 50 AfterPause
matchwait

Library:
Match LRest You must rest!
Match LRest Your mind is numbed.
Match LRest Your mind is numb.
Match LRest Your mind is becoming numb.
Match LRest Your mind is becoming numbed.
Match ToStart Your mind is muddled.
Match ToStart Your mind is clear.
Match ToStart Your mind is fresh and clear.
Match ToStart Your mind is clear as a bell.
Match ToStart Your mind is as clear as a bell.
put Exp
Matchwait

LRest:
Pause 60
Goto Library

ToStart:
put set monsterbold off
put take staff
waitfor You
move nw
move w
move n
move e
move e
move climb stair
move w
move w
move w
move w
move w
move go door
move go panel
move go stair
Goto Top

[Edited on 3-1-2005 by Mini-Spir]

StrayRogue
04-12-2005, 06:46 PM
Just got around to testing your script Spir and its a bit buggy:

You hurl a hissing stream of acid at an arch wight!
AS: +215 vs DS: +63 with AvD: +40 + d100 roll: +91 = +283
... and hit for 136 points of damage!
Acid hits leg squarely leaving nothing useful behind.
An arch wight screams delightedly and falls to the ground grasping its mangled right leg!
It seems to enjoy the pain!
Cast Roundtime 3 Seconds.
[Script]>loot
You are now in a guarded stance.
[Script]>stance off
Could not find a valid target to loot.
[Script]>
An arch wight writhes on the ground, laughing softly under its pain.
[Script]>
You are now in an offensive stance.
[Script]>incant 904
...wait 2 seconds.
[Script]>

If it doesn't kill on the first hit it often hangs leaving you in stance offensive. Where should I add a pause?

hectomaner
04-12-2005, 07:39 PM
change killdir to this. and then add killdir1

killdir:
match stand P>
match killdir1 Could not find
match goon You do not
match goon You search
match goon What were you
put stance off
waitfor You
put incant 904
waitfor You
put stance gua
waitfor You
put loot
matchwait



killdir1:
match stand P>
match killdir1 Could not find
match goon You do not
match goon You search
match goon What were you
pause 3
put stance off
waitfor You
put incant 904
waitfor You
put stance gua
waitfor You
put loot
matchwait

StrayRogue
04-12-2005, 07:39 PM
Ah I fixed it already, heh. It still needed alot more tweaking in area's though.

Tromp
04-13-2005, 08:46 AM
So did you have a final product? I'd love to check it out and use it.