PDA

View Full Version : Pookas: Smart cone script and 906 bolt script.



J-Tech
01-15-2004, 11:10 AM
I made these two scripts while i was waiting for my boss to leave work so i could get into gemstone, i hope they work for what you need or somethin....

P.S. - The smart part of the script is based specificaly for pookas since that is where i hunt, same goes with the 906 Bolt script.

P.S.S. Also the scripts go back to an advance stance after casting the spell because thats how i hunt, if you need it to goto a different stance you know how to edit it i'm sure...


Smart cone script (also e-waves before cone):

#E-Wave + Cone - Pooka hunting Specific

410Exec:
put prep 410
goto 410Prep
exit

410Prep:
Match 410Cast Your spell is ready.
Match FearWait1 You don't seem to be able to move to do that.
Match StunWait1 You are still stunned.
Match SpellWait1 sec.
Match RTWait1 ...wait
Matchwait
exit

410Cast:
put cast
waitfor You gesture.
pause 2
goto 518Exec
exit

FearWait1:
pause 1
goto 410Exec
exit

StunWait1:
pause .5
goto 410Exec
exit

SpellWait1:
pause .5
goto 410Exec
exit

RTWait1:
pause 1
goto 410Exec
exit



518Exec:
put prep 518
goto 518Prep
exit

518Prep:
Match 518Cast Your spell is ready.
Match FearWait2 You don't seem to be able to move to do that.
Match StunWait2 You are still stunned.
Match SpellWait2 sec.
Match RTWait2 ...wait
Matchwait
exit

518Cast:
put stance off
put cast
waitfor You gesture.
put stance adv
exit

FearWait2:
pause 1
goto 410Exec
exit

StunWait2:
pause .5
goto 410Exec
exit

SpellWait2:
pause .5
goto 410Exec
exit

RTWait2:
pause 1
goto 410Exec
exit




Smart 906 Bolt script, based specificaly for pookas:

#Pooka Attack Script - Profession: Wizard

Initiate:
put prep 906
goto 906Prep
exit

906Prep:
Match 906Cast Your spell is ready.
Match FearWait You don't seem to be able to move to do that.
Match StunWait You are still stunned.
Match SpellWait sec.
Match RTWait ...wait
Matchwait
exit

906Cast:
put stance off
put cast at pooka
Match TargetLoss Cast at what?
Match End You gesture at a ghostly pooka.
Matchwait
exit

FearWait:
pause 1
goto Initiate
exit

StunWait:
pause .5
goto Initiate
exit

SpellWait:
pause .5
goto Initiate
exit

RTWait:
pause 1
goto Initiate
exit

TargetLoss:
put stance adv
echo *************************************
echo You target has evaded you
echo When target is located enter:
echo "1"
echo To reinitiate attack sequence.
echo *************************************
waitfor 1
goto 906Cast
exit

End:
put search pooka
put stance adv
exit


-John

[Edited on 1-15-2004 by J-Tech]

Parkbandit
01-15-2004, 11:16 AM
I never understood why folks make scripts like this. Isn't it easier to simply bind Prep 906 \r cast at pooka \r to the F1 key?

I don't get it.

J-Tech
01-15-2004, 11:43 AM
because i can only play at work, so i cant pay much attention to the game, so if i use a macro to hit prep 906\r cast at pooka\r and i'm in roundtime or something else i may not notice, so if i have a script that works til it hits it i'm all good then...you know the funny thing is, i execute my scripts through macros. LOL

-John

Drew2
01-15-2004, 01:28 PM
Actually I had 2 scripts I used when I played. Cast and Chan. It looked something like this:

.cast 111 glac

You prepare Fire Spirit.
You are now in Offensive Stance.
You cast Fire Spirit at the minor glacei.
Glacei gets owie.
You are now in guarded stance.
Script ended.

Or...

.chan 1106 corpse

You prepare Bone Shatter.
You are now in Offensive stance.
You channel at a frozen corpse.
Corpse go boom.
Wait 3 sec.
You are now in Defensive stance.
The end.

Much easier than macros, I think. Not only because it does it all in sequence for you, but you can watch and respond to any surprises easier.

Jonty
01-15-2004, 02:18 PM
TIP:
For RT problems in scripts, just do something like this:


1st:
save 1st
match blah something happens
match wait ...wait
put do something
matchWait

2nd:
save 2nd
match blahBlah something else happens
match wait ...wait
put do something else
matchWait

wait:
wait
goto %2


This way there is less code because all the sections that you have the wait error match go to the same section and I just hate pauses.

Anebriated
01-15-2004, 02:19 PM
a pause 1 will basically pause the script until the rt is up. Has always worked for me in the past. I could post my sorcerer pooka hunting script but i havent fully debugged it yet...

Jonty
01-15-2004, 02:20 PM
Oh and you can combine the Casting roundtime error section with the RT sections by matching to the word "wait" alone, instead of "...wait".

PS The word exit after every section that ends woth either a goto statement or matchWait is pointless.

[Edited on 1-15-2004 by Jonty]

Anebriated
01-15-2004, 02:21 PM
FearWait:
pause 1
goto Initiate
exit

StunWait:
pause .5
goto Initiate
exit

SpellWait:
pause .5
goto Initiate
exit

RTWait:
pause 1
goto Initiate
exit


if you really wanted to save space all of these could be combined

Jonty
01-15-2004, 02:23 PM
Originally posted by Elrodin
a pause 1 will basically pause the script until the rt is up. Has always worked for me in the past. I could post my sorcerer pooka hunting script but i havent fully debugged it yet...

Yes, I know what pauses do. I hate them; I don't use them unless it's neseccary. I'd rather use the wait command.

Jonty
01-15-2004, 02:25 PM
Originally posted by Elrodin
if you really wanted to save space all of these could be combined

Hehe, yup.

Anebriated
01-15-2004, 02:27 PM
a wait would work here IF it was the 'fear stun' when you are out of the stun it says 'the feeling of depression leaves you'. if you did a waitfor <quote> then it could save a bit of time running the code, other than that you have to be very precise with waits. Ill try to debug my code quickly so i can put it up here.

Jonty
01-15-2004, 02:32 PM
Here's an example of why I'd rather use wait than pause for RT. Say for some reas a script gets ahead of it's self, and you get a ...wait 7 seconds. The script actually waits on that message, then goes back to the original section and waits out the rest of the RT normally. If you get the ...wait 1 seconds. message. it will repeatedly go back to the section untill the command goes through. So it won't have to wait a whole second. But it won't go nuts repeating the command like crazy giving teh type ahead error.

Jonty
01-15-2004, 02:33 PM
Originally posted by Elrodin
a wait would work here IF it was the 'fear stun' when you are out of the stun it says 'the feeling of depression leaves you'. if you did a waitfor <quote> then it could save a bit of time running the code, other than that you have to be very precise with waits. Ill try to debug my code quickly so i can put it up here.

Eh? Did I say anything about using a wait for the fear or stunned? Nope. I'd use a pause for that.

Jonty
01-15-2004, 02:37 PM
Oh and BTW, a wait would definitely work for the stun and fear part in the same way he has his set to pause for .5 seconds. It would go back to the prep section repeatedly untill the message You spell is ready. apprears. The wait would just slow it down to prevent the type ahead error.

The reason I'd use pause instead is because I'd wait more than just 1 second to create less screen roll. A stun usually lasts 5 seconds per round.

[Edited on 1-15-2004 by Jonty]

Anebriated
01-15-2004, 02:38 PM
I was just giving an example of the only place in that script that i would have used a wait. While i see your point on the 'wait' command, the pause works fine for me. Never had the problem of it going berserk. However my script was too fast so i just added in a pause(or wait, cant remember) .5 to slow it down.

Anebriated
01-15-2004, 02:40 PM
Here is my pooka hunter script. I attached it at the end so you can download it if you want, or just copy and paste. whichever floats your boat.


#Pooka Hunter
#Designed by Kyrthos

goto Spellup3

Huntingprepstart:
goto Spellup%C

Spellup3:
counter set 1
put prep 414
waitfor your
put cast
pause 4
put prep 406
waitfor your
put cast
pause 4
put prep 401
waitfor your
put cast
pause 4
put prep 107
waitfor your
put cast
pause 4
put prep 102
waitfor your
put cast
pause 4
put prep 101
waitfor your
put cast
pause 4
put prep 107
waitfor your
put cast
pause 4
put prep 102
waitfor your
put cast
pause 4
put prep 101
waitfor your
put cast
pause 4
put prep 712
waitfor your
put cast
MATCH Spellup2 You feel at full magical power again.
MATCHWAIT

Huntingprepstart:
goto Spellup%C

Spellup1:
goto Spellup2

Spellup2:
put prep 425
waitfor your
put cast
pause 4
put prep 103
waitfor your
put cast
pause 4
put get burnt scroll from my cloak
waitfor You remove a burnt scroll
put invoke 202
waitfor You raise the burnt scroll
put cast
pause 4
put put scroll in my cloak
put get smeared scroll from my cloak
waitfor You remove a smeared scroll
put invoke 601
waitfor You raise the smeared scroll
put cast
put put scrol in my cloak
waitfor You feel at full magical power again.
goto hunttravel

hunttravel:
put unsheathe
standing:
pause 1
put stand
MATCh stand1 You are already standing.
MATCh stand2 You stand back up.
MATCh stand2 stand up
MATCh stand3 You struggle, but fail to stand.
MATChWAIT

stand1:
put stance off
put look
match travelto [A Dark Crevice]
matchwait
stand2:
pause 1
goto stand1
stand2a:
pause 5
goto stand1
stand3:
waitfor Roundtime:
pause 2
goto standing

travelto:
move up
move nw
move w
move sw
put climb ramp
put stance offensive
goto huntingprep

huntingprep:
put stance offensive
pause .5
put sign of warding
pause .5
put sign of defending
pause .5
put sign of shields
pause .5
put look
save 1
goto R1

R1:
save 2
put w
goto checkroom

R2:
save 3
put n
goto checkroom

R3:
save 4
put s
goto checkroom

R4:
save 5
put w
goto checkroom

R5:
save 6
put s
goto checkroom

R6:
save 7
put n
goto checkroom

R7:
save 8
put w
goto checkroom

R8:
save 9
put n
goto checkroom

R9:
save 10
put s
goto checkroom

R10:
save 11
put w
goto checkroom

R11:
save 12
put w
goto checkroom

R12:
save 13
put nw
goto checkroom

R13:
save 14
put nw
goto checkroom

R14:
save 15
put sw
goto checkroom

R15:
save 16
put sw
goto checkroom

R16:
save 17
put se
goto checkroom

R17:
save 18
put se
goto checkroom

R18:
save 19
put ne
goto checkroom

R19:
save 20
put ne
goto checkroom

R20:
save 21
put e
goto checkroom

R21:
save 22
put e
goto checkroom

R22:
save 23
put n
goto checkroom

R23:
save 24
put s
goto checkroom

R24:
save 25
put e
goto checkroom

R25:
save 26
put s
goto checkroom

R26:
save 27
put n
goto checkroom

R27:
save 28
put e
goto checkroom

R28:
save 29
put e
goto checkroom

R29:
goto checkexp


checkexp:
put Exp
MATCH r1 Your mind is as clear as a bell
MATCH r1 Your mind is fresh and clear.
MATCH r1 Your mind is clear.
MATCH r1 Your mind is muddled.
MATCH r1 Your mind is becoming numbed.
MATCH r1 Your mind is numbed.
save 1
put look
MATCH needtorest must rest!
matchwait

symbolcast:
pause 1
put sign of warding
pause .5
put sign of defending
pause .5
put sign of shield
pause .5
goto checkexp

ssm:
pause .5
put stand
waitfor you stand
put look
goto checkroom

checkroom:
pause .5
match relook A ghostly pooka just arrived.
match critter a ghostly pooka
match ssm You can't do that while laying down
match R%S Obvious paths:
match R%S Obvious exits:
matchwait

critter:
match R%s Also here:
match ssm You can't do that while laying down
match attcritter Obvious paths:
match attcritter Obvious exits:
matchwait

attcritter:
put prep 702
pause .5
put channel pooka
match attcritter1 ...wait
match feared You don't seem to be able
match stun You are still stunned
match deadcritter A little bit late for that don't you think
match deadcritter But it is dead!
match ssm You can't do that while laying down
match deadcritter The ghostly pooka falls to the ground motionless.
match attcritter1 only type ahead
match attcritter1 Please wait
match attcritter1 Roundtime
match attcritter1 Wait
match attackwhat I could not find
matchwait

stun:
pause 5
goto attcritter

feared:
pause 5
goto attcritter

relook:
pause 1
put look
goto checkroom

attcritter1:
pause 1
goto attcritter

attackwhat:
put look
goto checkroom

waitcritter:
pause .5
goto attcritter

deadcritter:
pause 1
put stance offensive
waitfor you
put loot
match nothing A ghostly pooka fades away as if it were never there.
match ruby ruby
match diamond diamond
match emerald emerald
match scroll scroll
match pearl pearl
match parchment parchment
match paper paper
match papyrus papyrus
match ring gold ring
match orb orb
match crystal crystal amulet
match statue statue
matchwait

nothing:
pause 1
put look
goto checkroom

ruby:
put get ruby
waitfor you
put put ruby in my %container
waitfor you
put look
goto checkroom

diamond:
put get diamond
waitfor you
put put diamond in my %container
waitfor you
put look
goto checkroom

emerald:
put get emerald
waitfor you
put put emerald in my %container
waitfor you
put look
goto checkroom

scroll:
put get scroll
waitfor you
put put scroll in my %container
waitfor you
put look
goto checkroom

pearl:
put get pearl
waitfor you
put put pearl in my %container
waitfor you
put look
goto checkroom

parchment:
put get parchment
waitfor you
put put parchment in my %container
waitfor you
put look
goto checkroom

paper:
put get paper
waitfor you
put put paper in my %container
waitfor you
put look
goto checkroom

papyrus:
put get papyrus
waitfor you
put put papyrus in my %container
waitfor you
put look
goto checkroom

ring:
put get ring
waitfor you
put put ring in my %container
waitfor you
put look
goto checkroom

crystal:
put get amulet
waitfor you
put put amulet in my %container
waitfor you
put look
goto checkroom

orb:
put get orb
waitfor you
put put orb in my %container
waitfor you
put look
goto checkroom

statue:
put get statue
waitfor you
put put statue in my %container
waitfor you
put look
goto checkroom


needtorest:
put climb ramp
move ne
move e
move se
put go crevice
goto resting

resting:
pause 1
put sheathe
waitfor you
pause 2
counter add 1
goto rester


rester:
pause 60
put exp
MATCH dead Exp. until next lvl: -
MATCH Huntingprepstart Your mind is as clear as a bell
MATCH Huntingprepstart Your mind is fresh and clear.
MATCH Huntingprepstart Your mind is clear.
MATCH rester Your mind is muddled.
MATCH rester Your mind is becoming numbed.
MATCH rester Your mind is numbed.
MATCH rester must rest!
MATCHWAIT

dead:
put sign of hopelessness
put exit

Jonty
01-15-2004, 02:43 PM
Originally posted by Elrodin
I was just giving an example of the only place in that script that i would have used a wait. While i see your point on the 'wait' command, the pause works fine for me. Never had the problem of it going berserk. However my script was too fast so i just added in a pause(or wait, cant remember) .5 to slow it down.

Pauses don't make scripts go berserk. I used that example because I was pointing out the use of the wait. It goes bererk when you loop it directly to the same section the match for the ...wait is. So instead of looping it directly, you loop it to a section that waits for any command, then returns to the original section.

I'm absolutely sure your script works fine with pauses. I just don't like pause for speed reasons.

PS wait .5 or wait <anything> is no different than just wait alone.

Jonty
01-15-2004, 02:49 PM
Hehe, the following example from your script is exactly why I don't use pauses. It's just a waste of time, even if it's just .5 seconds.... The Wizard tends you calculate time slower than the game does.



symbolcast:
pause 1
put sign of warding
pause .5
put sign of defending
pause .5
put sign of shield
pause .5


I tested it in game. It's slow



symbolcast:
put sign of warding
wait
put sign of defending
wait
put sign of shield
wait


Is much faster.

[Edited on 1-15-2004 by Jonty]

Jonty
01-15-2004, 02:50 PM
dead:
put sign of hopelessness
put exit


WTF!?
Why in the world are you giving this script out?!?!?!

Anebriated
01-15-2004, 02:55 PM
why not, i wrote it to fit how i play me dhe'nar, i dont use it afk so its not a big deal. If i die i use hopelessness. its what i do. if a person takes my script i would hope that they know what they are doing with it to the point where they edit it for themselves.

Jonty
01-15-2004, 02:59 PM
Some people don't know anything about scripts except how to turn 'em on.

Kitsun
01-15-2004, 03:16 PM
While I believe that people should know what a script does before turning it on. A small warning about shoving sign of hopelessness inside would be considered proper etiquette.

Wezas
01-15-2004, 03:37 PM
Originally posted by Kitsun
While I believe that people should know what a script does before turning it on. A small warning about shoving sign of hopelessness inside would be considered proper etiquette.

I hope a few people do use this script, that way when I pass by them in Pookas I can take all the gems from their pouch. Don't see any "close pouch" commands in there :smilegrin:

Jonty
01-15-2004, 03:40 PM
SHHHHHHHH!!!!

Parkbandit
01-15-2004, 03:41 PM
Originally posted by Wezas
I hope a few people do use this script, that way when I pass by them in Pookas I can take all the gems from their pouch. Don't see any "close pouch" commands in there :smilegrin:

You are mean Wezas!!

Anebriated
01-15-2004, 03:59 PM
well being as pookas dont drop much above sapphires i dont really worry about it.

Wezas
01-15-2004, 04:04 PM
Originally posted by Elrodin
well being as pookas dont drop much above sapphires i dont really worry about it.

True, I used to gem hunt up there years ago, decent boxes and gems. Now it's not even worth the hike.

Anebriated
01-15-2004, 04:06 PM
the biggest box i have seen from there is 17 pounds, best gem was a star ruby. Alot has changed since they first came out...