PDA

View Full Version : Spectre Hunter



StrayRogue
08-23-2004, 09:58 PM
My first ever hunting script. Its still got a ton of bugs, you need to be a cleric with a sanct'd weapon, it doesn't spell you up (yet, just haven't gotten round to it), and it can hang some time. Any scripting Gods with any valid input, please post with any ideas or suggestions. Thanks.

Start it at the arch in Snow Spectres:

#Spectre Hunter mk3

hunt:
put exp
match gorest Your mind can't take much more of this!
match S1 Your Mind
matchwait

S1:
put ne
counter set 2
goto checkroom

S2:
put e
counter set 3
goto checkroom

S3:
put d
counter set 4
goto checkroom

S4:
put u
counter set 5
goto checkroom

S5:
put u
counter set 6
goto checkroom

S6:
put u
counter set 7
goto checkroom

S7:
put e
counter set 8
goto checkroom

S8:
put se
counter set 9
goto checkroom

S9:
put sw
counter set 10
goto checkroom

S10:
put ne
counter set 11
goto checkroom

S11:
put nw
counter set 12
goto checkroom

S12:
put w
counter set 13
goto checkroom

S13:
put d
counter set 14
goto checkroom

S14:
put n
counter set 15
goto checkroom

S15:
put nw
counter set 16
goto checkroom

S16:
put d
counter set 17
goto checkroom

S17:
put sw
counter set 18
goto checkroom

S18:
goto hunt

checkroom:
match start Sorry, you may only type ahead
match S%c You can't go there
match S%c I could not find what
match S%c Obvious paths:
match S%c obvious exits:
match critter a snow spectre
matchwait

filter:
put look
match start You can't go there.
match S%c Also here:
match attack Obvious paths:
matchwait

gorest:
put ne
put e
put d
put go hole
put sheath
goto rest

rest:
put exper
put stow r
pause 120
put exper
match rest Your mind can't take much more
match rest Your mind is numbed
match rest Your mind is becoming numbed
match gohunt Your mind is muddled
match gohunt Your mind is clear
match gohunt Your mind is fresh and clear
match gohunt Your mind is as clear as a bell
matchwait

gohunt:
put ready weapon
put go trap
goto hunt

critter:
put look
match S%c Also here:
match attack Obvious paths:
matchwait

attack:
pause .5
put stance off
put kill
match dead dies
match dead dead
match dead motionless
match dead A little bit
match attack only type ahead
match attack Please wait
match attack Roundtime:
match attack Wait
match S%c I could not find
match S%c What were you referring to?
matchwait

dead:
pause .5
put search spec
waitfor You search
put look
goto checkroom

StrayRogue
08-24-2004, 08:48 AM
Mk2: This one will walk around a little slower, kill a little quicker, and spell up after each hunt with 202, 211, 303, 307, 101, and 103. You need PSInet for this option to work unless you want to edit it yourself.

Also ironed out a few bugs where it stalled before:

#Spectre Hunter mk3.2

hunt:
put exp
match gorest Your mind can't take much more of this!
match S1 Your Mind
matchwait

S1:
pause .5
put stance off
waitfor You
put ne
counter set 2
goto checkroom

S2:
pause .5
put e
counter set 3
goto checkroom

S3:
pause .5
put d
counter set 4
goto checkroom

S4:
pause .5
put u
counter set 5
goto checkroom

S5:
pause .5
put u
counter set 6
goto checkroom

S6:
pause .5
put u
counter set 7
goto checkroom

S7:
pause .5
put e
counter set 8
goto checkroom

S8:
pause .5
put se
counter set 9
goto checkroom

S9:
pause .5
put sw
counter set 10
goto checkroom

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

S11:
pause .5
put nw
counter set 12
goto checkroom

S12:
pause .5
put w
counter set 13
goto checkroom

S13:
pause .5
put d
counter set 14
goto checkroom

S14:
pause .5
put n
counter set 15
goto checkroom

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

S16:
pause .5
put d
counter set 17
goto checkroom

S17:
pause .5
put sw
counter set 18
goto checkroom

S18:
pause .5
goto hunt

checkroom:
match S%c Also here:
match S%c Sorry, you may only type ahead
match S%c You can't go there
match S%c I could not find what
match S%c Obvious paths:
match S%c obvious exits:
match filter a snow spectre
matchwait

filter:
put look
match S%c You can't go there.
match attack a snow spectre
matchwait

gorest:
put ne
pause .5
put e
pause .5
put d
pause .5
put go hole
put sheath
goto rest

rest:
put exper
pause 30
put exper
match rest Your mind can't take much more
match rest Your mind is numbed
match gohunt Your mind is becoming numbed
match gohunt Your mind is muddled
match gohunt Your mind is clear
match gohunt Your mind is fresh and clear
match gohunt Your mind is as clear as a bell
matchwait

gohunt:
put ready weapon
put 202
pause 4
put 303
pause 4
put 103
pause 4
put 307
pause 4
put 211
pause 4
put 101
pause 4
put go trap
goto hunt

critter:
match S%c Also here:
match attack Obvious paths:
match attack exits:
put look
matchwait

attack:
pause .5
put kill
match dead dies
match dead dead
match dead motionless
match dead A little bit
match dead The snow spectre screams evilly one last time and goes still.
match attack only type ahead
match attack Please wait
match attack Roundtime:
match attack Wait
match S%c I could not find
match S%c What were you referring to?
match S%c You currently have no valid target. You will need to specify one.
matchwait

dead:
pause .5
put search spec
waitfor You search
put look
goto checkroom


[Edited on 25-8-04 by StrayRogue]

Latrinsorm
08-24-2004, 12:54 PM
Under the "Gorest" label, why not use MOVE instead of PUT and PAUSE? I don't know anything about cleric hunting anymore, so I can't help with the other stuff.

StrayRogue
08-25-2004, 01:17 PM
Well, it was previously move. But on occasion it would move too quickly and hang. The same would happen with the normal hunting movements. So I put a pause in there to slow it down a tad.

StrayRogue
08-25-2004, 09:00 PM
Seems it has a poaching problem. Anyone have any idea why it would be poaching other peoples kills, I can't seem to find the problem.

Latrinsorm
08-25-2004, 09:07 PM
Do you have a log of the poaching?

StrayRogue
08-25-2004, 09:13 PM
[Script]>d[Snow Fort, Tunnel]
Also here: Euporia
Obvious exits: east, southwest, up
[Script]>[Snow Fort, Tunnel]
Also here: Euporia
Obvious exits: east, southwest, up
[Script]>kill You swing an ivory-hilted eonake khopesh at a snow spectre!
AS: +130 vs DS: +10 with AvD: +35 + d100 roll: +79 = +234
... and hit for 125 points of damage!
Slash to the snow spectre's ribs opens a sucking chest wound!
The snow spectre falls to the ground motionless.
Roundtime: 5 sec.
[Script]>Euporia's hands glow with power as she summons elemental energy to her command...
[Script]>'Sorrysearch specYou say, "Sorry."
[Script]>You search the snow spectre.
It had a woven cloak, a leather helm.
It didn't carry any silver.
It had nothing else of value.
A snow spectre turns to dust.
[Script]>look[Snow Fort, Tunnel]
Also here: Euporia


[Script]>u[Snow Fort, Spiral]
Also here: Aviendah
Obvious exits: north, up, down
[Script]>[Snow Fort, Spiral]
Also here: Aviendah
Obvious exits: north, up, down
[Script]>kill A snow spectre begins to wail loudly!
[Script]>You swing an ivory-hilted eonake khopesh at a snow spectre!
AS: +130 vs DS: +5 with AvD: +35 + d100 roll: +63 = +223
... and hit for 80 points of damage!
The snow spectre is backed up by a strong slash to its abdomen!
Roundtime: 5 sec.
[Script]>A snow spectre gestures at you!
CS: +49 - TD: +76 + CvA: +12 + d100: +82 - -5 == +72
Warded off!
[Script]>kill You swing an ivory-hilted eonake khopesh at a snow spectre!
AS: +130 vs DS: -4 with AvD: +35 + d100 roll: +83 = +252
... and hit for 83 points of damage!
Deep slash to the snow spectre's right forearm!
The snow spectre falls to the ground motionless.
Roundtime: 5 sec.

StrayRogue
08-25-2004, 09:24 PM
Its got me and Nakiro stumped. Anyone else?

Latrinsorm
08-25-2004, 09:28 PM
My only suggestion is put a redundant "also here" check in the filter: section. On an unrelated note, get rid of the critter: section, as it seems to be extraneous.

The weird thing is, in the second example it looks like it's doing a matched kill from the wailing, which it shouldn't if the pause is working correctly.

StrayRogue
08-25-2004, 09:36 PM
Neither suggestion worked.

imported_Kranar
08-25-2004, 10:53 PM
It's been fixed.

The error was that checking for a critter, and checking if someone is in the room need to be checked for individually and independently.

It does not suffice to

put look
match attack a <critter name>
match nextRoom Also here:
match nextRoom Obvious paths:
matchwait

Since "a <critter name>" always appears before "Also here:", thus if a critter is in the room, the script pays no regard to the fact that another player may also be in the room as well.

Instead, you must first check for the critter, and then if the critter is found, you must check if someone is in the room as follows:

match filter a <critter name>
match nextRoom Obvious paths:
matchwait

filter:
put look
match attack Obvious paths:
match nextRoom Also here:

This way, a precondition on filter is that a critter must be in the room, now we look once more to find out if another player is in the room. If no player is in the room then Obvious paths gets matched and we proceed to attack. If another player is in the room, then Also here: gets matched (since it comes before Obvious paths:) and the script moves to the next room.

StrayRogue
08-25-2004, 10:55 PM
Thanks a bunch Kranar. You've made my day.

Chadj
08-26-2004, 12:28 AM
Who hunts spectres? like, honestly.

StrayRogue
08-26-2004, 11:48 AM
Erm, people who want to hunt something that casts and attacks with a pathetic AS/CS and has low TD/DS with good treasure?

Chadj
08-26-2004, 11:50 AM
:moon2:

StrayRogue
08-26-2004, 11:51 AM
You're posts are more erroneous than Maimara's, and thats saying something.

fallenSaint
04-20-2005, 08:36 PM
So Im stirring this out of the depths of the forum but I just recently found it anyhow... when I run it just passes right by the spectres without attacking what did I do wrong?

StrayRogue
04-20-2005, 09:07 PM
No idea. I'll repost my own version again when I have time.

fallenSaint
04-21-2005, 11:25 AM
Ok used one of Kranar's scripts as a guide and found what the issue was so got it all working. Thanks for the help.

Stunseed
04-26-2005, 08:47 PM
If someone could take a look at this script and alter it, I'm thinking of running a Bard using a Sonic weapon on it.

StrayRogue
04-29-2005, 01:27 PM
Thats because its an old version...Dumbass.

StrayRogue
04-29-2005, 01:33 PM
Ask Bob about the version I sent him. As I've posted because, douchebag, I don't post the scripts I personally use.

StrayRogue
04-29-2005, 04:18 PM
Then what the fuck is your dumbfuck thread about your Temple hunter all about then? Idiot.

StrayRogue
04-29-2005, 04:25 PM
... Are you blind. That isn't the script I use or give to people. Jesus fucking Christ...

StrayRogue
04-29-2005, 05:01 PM
I don't see you posting any of your scripts anywhere fuckhead.

HarmNone
04-29-2005, 05:05 PM
That's enough, you two. Take it off the boards.

Gan
04-29-2005, 05:08 PM
I vote for an IP address check on Spunkmonk. As PB stated in another thread, his posts suspiciously look/sound like Psychos. I dont know which is more annoying... his posts or X's posts.

Stunseed
04-29-2005, 08:33 PM
< If someone could take a look at this script and alter it, I'm thinking of running a Bard using a Sonic weapon on it. >

This post still applies. :yes:

StrayRogue
04-29-2005, 08:34 PM
Do sonic weapons hit undead?

Stunseed
04-29-2005, 08:37 PM
Indeed, they do. Which is why I'd like a script of it. I've got 2 Bards I need to run through there.

StrayRogue
04-29-2005, 08:39 PM
U2U me your email and I'll send my modified bard version. I totally didn't realize sonics hit undead...