PDA

View Full Version : Adding looting to my script please help.



Wuxong
08-24-2005, 05:49 AM
Think i am really struggling with adding something to my script that will allow me to pick up gems while i am hunting.. if anyone out there can give me some help it would be great. Also I was wondering what I would have to do to add a second critter to my script so it will hunt them both.. is it possible. I am still new to all this so please anything you can do will wrock for me.

start:
put look
match filter a servant
match R1 Lower Trollfang, Clearing
match continuehunt Obvious exits
matchwait

R1:
counter set 1
#comment these out if you dont have em, duh
put sign of warding
put sign of defending
pause
put sign of swords
put sign of striking
put sign of smiting
pause
put nw
goto checkroom
R2:
put sw
goto checkroom
R3:
put nw
goto checkroom
R4:
put sw
goto checkroom
R5:
put w
goto checkroom
R6:
put nw
goto checkroom
R7:
put ne
goto checkroom
R8:
put nw
goto checkroom
R9:
put ne
goto checkroom
R10:
put e
goto checkroom
R11:
put se
goto checkroom
R12:
put ne
goto checkroom
R13:
put se
goto checkroom
R14:
put ne
goto checkroom
R15:
put se
goto checkroom
R16:
put s
goto checkroom
R17:
put s
goto checkroom
R18:
put s
goto checkroom
R19:
put n
goto checkroom
R20:
put n
goto checkroom
R21:
put n
goto checkroom
R22:
put nw
goto checkroom
R23:
put sw
goto checkroom
R24:
put s
goto checkroom
R25:
put s
goto checkroom
R26:
put s
goto checkroom
R27:
put s
goto checkroom
R28:
put se
goto checkroom
R29:
put exp
match gorest Your mind can't take much more of this!
match R1 Your mind
matchwait
goto gorest


checkroom:
counter add 1
match start Sorry, you may only type ahead
match R%c You can't go there
match R%c disk
match R%c I could not find what
match filter servant
match R%c Obvious
matchwait

filter:
match R%c and a servants
match R%c , a servant
match R%c that appears dead
match R%c Also here
match R%c appears stunned
match R%c lying down
match R%c disk
match checkc Obvious
matchwait

preatt:
match attack servant
match R%c dies
match R%c spider bumbles in
matchwait

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 servant arrives
match R%c I could not find
match R%c servant heads
match R%c You currently have no valid target
matchwait

wait:
goto attack

dead:
put stance defensive
put search servant
#insert your skinning commands here if you are a skinner
#using autopickup is recommended here since cyclops are poor
#and wont weigh you down
#you can plug in a loot parsing function here but i never
#miss a gem, wand, statue, or magic imbedded clasp with this method
#if you are fighting with a sword/shield, insert your store weapon/loot function
#since thats they only way of getting anything
goto checkc

checkc:
put look servant
match preatt You see a fairly
match R%c I could not find what you were referring to.
matchwait

gorest:
move s
move w
move w
move go path
move w
move nw
move ne
move nw
move nw
move go trail
move sw
move climb bank
move go bridge
move w
move w
move nw
move n
move n
move n
move n
move n
move ne
move go gate
move s
move w
move s
move s
move s
move s
move s
move s
move s
move e
move go shop
put wear shield
put rem satch
put sel satch
put wear satch
put rem shield
move out
move w
move n
move n
move n
move n
move go bank
move go ar
put deposit all
put check bal
move go arch
move out
move n
move n
move n
move e
move n
move go gate
move go inn
move go table
put time
put sign of thought
pause 4
put pre 618
put cast
pause 3
put pre 613
put cast
pause 3
put pre 601
put cast
pause 3
put pre 601
put cast
pause 3
put pre 602
put cast
pause 3
put pre 602
put cast
pause 3
put pre 101
put cast
pause 3
put pre 101
put cast
pause 240
goto continuehunt

continuehunt:
move out
move out
put pre 606
put cast
pause 3
put pre 606
put cast
move sw
move s
move s
move s
move s
move s
move se
move e
move e
move go bridge
move climb bank
move ne
move go trail
move se
move se
move sw
move se
move e
move go path
move e
move e
move n
put pre 103
put cast
pause
goto R1


thats the script as is.. works great to just hunt but i want to get the gems as well.. and kill the damned spiders.. lol .. thanks for any help ..

Shaelun
08-24-2005, 09:47 PM
In The Wizard, you have 32 consecutive MATCH (label) <string from the game> lines that you can use before the MATCHWAIT. You can easily add a second critter. Every MATCH you have for the first one? Just add a second one. If you use a weapon that leaves one hand free, your FLAG settings will let you pick up the gems automatically when you LOOT, and STOW RIGHT or STOW LEFT would get the job done.
That's as close to writing a hunting script for someone as I'll get... if you really can't do it yourself, I'm sure someone around will.
Have fun.