So I modified the following script from a Vaalor Lion hunting script so that I could hunt wraiths in Icemule a little easier. I have a few issues with the script that I can not figure out. Note: I am quite the noob to hunting scripts.
1st - Its not attacking the wraith till it dies. It just swings once then moves on to the next room. I have tried looking over a few other scripts on the boards but I can not seem to figure out the fix.
2nd - The script wont always wait for the roundtime in game. So if I am still in RT it tries to move before the system will let it.
3rd - It does not always loot after it kills a wraith.
Any help is greatly appreciated. Thanks.
Here is the script.
#Wraith Hunter
counter set 1
start:
put look
match filter1 a wraith
match restorlevel Table]
match logoff [Scripting Violation Limbo]
match logoff [The Cell]
match lost Obvious paths:
match lost Obvious exits:
matchwait
lost:
goto R%c
checkexp:
put exp
match gorest You must rest
match R1 Your mind is
matchwait
R1:
pause .5
counter set 2
put n
goto checkroom
R2:
pause .5
put n
counter set 3
goto checkroom
R3:
pause .5
put n
counter set 4
goto checkroom
R4:
pause .5
put s
counter set 5
goto checkroom
R5:
pause .5
put s
counter set 6
goto checkroom
R6:
pause .5
put s
counter set 7
goto checkroom
R7:
pause .5
put w
counter set 8
goto checkroom
R8:
pause .5
put e
counter set 9
goto checkroom
R9:
pause .5
put cli lad
counter set 10
goto checkroom
R10:
pause .5
put n
counter set 11
goto checkroom
R11:
pause .5
put s
counter set 12
goto checkroom
R12:
pause .5
put cli lad
counter set 20
goto checkroom
R20:
goto checkexp
checkroom:
match standup You will have to stand up first or crawl there.
match start Sorry, you may only type ahead
match R%c You can't go there
match start I could not find what
match filter1 a wraith
match R%c Obvious paths:
match R%c Obvious exits:
matchwait
filter1:
match start You can't go there.
match R%c Also here:
match preatt1 a wraith
match preatt1 Obvious paths:
match preatt1 Obvious exits:
matchwait
preatt1:
wait 1
put SIGN OF DEFENDING
waitfor !
put SIGN OF STRIKING
waitfor !
put SIGN OF SMITING
waitfor !
put SIGN OF SWORDS
waitfor !
put SIGN OF WARDING
waitfor !
goto attack1
attack1:
put stance offe
put att wraith
match wait1 ...wait
match dead1 dies
match dead1 dead
match dead1 falls to the ground motionless
match dead1 goes still
match attack1 only type ahead
match attack1 Please wait
match lost You are
match lost What were you referring to?
match attack1 Roundtime
match attack1 stunned
match attack1 Wait
match start I could not find
matchwait
wait1:
pause .5
goto attack1
dead1:
put stance def
pause
put skin wraith
match skinned1 You skinned
match pauseskin1 ...wait
match attack1 You might want
match continue1 You can only skin creatures!
match continue1 You botched
match continue1 been skinned.
matchwait
pauseskin1:
put %weapon in my %sheath
waitfor You put a
put get tal
put stow my tal
waitfor You put a
put Get my %weapon
waitfor You remove
goto continue1
continue1:
put search wraith
goto checktre
checktre:
match gettooth tooth
match getwand wand
match getring gold ring
match getstatue small statue
match getgarnet garnet
match gettopaz topaz
match getamulet amulet
match getnugget nugget
match getsap sapphire
match getlap lapis
match getpearl pearl
match getruby ruby
match getame jade
match getivory ivory
match getopal opal
match getdiamond diamond
match getemerald emerald
match getchest chest
match getcoffer coffer
match getbox box
match getstrong strongbox
match gettrunk trunk
match aftertreasure still alive
match aftertreasure I could not find what you were referring to.
match aftertreasure a wraith
matchwait
standup:
put stand
goto start
getchest:
save chest
goto gettreasure
getcoffer:
save coffer
goto gettreasure
gettrunk:
save trunk
goto gettreasure
getbox:
save box
goto gettreasure
getstrong:
save strongbox
goto gettreasure
getemerald:
save emerald
goto gettreasure
getnugget:
save nugget
goto gettreasure
getring:
save ring
goto gettreasure
getwand:
save wand
goto gettreasure
getstatue:
save statue
goto gettreasure
getpearl:
save pearl
goto gettreasure
gettooth:
save tooth
goto gettreasure
getivory:
save ivory
goto gettreasure
getamulet:
save amulet
goto gettreasure
getsap:
save sapphire
goto gettreasure
getlap:
save lapis
goto gettreasure
getruby:
save ruby
goto gettreasure
getame:
save jade
goto gettreasure
getopal:
save opal
goto gettreasure
getdiamond:
save diamond
goto gettreasure
gettreasure:
put put %weapon in my %sheath
waitfor You put a
put get %s
match treasurefinal I could not find
match continuetre You pick up
matchwait
continuetre:
put put %s in my %container
waitfor You put
goto treasurefinal
treasurefinal:
put get %weapon from my %sheath
waitfor You remove
goto aftertreasure
aftertreasure:
pause 1
put look
match filter1 a wraith
match R%c Obvious
matchwait
skinned1:
put get tal
waitfor You pick up
put put tal in my %container
waitfor You put a
goto continue1
restorlevel:
put exp
match levelup Exp. until next lvl: -
match rest Your mind
matchwait
moverest:
move go door
move go arch
move s
move s
move s
move d
move se
move w
move w
move n
move u
move n
move ne
move n
move cli snow
put give guar 5
pause 1
move go gate
move n
move e
put put %weapon in my %sheath
waitfor You
put put %weapon2 in my harness
waitfor You
move n
move n
move n
move n
move e
move e
move e
move s
move w
move sw
move se
move go furr
put remove my cloak
waitfor You remove
put sell my cloak
waitfor Furryback takes
put wear my cloak
waitfor You
move out
move nw
move ne
move e
move n
move w
move w
move w
move s
move s
move go gem
put remove my cloak
waitfor You remove
put sell my cloak
waitfor The gemcutter takes
put wear my cloak
waitfor You
move out
move n
move n
move go bank
put deposit all
move out
move w
put kneel
goto rest
rest:
put medit
matchwait
continuehunt:
match spellup1 You feel at full magical power again.
put stand
put gird
waitfor You
move s
move s
move s
move s
move s
move go gate
pause
move s
put stance def
move cli snow
move s
move sw
move s
move d
move s
move e
move e
move nw
move u
move n
move n
move n
move go arch
move go barn
goto start
spellup1:
put prep 101
put cast leush
pause 3
put prep 103
put cast leush
pause 3
put prep 303
put cast leush
pause 3
put prep 202
put cast leush
pause 3
put prep 307
put cast leush
pause 3
put prep 313
put cast leush
pause 3
goto continuehunt
gorest:
put look
goto moverest
levelup:
put exit
logoff:
put exit