Skip to content

Commit

Permalink
Script now sees all 'hog' critters.
Browse files Browse the repository at this point in the history
Fixed Matchre Error in Ranged sections caused by the 5/21 tweak.
If Arranging says the kill can't be skinned, the script will no longer try to skin it anyway.
Corrected misdirection in COM commands that would intiate the next COM when it was not enabled.
Altered coin looting to pickup all coins before checking room. Not doing this with EZhunter because of its double match issues.

Added in a bunch of matchre's under the SEARCH label which aren't part of the existing match.
These are from an attempt to streamline the looting but I didn't liek the over all end result. I'm leaving the code in case I can use it later.
  • Loading branch information
Malific committed May 30, 2009
1 parent 1947ef0 commit 26a4045
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 22 deletions.
4 changes: 2 additions & 2 deletions EZhunter.cmd
Expand Up @@ -20516,7 +20516,7 @@ echo MONSTER1
echo
match TROLL1 troll which appears dead
match GOBLIN1 goblin which appears dead
match HOG1 musk hog which appears dead
match HOG1 hog which appears dead
match MADMAN1 crazed madman which appears dead
match GRENDEL1 grendel which appears dead
match COUGAR1 cougar which appears dead
Expand Down Expand Up @@ -25482,7 +25482,7 @@ echo MONSTER_GROUP_1
echo
match TROLL troll which appears dead
match GOBLIN goblin which appears dead
match HOG musk hog which appears dead
match HOG hog which appears dead
match MADMAN crazed madman which appears dead
match GRENDEL grendel which appears dead
match COUGAR cougar which appears dead
Expand Down
63 changes: 43 additions & 20 deletions SFhunter.cmd
Expand Up @@ -4243,7 +4243,7 @@ RANGE_RETREAT:
echo RANGE_RETREAT:
echo
matchre RANGE_%zHrange%_AIM /You cannot back away from a chance to continue your slaughter|You retreat |re already|roundtime|You sneak back/i
matchre RANGE_FIRE You Think
match RANGE_FIRE You Think
matchre RANGE_RETREAT_PAUSE /stop advancing|\.\.\.wait|type ahead|\[You're/i
match FATIGUE_STAND You must stand first.
put retreat
Expand All @@ -4257,7 +4257,7 @@ REPEAT_RETREAT:
echo RANGE_RETREAT:
echo
matchre REPEAT_PUSH /You cannot back away from a chance to continue your slaughter|You retreat |re already|roundtime|You sneak back/i
matchre RANGE_FIRE You Think
match RANGE_FIRE You Think
matchre REPEAT_RETREAT_PAUSE /stop advancing|\.\.\.wait|type ahead|\[You're/i
match FATIGUE_STAND You must stand first.
put retreat
Expand Down Expand Up @@ -9707,7 +9707,7 @@ echo
setvariable zHmonster MONSTER1B
matchre TROLL_2 /wood troll (which appears dead|\(dead\))/i
matchre GOBLIN /goblin (which appears dead|\(dead\))/i
matchre HOG /musk hog (which appears dead|\(dead\))/i
matchre HOG /hog (which appears dead|\(dead\))/i
matchre MADMAN /crazed madman (which appears dead|\(dead\))/i
matchre GRENDEL /grendel (which appears dead|\(dead\))/i
matchre COUGAR /cougar (which appears dead|\(dead\))/i
Expand Down Expand Up @@ -9963,7 +9963,7 @@ echo MONSTER1B:
echo
matchre TROLL_2 /wood troll (which appears dead|\(dead\))/i
matchre GOBLIN /goblin (which appears dead|\(dead\))/i
matchre HOG /musk hog (which appears dead|\(dead\))/i
matchre HOG /hog (which appears dead|\(dead\))/i
matchre MADMAN /crazed madman (which appears dead|\(dead\))/i
matchre GRENDEL /grendel (which appears dead|\(dead\))/i
matchre COUGAR /cougar (which appears dead|\(dead\))/i
Expand Down Expand Up @@ -11253,7 +11253,7 @@ echo
match SEARCH_NEXT not dead
match SEARCH_NEXT It's still alive
match NO_LOOT picked clean
match NO_LOOT It carried nothing of interest.
match NO_LOOT nothing of interest.
match LOOT_LOOK You search
match LOOT_LOOK roundtime
match GUARDIAN_PAUSE ...wait
Expand Down Expand Up @@ -11553,6 +11553,7 @@ goto %zHarrange

ARR_YES:
match %zHretreat you can't
match SEARCH cannot be skinned
match SKIN1B already been skinned
match SKIN1B You might want to kill it first
match SKIN1__PAUSE has already
Expand All @@ -11571,6 +11572,7 @@ SKIN1B:
echo SKIN1B:
echo
match %zHretreat You might want to kill it first
match SEARCH cannot be skinned
match SKIN_FAIL already been skinned
match SKIN1__PAUSE has already
match SKIN1__PAUSE roundtime
Expand Down Expand Up @@ -12665,14 +12667,33 @@ SEARCH:
match SEARCH_NEXT not dead
match SEARCH_NEXT It's still alive
match NO_LOOT picked clean
match NO_LOOT It carried nothing of interest.
match NO_LOOT nothing of interest.
match LOOT_LOOK You search
match LOOT_LOOK roundtime
match SEARCH_PAUSE ...wait
match SEARCH_PAUSE type ahead
match SEARCH_PAUSE roundtime
put loot %zHsearch
matchwait
goto SEARCH_BOX_%zHlootbox

SEARCH_BOX_0:
matchre LOOT_BOXES / strongbox,| strongbox\.| strongbox and | coffer,| coffer\.| coffer and | chest,| chest\.| chest and | caddy,| caddy\.| caddy and | casket,| casket\.| casket and | trunk,| trunk\.| trunk and | skippet,| skippet\.| skippet and | crate,| crate\.| crate and | box,| box\.| box and /i
SEARCH_BOX_1:
goto SEARCH_GEM_%zHlootgem

SEARCH_GEM_0:
matchre LOOT_GEMS / carnelian,| carnelian\.| carnelian and | chrysoprase,| chrysoprase\.| chrysoprase and | amber,| amber\.| amber and | kunzite,| kunzite\.| kunzite and | iolite,| iolite\.| iolite and | coral,| coral\.| coral and | ivory,| ivory\.| ivory and | spinel,| spinel\.| spinel and | onyx,| onyx\.| onyx and | garnet,| garnet\.| garnet and | chalcedony,| chalcedony\.| chalcedony and | lazuli,| lazuli\.| lazuli and | star-stone,| star-stone\.| star-stone and | sunstone,| sunstone\.| sunstone and | moonstone,| moonstone\.| moonstone and | hematite,| hematite\.| hematite and | tanzanite,| tanzanite\.| tanzanite and | turquoise,| turquoise\.| turquoise and | peridot,| peridot\.| peridot and | beryl,| beryl\.| beryl and | andalusite,| andalusite\.| andalusite and | agate,| agate\.| agate and | jade,| jade\.| jade and | citrine,| citrine\.| citrine and | aquamarine,| aquamarine\.| aquamarine and /i
#added Above gems - TY Storrmm Wyndrydor
matchre LOOT_GEMS / pearl,| pearl\.| pearl and | sapphire,| sapphire\.| sapphire and | opal,| opal\.| opal and | bloodstone,| bloodstone\.| bloodstone and | nugget,| nugget\.| nugget and | zircon,| zircon\.| zircon and | amethyst,| amethyst\.| amethyst and | quartz,| quartz\.| quartz and | jasper,| jasper\.| jasper and | bloodgem,| bloodgem\.| bloodgem and | crystal,| crystal\.| crystal and | topaz,| topaz\.| topaz and | ruby,| ruby\.| ruby and | diopside,| diopside\.| diopside and | gem,| gem\.| gem and | emerald,| emerald\.| emerald and | diamond,| diamond\.| diamond and | stone,| stone\.| stone and | stones,| stones\.| stones and /i
SEARCH_GEM_1:
goto SEARCH_COIN_%zHlootcoin

SEARCH_COIN_0:
matchre LOOT_COIN / coin,| coins,| coin\.| coin and | coins\.| coins and /i

SEARCH_COIN_1:
match LOOT_LOOK was carrying

SEARCH_NEXT_PAUSE:
pause
Expand All @@ -12685,7 +12706,7 @@ SEARCH_NEXT:
match SEARCH_NEXT2 not dead
match SEARCH_NEXT2 It's still alive
match NO_LOOT picked clean
match NO_LOOT It carried nothing of interest.
match NO_LOOT nothing of interest.
match LOOT_LOOK You search
match LOOT_LOOK roundtime
match SEARCH_NEXT_PAUSE ...wait
Expand All @@ -12705,7 +12726,7 @@ SEARCH_NEXT2:
match NO_LOOT not dead
match NO_LOOT It's still alive
match NO_LOOT picked clean
match NO_LOOT It carried nothing of interest.
match NO_LOOT nothing of interest.
match LOOT_LOOK You search
match LOOT_LOOK roundtime
match SEARCH_NEXT2_PAUSE ...wait
Expand All @@ -12725,7 +12746,7 @@ SEARCH_NEXT_NOSKIN:
match SEARCH_NOSKIN_NEXT2 not dead
match SEARCH_NOSKIN_NEXT2 It's still alive
match NO_LOOT picked clean
match NO_LOOT It carried nothing of interest.
match NO_LOOT nothing of interest.
match LOOT_LOOK You search
match LOOT_LOOK roundtime
match SEARCH_NEXT_NOSKIN_PAUSE ...wait
Expand All @@ -12745,7 +12766,7 @@ SEARCH_NEXT2_NOSKIN:
match NO_LOOT not dead
match NO_LOOT It's still alive
match NO_LOOT picked clean
match NO_LOOT It carried nothing of interest.
match NO_LOOT nothing of interest.
match LOOT_SEARCH You search
match LOOT_SEARCH roundtime
match SEARCH_NEXT_PAUSE ...wait
Expand Down Expand Up @@ -13785,13 +13806,15 @@ LOOT_STOW:
put stow %s
matchwait


LOOT_COIN_PAUSE:
pause
LOOT_COIN:
put get coin
waitfor you
put get coin
waitfor you
goto LOOTING_PAUSE
match LOOT_COIN_PAUSE ...wait
match LOOT_COIN_PAUSE type ahead
match LOOT_COIN You pick up
match LOOTING_PAUSE I could not find
put loot coin
matchwait

LOOT_LOOK_NO:
echo
Expand Down Expand Up @@ -14344,7 +14367,7 @@ COM1_PAUSE:
pause
COM1_ON:
matchre COM1_PAUSE /\.\.\.wait|type ahead/i
match COM2_PAUSE Roundtime:
match COM1_OFF Roundtime:
match COM1_OFF Encumbrance :
put %zHcom1
put encum
Expand All @@ -14356,7 +14379,7 @@ COM2_PAUSE:
pause
COM2_ON:
matchre COM2_PAUSE /\.\.\.wait|type ahead/i
match COM3_PAUSE Roundtime:
match COM2_OFF Roundtime:
match COM2_OFF Encumbrance :
put %zHcom2
put encum
Expand All @@ -14368,7 +14391,7 @@ COM3_PAUSE:
pause
COM3_ON:
matchre COM3_PAUSE /\.\.\.wait|type ahead/i
match COM4_PAUSE Roundtime:
match COM3_OFF Roundtime:
match COM3_OFF Encumbrance :
put %zHcom3
put encum
Expand All @@ -14380,7 +14403,7 @@ COM4_PAUSE:
pause
COM4_ON:
matchre COM4_PAUSE /\.\.\.wait|type ahead/i
match COM5_PAUSE Roundtime:
match COM4_OFF Roundtime:
match COM4_OFF Encumbrance :
put %zHcom4
put encum
Expand Down

0 comments on commit 26a4045

Please sign in to comment.