The Players Corner Archive

Home > Scripting Discussion > badly written ghoul hunter for young clerics

badly written ghoul hunter for young clerics

01:14 AMOk, I realize that this is a VERY long script.. As it stands, it only really works for clerics hunting greater ghouls under the crypt... I'm sure it could be revamped for anyone who is in voln and can bless their own weapon as well.. Just add something to auto "symb bless my %weapon" and replace the meditating command with a sit/hide thingie. I know for all you serious scripters, this is a pretty pathetic attempt at a script, but hey, it works for me, and it works GREAT with the messenger

Please let me know of any bugs or hangups you may find, and being totally ignorant of all that groovy code lingo. I probably wont understand most advice ya give me.

here it is:


#ghoul

rmcheck:
put look
match travel1b a shadowy arch
match travel1c Obvious exits: west.
match travel1d mist-shrouded portal.
match travel1e [Graveyard, Anteroom]
match travel1f Obvious exits: north.
match expcheck1 a cracked urn
match expcheck2 Obvious exits: south, east, west, down.
match poachchk Obvious exits: east, west, southeast.
match poachchk Obvious exits: north, east, west, northeast, up.
match poachchk Obvious exits: east, west, northwest, southwest.
matchwait

expcheck1:
Pause
put exp
MATCH travel1a Your mind is as clear as a bell
MATCH travel1a Your mind is fresh and clear.
MATCH travel1a Your mind is clear.
MATCH rest Your mind is muddled.
MATCH rest Your mind is becoming numbed.
MATCH rest Your mind is numbed.
MATCH rest must rest!
MATCHWAIT

expcheck2:
Pause
put exp
MATCH expcheck3 Your mind is as clear as a bell
MATCH expcheck3 Your mind is fresh and clear.
MATCH expcheck3 Your mind is clear.
MATCH expcheck3 Your mind is muddled.
MATCH expcheck3 Your mind is becoming numbed.
MATCH expcheck3 Your mind is numbed.
MATCH travel2 must rest!
MATCHWAIT

expcheck3:
put look
Match Busy Also in the room:
Match Busy Also here:
match kill greater ghoul
Match 1 Obvious paths:
Match 1 Obvious exits:
matchwait

travel1a:
put stand
move go arc
move east
put 'shadow bind my soul
move south
move go ramp
move north
goto poachchk


travel1b:
move east
put 'shadow bind my soul
move south
move go ramp
move north
goto poachchk

travel1c:
put 'shadow bind my soul
move south
move go ramp
move north
goto poachchk

travel1d:
move south
move go ramp
move north
goto poachchk

travel1e:
move go ramp
move north
goto poachchk

travel1f:
move north
goto poachchk

travel2:
move south
move go ramp
move north
move go portal
move west
move go arc
goto rest

poachchk:
put look
Match Busy Also in the room:
Match Busy Also here:
Match hunt Obvious paths:
Match hunt Obvious exits:
matchwait

Busy:
Echo
Echo *******************
Echo *******************
Echo ***Room Occupied***
Echo *******************
Echo *******************
Echo
goto travel

hunt:
put look
wait
Match kill greater ghoul
Match travel Also in the room:
Match travel Also here:
Match travel Obvious paths:
match travel Obvious exits:
matchwait

kill:
put kill ghoul
match kill wait
match kill You swing
match kill You thrust
match kill You slash
match searchghoul already dead
match hunt I could not find
matchwait
goto hunt

searchghoul:
put search ghoul
goto treasure

treasure:
pause 1
put look
match orb orb
match wand wand
match amulet amulet
match diamond diamond
match emerald emerald
match lapis lapis lazuli
match opal opal
match pearl pearl
match ruby ruby
match sapphire sapphire
match topaz topaz
match coral coral
match amethyst amethyst
match bloodstone bloodstone
match garnet garnet
match gem gem
match jasper jasper
match crystal crystal
match quartz quartz
match stone stone
match tourmaline tourmaline
match spinel spinel
match diopside diopside
match cordierite cordierite
match zircon zircon
Match hunt Obvious paths:
Match hunt Obvious exits:
matchwait

orb:
save orb
Goto GetIt

wand:
save wand
Goto GetIt

amulet:
save amulet
Goto GetIt

diamond:
save diamond
Goto GetIt

emerald:
save emerald
Goto GetIt

lapis:
save lapis
Goto GetIt

opal:
save opal
Goto GetIt

pearl:
save pearl
Goto GetIt

ruby:
save ruby
Goto GetIt

sapphire:
save sapphire
Goto GetIt

topaz:
save topaz
Goto GetIt

coral:
save coral
Goto GetIt

amethyst:
save amethyst
Goto GetIt

bloodstone:
save bloodstone
Goto GetIt

garnet:
save garnet
Goto GetIt

gem:
save gem
Goto GetIt

jasper:
save jasper
Goto GetIt

crystal:
save crystal
Goto GetIt

quartz:
save quartz
Goto GetIt

stone:
save stone
Goto GetIt

tourmaline:
save tourmaline
Goto GetIt

spinel:
save spinel
Goto GetIt

diopside:
save diopside
Goto GetIt

cordierite:
save cordierite
Goto GetIt

zircon:
save zircon
Goto GetIt

Getit:
put put my %weapon in my %sheath
waitfor You
put get %s
waitfor You
put put %s in my %container
waitfor You
put get my %weapon from my %sheath
goto treasure

travel:
pause 1
put look
match expcheck2 Obvious exits: south, east, west, down.
match 1 Obvious exits: east, west, southeast.
match 1 Obvious exits: north, east, west, northeast, up.
match 1 Obvious exits: east, west, northwest, southwest.
matchwait

1:
move east
goto poachchk

rest:
put med
exit


again, I know it's long winded, but hey, it works.. I didnt add any boxes to the treasure thingie, cause it would end up just weighing you down.

Thanks,
Fehyd

[This message has been edited by Fehyd (edited 09-08-2001).] reg