PDA

View Full Version : almost completed



Dwarven Empath
02-04-2007, 06:44 AM
I'm almost done with the black forest script. I need to input how to get there, and how to get back.

but here is the actual hunting part.


counter set 1

start:
put look
match filter1 a massive black boar
match filter2 a black forest ogre
match filter3 a black forest viper
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 s
goto checkroom

R2:
pause .5
put sw
counter set 3
goto checkroom

R3:
pause .5
put s
counter set 4
goto checkroom

R4:
pause .5
put sw
counter set 5
goto checkroom

R5:
pause .5
put e
counter set 6
goto checkroom

R6:
pause .5
put s
counter set 7
goto checkroom

R7:
pause .5
put ne
counter set 8
goto checkroom

R8:
pause .5
put ne
counter set 9
goto checkroom

R9:
pause .5
put e
counter set 10
goto checkroom

R10:
pause .5
put ne
counter set 11
goto checkroom

R11:
pause .5
put e
counter set 12
goto checkroom

R12:
pause .5
put n
counter set 13
goto checkroom

R13:
pause .5
put nw
counter set 14
goto checkroom

R14:
pause .5
put e
counter set 15
goto checkroom

R15:
pause .5
put nw
counter set 16
goto checkroom

R16:
pause .5
put sw
counter set 17
goto checkroom

R17:
pause .5
put s
counter set 18
goto checkroom

R18:
Pause .5
Put se
Counter set 19
goto checkroom

R19:
Pause .5
Put sw
Counter set 20
goto checkroom

R20:
pause .1
put w
counter set 21
goto checkroom

R21:
pause .1
put sw
counter set 22
goto checkroom

R22:
pause .1
put sw
counter set 23
goto checkroom

R23:
pause .1
put n
counter set 24
goto checkroom

R24:
pause .1
put w
counter set 25
goto checkroom

R25:
pause .1
put ne
counter set 26
goto checkroom

R26:
pause .1
put n
counter set 27
goto checkroom

R27:
pause .1
put ne
counter set 28
goto checkroom

R28:
pause .1
put n
counter set 29
goto checkroom

R29:
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 massive black boar
match filter2 a black forest ogre
match filter3 a black forest viper
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 Obvious paths:
match preatt1 Obvious exits:
matchwait

filter2:
match start You can't go there.
match R%c Also here:
match preatt2 Obvious paths:
match preatt2 Obvious exits:
matchwait

filter3:
match start You can't go there.
match R%c Also here:
match preatt3 Obvious paths:
match preatt3 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

preatt2:
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 attack2

preatt3:
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 attack3

attack1:
put attack boar
match wait1 Wait 3 sec
match dead1 dies
match dead1 dead
match dead1 motionless
match dead1 A little bit
match attack1 only type ahead
match attack1 Please wait
match lost You are
match lost Cast at what
match attack1 Roundtime
match attack1 stunned
match attack1 Cast Roundtime 3 Seconds.
match attack1 Wait
match start I could not find
matchwait

attack2:
put attack ogre
match wait2 Wait 3 sec
match dead2 dies
match dead2 dead
match dead2 motionless
match dead2 A little bit
match attack2 only type ahead
match attack2 Please wait
match lost You are
match lost Cast at what
match attack2 Roundtime
match attack2 stunned
match attack2 Cast Roundtime 3 Seconds.
match attack2 Wait
match start I could not find
matchwait

attack3:
put attack viper
match wait3 Wait 3 sec
match dead3 dies
match dead3 dead
match dead3 motionless
match dead3 The black forest viper twists and coils violently in its death throes, finally going still
match attack3 only type ahead
match attack3 Please wait
match lost You are
match lost Cast at what
match attack3 Roundtime
match attack3 stunned
match attack3 Cast Roundtime 3 Seconds.
match attack3 Wait
match start I could not find
matchwait

wait1:
pause 3
goto attack1

wait2:
pause 3
goto attack2

wait3:
pause 3
goto attack3

dead1:
pause 1
put skin boar
match skinned1 You skinned
match pauseskin1 ...wait
match attack1 You might want
match continue1 You botched
match continue1 been skinned.
matchwait

pauseskin1:
pause 1
goto dead1

dead2:
pause 1
put skin ogre
match skinned2 You skinned
match pauseskin2 ...wait
match attack2 You might want
match continue2 You botched
match continue1 What were you referring to?
match continue2 You cannot skin a black forest ogre.
match continue2 been skinned.
matchwait

pauseskin2:
pause 1
goto dead2

dead3:
pause 1
put skin viper
match skinned3 You skinned
match pauseskin3 ...wait
match attack3 You might want
match continue3 You botched
match continue3 You can only skin creatures!
match continue3 been skinned.
matchwait

pauseskin3:
pause 1
goto dead3

continue1:
put search boar
goto checktre

continue2:
put search ogre
goto checktre

continue3:
put search viper
goto checktre

checktre:
match gettopaz topaz
match getwand wand
match getring gold ring
match getfaenor faenor-bloom
match getcoral coral
match getstatue small statue
match getgarnet garnet
match gettopaz topaz
match getgem gem
match getglim glim
match getsap sapphire
match getlap lapis
match getpearl pearl
match getruby ruby
match getame amethyst
match gettou tourmaline
match getopal opal
match getdiamond diamond
match getemerald emerald
match getmoonstone moonstone
match getjacinth jacinth
match gethyacinth hyacinth
match getchest chest
match getcoffer coffer
match gettrunk trunk
match aftertreasure still alive
match aftertreasure I could not find what you were referring to.
match aftertreasure A massive black boar
match aftertreasure A black forest ogre
match aftertreasure A black forest viper
matchwait

standup:
put stand
goto start

getchest:
save chest
goto gettreasure

getcoffer:
save coffer
goto gettreasure

gettrunk:
save trunk
goto gettreasure

gethyacinth:
save hyacinth
goto gettreasure

getemerald:
save emerald
goto gettreasure

getjacinth:
save jacinth
goto gettreasure

getmoonstone:
save moonstone
goto gettreasure

getcoral:
save coral
goto gettreasure

getring:
save ring
goto gettreasure

getfaenor:
save faenor
goto gettreasure

getwand:
save wand
goto gettreasure

getstatue:
save statue
goto gettreasure

getpearl:
save pearl
goto gettreasure

getgarnet:
save garnet
goto gettreasure

gettopaz:
save topaz
goto gettreasure

getglim:
save glim
goto gettreasure

getgem:
save gem
goto gettreasure

getsap:
save sapphire
goto gettreasure

getlap:
save lapis
goto gettreasure

getruby:
save ruby
goto gettreasure

getame:
save amethyst
goto gettreasure

gettou:
save tourmaline
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 massive black boar
match filter2 a black forest ogre
match filter3 a black forest viper
match R%c Obvious
matchwait

skinned1:
put get tusk
waitfor You pick up
put put tusk in my %container
waitfor You put a
goto continue1

skinned2:
put put %weapon in my %sheath
waitfor You put a
put get skin
waitfor You pick up
put put skin in my %container
waitfor You put a
put get my %weapon
goto continue2

skinned3:
put get fang
waitfor You pick up
put put fang in my %container
waitfor You put a
goto continue3

restorlevel:
put exp
match levelup Exp. until next lvl: -
match rest Your mind
matchwait

Starts after the bridge

Razarn
02-04-2007, 08:58 AM
so if a strongbox or box is dropped the script wont pick that item up ?

StrayRogue
02-04-2007, 09:03 AM
Nope. Nor does it stance. Making it pretty...pointless unless you're down hunting significantly.

Dwarven Empath
02-04-2007, 10:23 AM
Nope I dont grab strongboxes or boxes, and No stance dancing either.

But it works, just don't go afk and you won't die

Dwarven Empath
02-04-2007, 10:26 AM
"unless you're down hunting significantly"

My rogue hunts there without any problems. Has been for about 3 levels. And probably will hunt there for another 3 levels.

StrayRogue
02-04-2007, 10:33 AM
In my eyes a good script is one you don't actually have to watch. Using this one would be too risky, in my opinion, at least without constant interaction (which makes the point of automating it pointless).

Of course this doesn't matter if you MA or get huge spell ups.

AestheticDeath
02-04-2007, 12:05 PM
Just wondering why you chose not to pick up boxs or strongboxs? I mean you have another two matches available in that treasure match table. Easy enough to put in if we wanna change it, but is kinda odd that you dont.

Dwarven Empath
02-04-2007, 01:17 PM
Just in case they drop to many boxes, I like to keep the RT down.

The Ponzzz
02-04-2007, 02:45 PM
I could only use this if I had a full spell up, in heavy armor and 3x dodge as a rogue. My LBP, 2x dodge and only 401 doesn't cut it.

Make a sniping hurling one!! Haha, or I should just do that because I'm prolly the only one sniping... :(

StrayRogue
02-04-2007, 03:03 PM
Agreed. I think I can muster (no outside spells) an offensive DS of around 250. Not enough, unfortunately.

Plus the area has lots of maneuvers and random elements: call wind, boar rushes, vipers spitting etc.

While it's an easy place to hunt, it's a hard place to script. But then, what higher level area isn't?

g++
02-05-2007, 02:19 AM
Agreed. I think I can muster (no outside spells) an offensive DS of around 250. Not enough, unfortunately.

Plus the area has lots of maneuvers and random elements: call wind, boar rushes, vipers spitting etc.

While it's an easy place to hunt, it's a hard place to script. But then, what higher level area isn't?

Agreed, not to mention if an ogre gets a shot over 20 on you your gonna go flying into the next room which would likely throw the pathing for a loop
and leave you staring into space till you died. I dont think id run this without staring at the screen especially since viper poison will kill just about anyone within minutes if its not cured. I hunted a rogue through this area with 1.5 dodge and 1.5 cm and he still got poisoned often. The script is good the area is just not really scriptable IMO I would be more likely to put a rogue in dogmatists and filter to move past dogs and hide/ambush repeatedly on hiero's and supplicants, with 2 to 2.5x hiding wearing hauberk and a decent spell up you could prolly let the guy run for quite a while, he would still prolly need maintenance inbetween hunts and die occasionally though. Also im not positive but i think you need to have a handle for stun for every routine like treasure and skinning or even a 1 round stun while your in those routines will hang the script and will spell instant death if your not attending the character.

just need
match {current routine} stunmessaging in all routines

heres a for instance routine for hiding, ambushing on a script once your encounter lets say a hierophant and a supplicant

hide:
put hide
match hide notices your attempt to hide
match attack You attempt to blend with the surroundings
matchwait

attack:
put aim neck
put target supp
put target hiero//always want to kill the spike thorner first IMO
pause 3
put stance off
put ambush
pause 6
put stance def
put loot
goto treasure or filter routine whatever
worst that happens is you get discovered and open ambush and kick back to the filter routine

I dont know just throwing ideas out there ill post a script that kind of sucks but might work for dogs too

g++
02-05-2007, 02:24 AM
Ok I wrote this for a 75th cleric mostly because i was bored and wanted to see if it would work, it kind of sucks but the pathing can be used for to hunt skull temple. Theres almost no attempt made to mitigate damage from creatures because they couldent really hurt the char it was written for but it could easily be touched up. Also if you want to kill dogs you need to change the path match in front of dog matchs to charchecks





put stance offensive
COUNTER SET 0
save look
start:
put %s
COUNTER ADD 1
match path%c disk
match path%c Obvious
match path%c a hunch-backed dogmatist.
match path%c a hunch-backed dogmatist
match path%c a hunch-backed dogmatist,
match path%c a hunch-backed dogmatist and
match charcheck a muscular supplicant,
match charcheck a muscular supplicant and
match charcheck a muscular supplicant
match charcheck an emaciated hierophant.
match charcheck an emaciated hierophant,
match charcheck an emaciated hierophant and
match charcheck an emaciated hierophant
match goon You can't go there
match stand P>
match dead DEAD>
matchwait

charcheck:
match path%c disk
match path%c Also here:
match headcheck Obvious
match stand P>
match dead DEAD>
matchwait
headcheck:
match killdir Your mind is
match path%c You must rest!
match stand P>
match dead DEAD>
put exp
matchwait

stand:
match stand You struggle
match goon You stand
put stand
matchwait
dead:
put exit
#################################

killdir:
match killdir Geez!
match goon Could not find
match goon You do not
match goon You search
match goon What were you
match goon You do not currently have a target.
match stand P>
match dead DEAD>
#put stance off
save 302
put target hiero
put target supp
put incant %s
pause 3
put loot
matchwait

goon:
COUNTER SUBTRACT 1
put stow right
save look
goto start
#################################

path1:
move s
pause 1
goto start

path2:
move s
pause 1
goto start

path3:
move s
pause 1
goto start

path4:
move se
pause 1
goto start

path5:
move se
pause 1
goto start

path6:
move se
pause 1
goto start

path7:
move s
pause 1
goto start

path8:
move s
pause 1
goto start

path9:
move se
pause 1
goto start

path10:
move e
pause 1
goto start

path11:
move e
pause 1
goto start

path12:
move e
pause 1
goto start

path13:
move e
pause 1
goto start

path14:
move e
pause 1
goto start

path15:
move ne
pause 1
goto start

path16:
move n
pause 1
goto start

path17:
move n
pause 1
goto start

path18:
move ne
pause 1
goto start

path19:
move ne
pause 1
goto start

path20:
move ne
pause 1
goto start

path21:
move n
pause 1
goto start

path22:
move n
pause 1
goto start

path23:
move n
pause 1
goto start

path24:
move nw
pause 1
goto start

path25:
move nw
pause 1
goto start

path26:
move nw
pause 1
goto start

path27:
move nw
pause 1
goto start

path28:
move w
pause 1
goto start

path29:
move w
pause 1
goto start

path30:
move w
pause 1
goto start

path31:
move w
pause 1
goto start

path32:
move w
pause 1
goto start

path33:
move sw
pause 1
goto start

path34:
move sw
pause 1
goto start

path35:
move sw
pause 1
goto start

path36:
move sw
pause 1

path37:
match backtocrack You don't have
match checkcrack I could not find
match stand P>
match dead DEAD>
put send 30 asdf
matchwait
checkcrack:
match backtocrack You must rest!
match restart Your mind is
match stand P>
put exp
matchwait

restart:
COUNTER SET 0
save look
goto start
backtocrack:
pause 1
put rem go ring
put wear go ring
put turn go ring

StrayRogue
02-05-2007, 08:37 AM
The only contention I'd have with the temple would be if you're combatting a hiero or supplicant (or multiples of both) in a room when a dogmatist comes in.

g++
02-05-2007, 11:09 AM
The script posted already avoids that, after each attack it looks if it sees a dogmatist it runs moves on

Chaotic Tempo
12-20-2007, 06:42 PM
New to PC. I think I can probably help you guys with some of that SF scripting. I tend to avoid the treasure table stuff. Stow your weapon and pop settings on to allow for loot to go straight to your hands. This lets you grab every gem, every box, etc. For my THW warrior I just quick stancedef/stow item/loot/stow right and left/get weapon. If it's a really dicey area I wait for an attack before stowing my weapon (usually I do a matchwait on "=" since every form of attack pops a calculation .. except certain maneuvers.)

Every kill I health check and encum. check.

Too heavy? Dump a chest/box/whatever and recheck encum until it's to whatever amount you want.

Poison/Bleeders/Etc -- I try to bring a suitable amount of herbs and potions to remedy the common stuff. If it's one I can't handle I just direct to /quit. I suppose you could put a flee subtext in that pops you back to where you're supposed to go.

For the knocking into another room, I'm still working on a cookie cutter coding mechanic for that, but essentially on every move command it matchwaits for either the room scroll (obvious exit/path) or for a "you can't go there". If the you can't go there comes in I direct to "where am I?" commands that check where I am, set the counter to the appropriate number for that room and I keep on trucking.

Just my two cents.