PDA

View Full Version : Grey orcs and stags



Dwarven Empath
10-07-2007, 06:39 AM
watch out for the clouds!




counter set 1

start:
put look
match filter1 a grey orc
match filter2 a great stag
match restorlevel Table]
match restorlevel Court]
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 .1
counter set 2
put sw
goto checkroom

R2:
pause .1
put s
counter set 3
goto checkroom

R3:
pause .1
put ne
counter set 4
goto checkroom

R4:
pause .1
put se
counter set 5
goto checkroom

R5:
pause .1
put se
counter set 6
goto checkroom

R6:
pause .1
put e
counter set 7
goto checkroom

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

R8:
pause .1
put e
counter set 9
goto checkroom

R9:
pause .1
put n
counter set 10
goto checkroom

R10:
pause .1
put w
counter set 11
goto checkroom

R11:
pause .1
put sw
counter set 12
goto checkroom

R12:
pause .1
put w
counter set 13
goto checkroom

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

R14:
pause .1
put nw
counter set 15
goto checkroom

R15:
goto checkexp


goback:
put stand
waitfor You
counter subtract
goto R%c

checkroom:
match goback You can't do that while laying down.
match start Sorry, you may only type ahead
match R%c You can't go there
match start I could not find what
match logoff V'reen
match logoff morph
match filter1 a grey orc
match filter2 a great stag
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


preatt1:
wait 1
put SIGN OF striking
waitfor !
put Sign of Smiting
waitfor !
put SIGN OF swords
waitfor !
goto attack1

preatt2:
wait 1
put SIGN OF striking
waitfor !
put Sign of Smiting
waitfor !
put SIGN OF swords
waitfor !
goto attack2


attack1:
put att orc
match wait1 ...wait
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 What were you referring to?
match attack1 Roundtime
match attack1 Wait
match start I could not find
matchwait

attack2:
put att stag
match wait2 ...wait
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 What were you referring to?
match attack2 Roundtime
match attack2 Wait
match start I could not find
matchwait


wait1:
pause .1
goto attack1

wait2:
pause .1
goto attack2


dead1:
pause 1
put skin orc
match skinned1 You skinned
match pauseskin1 ...wait
match attack1 You might want
match continue1 You botched
match continue1 You can only skin creatures!
match continue1 been skinned.
matchwait

pauseskin1:
pause 1
goto dead1

dead2:
pause 1
put skin stag
match skinned2 You skinned
match pauseskin2 ...wait
match attack2 You might want
match continue2 You botched
match continue2 You can only skin creatures!
match continue2 been skinned.
matchwait

pauseskin2:
pause 1
goto dead2


continue1:
put search orc
goto checktre

continue2:
put search stag
goto checktre

checktre:
match getzircon zircon
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 getquartz quartz
match getame amethyst
match gettou tourmaline
match getopal opal
match getdiamond diamond
match getemerald emerald
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 grey orc
match aftertreasure A great stag
matchwait

standup:
put stand
goto start

getchest:
save chest
goto gettreasure

getcoffer:
save coffer
goto gettreasure

gettrunk:
save trunk
goto gettreasure

getemerald:
save emerald
goto gettreasure

getcoral:
save coral
goto gettreasure

getring:
save ring
goto gettreasure

getfaenor:
save faenor
goto gettreasure

getzircon:
save zircon
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

getquartz:
save quartz
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 grey orc
match filter2 a great stag
match R%c Obvious
matchwait

skinned1:
put put %weapon in my %sheath
waitfor You put a
put get beard
waitfor You pick up
put put beard in my %container
waitfor You put a
put get %weapon from my %sheath
waitfor You remove
goto continue1

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


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

moverest:
move out
move e
move n
move e
move ne
move se
move se
move s
put go track
pause 1
move n
move ne
move ne
put go bridge
pause 1
move ne
move ne
put go gate
pause 1
put put %weapon in my %sheath
move n
move w
move n
move n
move n
move n
move n
move n
move e
move n
move e
move e
move e
move e
put go door
pause 1
put remove my %container
pause 1
put sell my %container
pause 1
put wear my %container
pause 1
move out
move e
move nw
put go bank
pause 1
put go arch
pause 1
put deposit all
pause 1
move out
move out
move se
move e
move s
move e
move s
move s
move s
move s
move s
move s
move w
move s
move w
move w
move w
wait 10
put medi
goto rest

rest:
pause 1000
put infuse 1
waitfor You feel at full magical power again.
goto continuehunt


continuehunt:
put stand
wait 10
move w
move w
put get %weapon from my %sheath
move w
pause 1
move go gate
move sw
move sw
move sw
move sw
move sw
move s
put prep 307
pause 1
put cast
pause 3
put prep 202
pause 1
put cast
pause 3
put go track
pause 1
move n
move nw
move nw
move sw
move w
move s
move w
put go field
pause 1
put stance advan
pause 1
goto start


gorest:
put look
goto moverest

rest:
put sign of thought
goto spellup1

spellup1:
pause 1200
goto continuehunt


levelup:
put exit

logoff:
put exit

DevonG
10-15-2007, 12:03 AM
Might I ask why you're using pause .1's 'n whatnot?

Pause still registers as 1 second.

If you're trying to make it pause just barely

use this command.

wait .2

that will help run alot more faster.

Rule of Thumb:
When pausing for RT hinderances use PAUSE
when pausing briefly to prevent flooding use WAIT # (length of time useable in decimals)

Some other things I'd thought i'd chime in that I like since i've been back...

Ready commands.

So instead of going in and setting your %weapon and %sheath variables.

I now make all my scripts use Ready and Stow Commands, SOO much faster(by writing it all out) then previous methods.

some other tips I think you'll enjoy to make writing alot quicker...

When you do your R (Room) Labels.

Try adding this in...

Adder:
counter add 1
goto R%C

R1:
save <Direction>
goto Mover

Mover:
wait .2
put %s
match poachchk <Critter1>
match poachchk2 <Critter2>
match adder obvious
matchwait

That way you're not constantly re-writing..

R1:
pause .1
counter set 2
put sw
goto checkroom

R2:
pause .1
put s
counter set 3
goto checkroom


That's just wayyy too much work and can flood alot (Guessing you use Psinet).

Also, when you do your getloot label, you should make it so that it knows what to do when you find fused items. (GM's have been known to drop these to test you if you're respondant.)

Example:
search orc
Match opal fire opal
matchwait

what happened when you searched the orc...

it had a fire opal necklace!

Then it pretty much will have you constantly relooping your script to pick up something you have nothing to match against.

I'll paste the safety loop some other time for Wizard FE if you want.

Anyhow, just a few tips for ya, if you'd like more lemme know. Been Wizard Scriptin for 6 years.

Lookin to find some old tools I used to use for editing, guess i'll post about that to make sure everyone sees what i'm lookin for.

Good work on your script! Keep it up!

Outdrsyguy1
10-15-2007, 04:41 PM
What exactly is a fused item? Is that an item with 2 possible item names like above "fire opal necklace"?

DevonG
10-15-2007, 05:01 PM
It's more like a term I just made up to explain that..

Even if you have match blue tourmaline

You may find a blue tourmaline necklace

And since wizard just matches what it finds first "blue Tourmaline"

It's going to go to

Tourmaline:
save tourmaline
goto stow

stow:
yada yada yada

And you'll either freeze, or get stuck in a loop if you already have a piece.

Therefore you got to anticipate all the possibilities and set up your own safety (Just incase you fall asleep at the keyboard... sux gettin warnings).

i'll post sample work next time.

AestheticDeath
10-15-2007, 05:23 PM
just have it look for items before gems

or make a check so that if you try to get item, and it says get what? you clear the queue and keep going