PDA

View Full Version : Complete Cyclops Ripoff



jafo
06-15-2004, 12:26 AM
This is a SF script for hunting cyclops. It is geared towards a twohander or polearm user (or possibly magic user).

Anyhow, cyclops are dirt poor. I just stow whatever they drop with the autopickup (turn that option on or comment out those lines)

I left out the travel to and from town to make this script easier to review. Any feedback would be appreciated.

And thanks to the Complete Cyclops Hunter this is based on.

------------------------------------------
counter set 1
start:
put look
match filter a cyclops
match R1 Noman's Land
match continuehunt Obvious exits
match logoff [Scripting Violation Limbo]
match logoff [Consoltation Lounge]
match logoff [The Cell]
put look
matchwait

checkexp:
put exp
match gorest You must rest
match R1 Your mind is
matchwait

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

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

R3:
pause .5
put e
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 e
counter set 7
goto checkroom

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

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

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

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

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

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

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

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

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

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

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

R18:
pause .5
put ne
counter set 19
goto checkroom

R19:
goto checkexp

checkroom:
match start Sorry, you may only type ahead
match R%c You can't go there
match R%c I could not find what
match R%c cyclops, a cyclops
match filter a cyclops,
match filter a cyclops.
match filter cyclops and
match R%c Obvious
matchwait

filter:
put look
match R%c Also here:
match R%c appears stunned
match R%c lying down
match R%c disk
match preatt cyclops
match R%c Obvious
matchwait

preatt:
put SIGN OF DEFENDING
put SIGN OF STRIKING
put SIGN OF SMITING
put SIGN OF SWORDS
waitfor A cyclops swings
goto attack

attack:
put stance offensive
put att
match wait ...wait
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 R%c I could not find
match R%c You currently have no valid target
matchwait

wait:
pause .5
goto attack

dead:
pause 1
put stance defensive
put loot
put stow left
goto checkc

checkc:
pause 1
put look cyclops
match attack You see a fairly
match R%c I could not find what you were referring to.
matchwait

gorest:
#go back to town
#sell cloak to gemshop
#go to bank
goto bankdepo

continuehunt:
#leave inn table
#go to climbable path
#store weapon(s)
goto climb

climb:
pause 1
put climb path
put ready weapon
waitfor You remove a
goto R1

bankdepo:
pause 1
put depo all
put check bal
move out
move e
move n
move go inn
move go arch
move go table
pause 1
put time
waitfor
put sign of thought
pause 620
goto continuehunt

logoff:
put exit

Xcalibur
06-15-2004, 12:29 AM
Cyclops were rich (500 per) when you skinned them. Rest is as ridiculous as Elanthia's economy.

So that's my advise, if you plan to hunt sol haven, learn skinning (even if it's shit now)

jafo
06-15-2004, 12:36 AM
Unfortunately, skinning sucks with a claidhmore. Getting the knife out, skinning it, and getting the eye just gave me more corners cases so I left it out for now.

Thysan
06-15-2004, 04:12 AM
Hmmm.... feedback. Looks like Kranar's cyclops script with a couple of things changed. I could suggest a more selective way of picking up things so you are not picking up every frumpy dress they drop or overloading with boxes so as to get excessive RT. It's common in most hunting scripts. Looks like this.

Put this in with your attack argument. All the messages for dying of the critter you're hunting get a match continue.

match continue dies
match continue dead
match continue motionless
match continue A little bit
match continue lies still.

Then put this argument for searching, I don't bother with skinning since none of my characters skin.

continue:
pause 1
put loot
put stance defensive
goto checktre

Put in matches for the types of items you want to pick up. This one does most gems, wands, scrolls of different types and amulets.

checktre:
match getivory ivory
match getnugg nugget
match getjade jade
match getmith mithril-bloom
match getorb orb
match getspinel spinel
match getzircon zircon
match gettopaz topaz
match getwand wand
match getring gold ring
match getmother mother-of-pearl
match getcoral coral
match getshell shell
match getgarnet garnet
match getstone stone
match getsap sapphire
match getlap lapis
match geteme emerald
match getpearl pearl
match getruby ruby
match getquartz quartz
match getame amethyst
match gettou tourmaline
match getopal opal
match getdiamond diamond
match getscroll scroll
match getpapyrus papyrus
match getpalimpset palimpset
match getvellum vellum
match getamulet amulet
match getgem gem
match aftertreasure still alive
match aftertreasure I could not find what you were referring to.
match aftertreasure <Message you get at the end of searching critter.>
matchwait

Then arguments like this for each item in the checktre: section.

getivory:
save ivory
goto gettreasure

getnugg:
save nugget
goto gettreasure

getjade:
save jade
goto gettreasure

getmith:
save mithril-bloom
goto gettreasure

gettreasure:
put put <weapon> in my <container>
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 <container>
waitfor You remove
goto aftertreasure

aftertreasure:
pause 1
put look
match filter <critter>
match R%c% Obvious
matchwait

All I can really think of at the moment.

Artha
06-15-2004, 11:15 AM
None of your pause .5s will work...it's just shifting to the generic pause, which is slightly longer than 1 second. Also, because it's SF, you don't need it.

jafo
06-15-2004, 06:07 PM
Originally posted by Thysan
Hmmm.... feedback. Looks like Kranar's cyclops script with a couple of things changed. I could suggest a more selective way of picking up things so you are not picking up every frumpy dress they drop or overloading with boxes so as to get excessive RT. It's common in most hunting scripts. Looks like this.


Cyclops are famously poor. If this was an AFK script then it might avoid boxes or frumpy dresses, but since this is not an afk script and cyclops boxes are few and light, it just leaves out the extra few hundred lines to have the item filter. This script is awesome if you let the script hunt and then deal with the goodies while you are RP'ing during rest.

Yes, it is based on Kranar's script but has some key changes:

*it runs unlike the complete cyc hunter for weapon users
*it avoids initiating and attack if more than one cyc is in the room
*the script does not break down if someone leaves a cyclops eye on the ground
*It shifts stances
*it waits for the cyc to hit first since cycs are in defensive til they strike
*it doesnt break when you pass a room and a cyclops arrives or swings at someone or someone swings at one
*unnecessary item filtration removed
*unnecessary levelup stuff removed
*unnecessary branches removed
*some branches combined

Other than all that, its the Complete Cyclops at heart. At least until I rip it up some more.

[Edited on 6-15-2004 by jafo]

jafo
06-15-2004, 06:46 PM
Right now I am trying to understand the checkroom and filter functions other scripts have and try to make a reusable set.

-------------------------------------

checkroom:
match start Sorry, you may only type ahead
match R%c You can't go there
match R%c I could not find what
match filter1 a cyclops,
match filter1 a cyclops.
match filter1 cyclops and
match R%c Obvious
matchwait

filter1:
match R%c cyclops, a cyclops
match R%c cyclops and a cyclops.
match R%c Also here
match R%c appears stunned
match R%c lying down
match R%c disk
match filter2 Obvious
matchwait

#the following second filter keeps the script from breaking because of various things that occur after the room description scrolls
filter2
put look
match preatt cyclops
match R%c cyclops
matchwait


---------------------

How does this look?

[Edited on 6-15-2004 by jafo]

jafo
06-16-2004, 02:55 AM
twohand/polearm user cyclops template rev 2 (internal rev 991919234.01)

I've been playing with the logic in this script some. It tries its utmost not to poach kills. Now, I always watch this script run, so I'm usually read to hit escape if something goes wrong.

In particular, the script does two checks for a disk both before and after seeing the cyclops text. It manually verifies there is a cyclops in case there is merely a cyclops eye on the ground. I am also trying to get the script to ignore rooms with more than once cyclops.

In general you will see cyclops, a cyclops or cyclops and a cyclops. I've gotten it to skip one or the other but not both reliably.

Anyhow, this script is just a template, I will add documentation to Rev. 3 explaining why certain lines do what they do and explaining where you should add things (like selling gems, skinning, etc, turning off the autoloot, adding a loot parser (ick)).