PDA

View Full Version : SH - Large Ogres/Swamp Trolls - For Swinging Wizards (Stormfront)



Lookkin
09-23-2005, 06:25 AM
My very first fully functional script. Obviously heavily influenced from Theyesman and Mini-spir's prior postings and Renian for finally getting me paste the hasting check.

Ummm..I posted both the attachment and the whole script for feedback & criticisms.

:D

Lookkin

Look:
Match Spellup [Solhaven, North Market]
Match Top Within the small circle that the
put Look
Matchwait

SpellUp:
put incant 401
waitfor you gesture
pause 3
put incant 406
waitfor you gesture
pause 3
put incant 414
waitfor you gesture
pause 3
put incant 503
waitfor you gesture
pause 3
put incant 509
waitfor you gesture
pause 3
put incant 905
ECHO ****180 more seconds***
pause 120
ECHO ****60 more seconds***
pause 60
goto Stand

Stand:
Match ToTrolls You Stand
Match ToTrolls You are already standing.
Match Stand Roundtime
put Stand
Matchwait

Prone:
Match CharCheck You Stand
Match CharCheck You are already standing.
Match Stand Roundtime
put Stand
Matchwait

ToTrolls:
put stand
Match ToTrolls ...wait
put stance def
put open my back
put get my greatsword
move n
move nw
move up
move nw
move nw
put ne
put up
put nw
move nw
move nw
move ne
move n
move n
move ne
move up
move n
move go r
move e
move se
move e
move e
move e
move e
move e
move ne
move n
move n
move ne
move ne
move ne
move ne
move ne
move n
move n
move n
move n
move ne
move ne
move ne
move ne
move ne
move n
move n
move ne
put go bri
move ne
move ne
move ne
move ne
move nw
put up
put up
put up
put up
put up
put up
put up
move nw
move n
move n
move n
move n
move w
move w
move nw
move n
put down
put go col
Goto Top

Top:
COUNTER SET 0
Save Look

Start:
put %s
COUNTER ADD 1
Match Prone P>
Match EXIT [Consolation Lounge]
match EXIT [Scripting Violation Limbo]
match EXIT [Consultation Lounge]
match EXIT [The Cell]
Match EXIT SEND [
Match EXIT DEAD>
Match CharCheck a large ogre,
Match CharCheck a large ogre and
Match CharCheck a large ogre.
Match CharCheck a swamp troll
Match CharCheck a swamp troll and
Match CharCheck a swamp troll,
Match Path%c Obvious exits:
Match Path%c Obvious paths:
Match Path%c You can't
Matchwait

CharCheck:
Match Prone P>
Match Move Also here:
Match ManaCheck Obvious exits:
Match ManaCheck Obvious paths:
Matchwait

Move:
Goto Path%c

ManaCheck:
Match ManaCheck ...wait
Match Prone P>
Match WaitAttack You don't have
Match Check506 I could not find
put send 10 asdf
Matchwait

Check506:
put spell active
match Waitattack Haste
match ReCheck >
matchwait

ReCheck:
put spell active
match Waitattack Haste
match Cast506 >
matchwait

Cast506:
ECHO **** CASTING HASTE*****
put incant 506
match Waitattack You begin to notice
match Cast506 [Spell Hindrance
matchwait

Waitattack:
Match Goon A swamp troll heads
Match Goon A swamp troll runs
Match Goon A large ogre heads
Match Goon A large ogre runs
Match KillTroll A swamp troll claws
Match KillTroll A swamp troll swings a
Match KillTroll A swamp troll tries to bite
Match KillTroll A swamp troll looks
Match KillTroll A swamp troll shifts
Match KillOgre A large ogre claws
Match KillOgre A large ogre swings
Match KillOgre A large ogre looks
Match KillOgre A large ogre shifts
matchwait

KillTroll:
Match Move You see a fairly
Match Move What were you
Match KillTroll Could not find
Match KillTroll You might want to wait
Match pause3troll ...wait
match pause3troll Roundtime changed to 3 seconds.
match pause4troll Roundtime changed to 4 seconds.
Match Goon You could not find
Match Goon You do not
Match Goon You can only skin
Match Loot You skinned
Match Loot You botched
Match Cast506 returns to normal
put look other troll
put Stance off
put att troll
pause 3
put stance def
put skin troll
matchwait

pause3troll:
pause 3
goto KillTroll

pause4troll:
pause 4
goto KillTroll

KillOgre:
Match Goon You see a fairly
Match Goon A large ogre runs
Match Move What were you
Match KillOgre Could not find
Match KillOgre You might want to wait until
Match pause3ogre ...wait
match pause3ogre Roundtime changed to 3 seconds.
match pause4ogre Roundtime changed to 4 seconds.
Match Goon You could not find
Match Goon You can only skin
Match Goon You do not
Match Loot You skinned
Match Loot You botched
Match Cast506 returns to normal
put look other ogre
put Stance off
put att ogre
pause 3
put stance def
put skin ogre
matchwait

pause3ogre:
pause 3
goto KillOgre

pause4ogre:
pause 4
goto KillOgre

Goon:
put stance def
COUNTER SUBTRACT 1
Save Look
Goto Start

Path1:
put sign of staunching
put sign of smiting
put sign of striking
put sign of swords
put sign of defending
put sign of warding
Save W
Goto Start

Path5:
Path6:
Save W
Goto Start

Path2:
Path4:
Save NW
Goto Start

Path3:
Path7:
Path8:
Path9:
Path10:
Path11:
Path12:
Path15:
Path16:
Save N
Goto Start

Path13:
Path19:
Path20:
Path21:
Path22:
Path23:
Path24:
Path25:
Path26:
Path27:
Path28:
Path29:
Path30:
Save E
Goto Start

Path14:
put sign of smiting
put sign of striking
put sign of swords
put sign of defending
put sign of warding
save "go road"
Goto Start

Path17:
Path18:
Save NE
Goto Start

Path31:
Match Prone P>
Match ToRestW You must rest!
Match ReCheckManaW Your mind is
put sign of staunching
put sign of smiting
put sign of striking
put sign of swords
put sign of defending
put sign of warding
put Exp
Matchwait

ReCheckManaW:
Match Stand P>
Match ToRestW You don't have
Match ReStartW I could not find
put send 14 asdf
Matchwait

ToRestW:
ECHO ***NOT Enough MANA, going back to North Market***
move w
move w
move w
move w
move w
move w
move w
move w
move w
move w
move w
move w
move sw
move sw
move s
move s
put go road
move w
move s
move s
move s
move s
move s
move s
move e
move e
move se
move s
move se
move e
put go col
put up
put s
put se
put e
put e
put s
put s
put s
put s
put se
put down
put down
put down
put down
put down
put down
put down
put se
put sw
put sw
put sw
put go bri
put sw
put sw
put s
put s
put sw
put sw
put sw
put sw
put sw
put s
put s
put s
put s
put sw
put sw
put sw
put sw
put sw
put s
put s
put sw
put w
put w
put w
put w
put w
put nw
put w
put go r
put s
put down
put sw
put s
put s
put sw
put go bri
put up
put se
put se
put se
put se
put s
put ne
put go door
put rem my back
put appr my back
put sell my back
put wear my back
put out
put s
put s
put e
put go door
put deposit all
put out
put w
put nw
put sit
put put great in my back
put close my back
put stance off
ECHO ****8 more minutes****
Pause 120
ECHO ****6 more minutes****
Pause 120
ECHO ****4 more minutes****
pause 120
ECHO ****2 more minutes****
pause 120
put incant 401
waitfor you gesture
pause 3
put incant 406
waitfor you gesture
pause 3
put incant 414
waitfor you gesture
pause 3
put incant 503
waitfor you gesture
pause 3
put incant 509
waitfor you gesture
pause 3
put incant 905
ECHO ***180 second mana wait***
pause 120
ECHO ****60 more seconds****
pause 60
goto Stand

ReStartW:
ECHO ****Heading WEST***
COUNTER SET 31
Save Look
Goto Start

Path32:
Path33:
Path34:
Path35:
Path36:
Path37:
Path38:
Path39:
Path40:
Path41:
Path42:
Path43:
Path49:
Save W
Goto Start

Path44:
Path45:
Save SW
Goto Start

Path46:
Path47:
Path50:
Path51:
Path52:
Path53:
Path54:
Path55:
Path59:
Save S
Goto Start

Path48:
put sign of staunching
put sign of smiting
put sign of striking
put sign of swords
put sign of defending
put sign of warding
save "go road"
Goto Start

Path56:
Path57:
Path61:
Save E
Goto Start

Path58:
Path60:
Save SE
Goto Start

Path62:
Match Stand P>
Match ToRestE You must rest!
Match ReCheckManaE Your mind is
put Exp
Matchwait

ReCheckManaE:
Match Prone P>
Match ToRestE You don't have
Match ReStartE I could not find
put send 24 asdf
Matchwait

ReStartE:
COUNTER SET 0
Save Look
Goto Start

ToRestE:
ECHO *****Back to town****
put go col
put up
put s
put se
put e
put e
put s
put s
put s
put s
put se
put down
put down
put down
put down
put down
put down
put down
put se
put sw
put sw
put sw
put go bri
put sw
put sw
put s
put s
put sw
put sw
put sw
put sw
put sw
put s
put s
put s
put s
put sw
put sw
put sw
put sw
put sw
put s
put s
put sw
put w
put w
put w
put w
put w
put nw
put w
put go r
put s
put down
put sw
put s
put s
put sw
put go bri
put up
put se
put se
put se
put se
put s
put ne
put go door
put rem my back
put appr my back
put sell my back
put wear my back
put out
put s
put s
put e
put go door
put deposit all
put out
put w
put nw
put sit
put put great in my back
put close my back
put stance off
pause 120
pause 120
pause 120
put sign of staunching
put incant 401
waitfor you gesture
pause 3
put incant 406
waitfor you gesture
pause 3
put incant 414
waitfor you gesture
pause 3
put incant 503
waitfor you gesture
pause 3
put incant 509
waitfor you gesture
pause 3
put incant 905
pause 120
pause 60
goto Stand

Loot:
pause 1
put loot
match Goon value
match Goon decays
match Goon What were you referring to?
###Match strong strong
###Match box box
###Match coffer coffer
###Match chest chest
match amber amber
match amethyst amethyst
match coral coral
match diamond diamond
match emerald emerald
match faenor faenor-bloom
match garnet garnet
match gem gem
match glimaerstone glimaerstone
match jacinth jacinth
match moonstone moonstone
match onyx onyx
match opal opal
match pearl pearl
match ring ring
match ruby ruby
match sapphire sapphire
match spinel spinel
match starstone starstone
match statue statue
match stone stone
match topaz topaz
match tour tour
match turquoise turquoise
match wand wand
match Goon value
match Goon decays
matchwait

strong:
save strong
goto getgem
box:
save box
goto getgem
coffer:
save coffer
goto getgem
chest:
save chest
goto getgem
wand:
save wand
goto getgem
flask:
save flask
goto getgem
ring:
save ring
goto getgem
statue:
save statue
goto getgem
amber:
save amber
goto getgem
tour:
save tour
goto getgem
diamond:
save diamond
goto getgem
faenor:
save faenor
goto getgem
starstone:
save starstone
goto getgem
pearl:
save pearl
goto getgem
glimaerstone:
save glimaerstone
goto getgem
opal:
save opal
goto getgem
emerald:
save emerald
goto getgem
onyx:
save onyx
goto getgem
ruby:
save ruby
goto getgem
sapphire:
save sapphire
goto getgem
garnet:
save garnet
goto getgem
spinel:
save spinel
goto getgem
moonstone:
save moonstone
goto getgem
gem:
save gem
goto getgem
coral:
save coral
goto getgem
amethyst:
save amethyst
goto getgem
topaz:
save topaz
goto getgem
turquoise:
save turquoise
goto getgem
jacinth:
save jacinth
goto getgem
stone:
save stone
goto getgem
opal:
save opal
goto getgem
heliodor:
save heliodor
goto getgem
stone:
save stone
goto getgem
crystal:
save crystal
goto getgem

getgem:
put get %s
match getgem2 You pick up
match Goon Get what?
matchwait

getgem2:
put put my %s in my back
match gemcloak fit
match Goon You put
matchwait

gemcloak:
put put my %s in my cloak
waitfor You
goto Goon

EXIT:
put exit

Dural
01-05-2007, 08:08 PM
I tried this but couldn't get it to work. I think it has something to do with the prompt. Any ideas?

AestheticDeath
01-05-2007, 08:47 PM
Does a match work without a matchwait?

Shaelun
01-07-2007, 12:26 AM
When you use a line like this:


MATCH FirstLabel OMG, goto FirstLabel right away!

... what you're doing is "setting up" what's going to happen when you use the MATCHWAIT command. Every time you use a MATCH command, you're adding another "if the line is this, jump there..." condition; everytime you use MATCHWAIT, the list becomes empty again.

So no. Using MATCH without ever using MATCHWAIT does nothing except setup something you never use.

wood1559
03-13-2008, 08:22 PM
anyone know how to set this up for a warrior?