The Players Corner Archive

Script for hunting the Solhaven werebears... need a tweak

This is my latest script for hunting the caves nears Sol... I am still modifying it but there is something I am having problems with. Not sure what is wrong, but every time I start the script (start it just inside the entrance to the cave) It will move to the next room and hang until I use LOOK to make it continue... once it gets going after that first move command though it continues on as it supposed to until it finds a werebear without poaching.

wbear.cmd

Save 0
Put Get %weapon
Put rem %shield
wait
Put Stance off

Goto Room%s

PersonCheck:
Put Look
Match Room%s Also here:
Match Room%s Also in the room:
Match CreatureCheck Obvious exits:
Match CreatureCheck Obvious paths:
Matchwait

Room0:

Save 1
Move NE
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room1:

Save 2
Move N
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room2:

Save 3
Move NW
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room3:

Save 3a
Move SE
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room3a:

Save 4
Move W
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room4:

Save 5
Move W
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room5:

Save 6
Move S
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room6:

Save 7
Move S
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room7:

Save 8
Move E
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room8:

Save 9
Move NE
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room9:

Save 10
Move D
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room10:

save 11
Move SE
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room11:

Save 12
Move NE
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room12:

Save 13
Move N
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room13:

Save 14
Move E
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room14:

Save 15
Move W
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room15:

save 16
Move W
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait


Room16:

Save 17
Move SW
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait

Room17:

Save 18
Move NW
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait

Room18:

Save 19
Move U
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait

Room19:

Save 20
Move NW
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait

Room20:

Save 0
Move SW
Match PersonCheck a werebear
Match Room%s Obvious
Matchwait

CreatureCheck:

Wait
Put look werebear
Match Room%s I could not find
Match AttackRoutine It is your typical werebear.
MatchWait

AttackRoutine:

Put Attack werebear
Match Dead is already dead.
Match Dead You hear a sound like a weeping child
Match Dead A werebear growls one last time,
Match Bless You hack away
Match AttackRoutine Roundtime:
Match AttackRoutine ...wait
Match CreatureCheck I could not find
Matchwait

Bless:

Echo ******** You need a bless before continuing this hunt! ********
Exit

Dead:

Put Put %weapon in %sheath
Put Get %weapon2
Wait
Put Skin werebear
Match Botch paw is ruined
Match Search You skinned
Match AttackRoutine You might want to wait
Match CreatureCheck I could not find
Matchwait

Botch:

Put mutter

Search:

Put Put %weapon2 in %level
Put Get %weapon
wait
Put Search werebear
Wait
Echo *** You have 5 seconds to pause this script [SHIFT+ESC] to pick up your items... ***
Pause 5
Goto CreatureCheck

------------------
Caels Onae'Rae
==============
"Light the path through darkness with the light of friendship." reg

Counter ring a bell? reg
{Come back when manners have been sufficiently learned}

{'lood }

[This message has been edited by kelood (edited 03-05-2001).] reg

Oh big broooooootheeeeerrrrr!

While you are here rescuing my virgin ears do you have any suggestions for me?

*flings himself at 'lood and bounces off gigling madly*

------------------
Caels Onae'Rae
==============
"Light the path through darkness with the light of friendship." reg

plz.

[This message has been edited by Pirub9 (edited 03-06-2001).] reg

Okay reposting this without taking up too much space in here... making many alterations and what not to this script to see why it is not working right... any ideas?

#Hunt the werebears of Solhaven caves
#By Caels Onae'Rae

#Variables used in this script are as follows:
# %weapon %shield %sheath(for main weapon)
# %weapon2 %container %level(for skinning weapon)
# {%user0 thru %user9}(Items to pick up)

Counter Set 0
Put Get my %weapon
Put Rem my %shield
Wait

SPCheck:
Put Look
Match Room0 Light slants in the opening from outside,
Match Room1 Moss grows on the walls of the cave,
Match Room2 Faint skittering sounds come from just beyond the edge of the torchlight,
Match Room3 This particular tunnel appears to be a dead end,
Match Room5 As you travel deeper into the caves,
Match Room6 There is definitely an odd smell in this corner of the caves,
Match Room7 The unrelenting drip-drip-drip of the water
Match Room8 The floor of the cave is very slick with
Match Room9 The high-pitched squeak of bats comes from further inside the cave,
Match Room10 Eerie sounds echo from further into the cave,
Match Room11 The distant sound of rushing water reminds you
Match Room12 The damp air grows distinctly colder as you descend into the caves.
Match Room13 The faint sound of sobbing seems to echo from all directions
Match Room14 All sound seems to coalesce here,
Match Room15 A small fire burns here, illuminating the room.
Match WrongPlace Obvious
Matchwait

Room0:
Counter Set 0
Counter Add
Put NE
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck1 Obvious exits:
Match BearCheck1 Obvious paths:
Matchwait

Room1:
Counter Set 1
Counter Add
Put N
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room2:
Counter Set 2
Counter Add
Put NW
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room3:
Counter Set 3
Counter Add
Put SE
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck2 Obvious exits:
Match BearCheck2 Obvious paths:
Matchwait

Room4:
Counter Add
Put W
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room5:
Counter Set 5
Counter Add
Put W
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room6:
Counter Set 6
Counter Add
Put S
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room7:
Counter Set 7
Counter Add
Put S
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room8:
Counter Set 8
Counter Add
Put E
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room9:
Counter Set 9
Counter Add
Put NE
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck4 Obvious exits:
Match BearCheck4 Obvious paths:
Matchwait

Room10:
Counter Set 10
Counter Add
Put D
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room11:
Counter Set 11
Counter Add
Put SE
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room12:
Counter Set 12
Counter Add
Put NE
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck2 Obvious exits:
Match BearCheck2 Obvious paths:
Matchwait

Room13:
Counter Set 13
Counter Add
Put N
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room14:
Counter set 14
Counter Add
Put E
Match Room%c Also here:
atch Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room15:
Counter Set 15
Counter Add
Put W
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck1 Obvious exits:
Match BearCheck1 Obvious paths:
Matchwait

Room16:
Counter Add
Put S
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room17:
Counter Add
Put SW
atch Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room18:
Counter Add
Put NW
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck4 Obvious exits:
Match BearCheck4 Obvious paths:
Matchwait

Room19:
Counter Add
Put U
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck3 Obvious exits:
Match BearCheck3 Obvious paths:
Matchwait

Room20:
Counter Add
Put NW
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck2 Obvious exits:
Match BearCheck2 Obvious paths:
Matchwait

Room21:
Counter Set 0
Put SW
Match Room%c Also here:
Match Room%c Also in the room:
Match BearCheck1 Obvious exits:
Match BearCheck1 Obvious paths:
Matchwait

BearCheck1:
Put Glance werebear
Match Attack1 You glance
Match Room%c I could not find
Matchwait

BearCheck2:
Put Grin werebear
Match Attack2 You grin
Match Room%c I could not find
Matchwait

BearCheck3:
Put Look werebear
Match Attack3 your typical
Match Room%c I could not find
Matchwait

BearCheck4:
Put Roar werebear
Match Attack4 You roar at
Match Room%c You roar.
Matchwait

AtkRoutine:
Put kill werebear
Match Dead You hear a sound like a weeping child
Match Dead growls one last time
Match Bless You hack away
Match Room%c I could not find
Match AtkRoutine Roundtime:
Matchwait

Attack1:
Put Recite In the name of Voln,; I come to free you.;May Lorminstra find mercy;Upon your immortal soul.
waitfor You recite
Put kill werebear
Match Dead You hear a sound like a weeping child
Match Dead growls one last time
Match Bless You hack away
Match Room%c I could not find
Match AtkRoutine Roundtime:
Matchwait

Attack2:
Put smile at the werebear with a dark gleam in his eye and says, "Your soul is unpure... I shall purge it from your decaying corpse."
Waitfor Caels smiles
Put kill werebear
Match Dead You hear a sound like a weeping child
Match Dead growls one last time
Match Bless You hack away
Match Room%c I could not find
Match AtkRoutine Roundtime:
Matchwait

Attack3:
Put smile gently as he gestures at the werebear. Slowly, a faint light arcs between the two as Caels attempts to draw the spirit from the werebear's body.
Put 'With each strike, I shall draw further upon this spirit until the last strike sets it free." He utters a few arcane runes and gestures at the werebear before saying, "In death, your soul will find rest.
waitfor You say
Put kill werebear
Match Dead You hear a sound like a weeping child
Match Dead growls one last time
Match Bless You hack away
Match Room%c I could not find
Match AtkRoutine Roundtime:
Matchwait

Attack4:
Put 'You will die!
Put kill werebear
Match Dead You hear a sound like a weeping child
Match Dead growls one last time
Match Bless You hack away
Match Room%c I could not find
Match AtkRoutine Roundtime:
Matchwait

Bless:
Put mutter
Put "I lost my bless...
wait
Echo *** You must have a bless upon your %weapon to hunt here ***
Exit

Dead:
Put Put %weapon in %sheath
Put Get %weapon2
wait
Put Skin werebear
Put Search werebear
wait
Put %weapon2 in %level

ItemCheck:
Put Look
Match Get0 %user0
Match Get1 %user1
Match Get2 %user2
Match Get3 %user3
Match Get4 %user4
Match Get5 %user5
Match Get6 %user6
Match Get7 %user7
Match Get8 %user8
Match Get9 %user9
Match BearCheck1 Obvious
Matchwait

Get0:
Put Get %user0
Put Put %user0 in %container
Goto ItemCheck

Get1:
Put Get %user1
Put Put %user1 in %container
Goto ItemCheck

Get2:
Put Get %user2
Put Put %user2 in %container
Goto ItemCheck

Get3:
Put Get %user3
Put Put %user3 in %container
Goto ItemCheck

Get4:
Put Get %user4
Put Put %user4 in %container
Goto ItemCheck

Get5:
Put Get %user5
Put Put %user5 in %container
Goto ItemCheck

Get6:
Put Get %user6
Put Put %user6 in %container
Goto ItemCheck

Get7:
Put Get %user7
Put Put %user7 in %container
Goto ItemCheck

Get8:
Put Get %user8
Put Put %user8 in %container
Goto ItemCheck

Get9:
Put Get %user9
Put Put %user9 in %container
Goto ItemCheck

WrongPlace:
Echo *** But this is nae the werebear caves near Solhaven! ***

------------------
Caels Onae'Rae
==============
"Light the path through darkness with the light of friendship."

[This message has been edited by Caels (edited 03-06-2001).] reg