PDA

View Full Version : Basic duskruin trap wizard script



RAR
07-25-2015, 10:19 PM
I put together this simple script and figured I'd put it out here. The only thing is you have to run it each time a new combatant appears. I have to use a macro key each time and hit enter to make it run. I'll try to make it work automatically with only one start but that might be beyond my simple skills. Thx

#watch.Cmd

Watch:
put watch
match Duck duck down!
match Roll roll out of the way!
match Jump prepare to jump!
match Pedal back pedal out of the way!
match Lean lean out of the way!
match Bob bob back and forth!
match Again wait
matchwait

Duck:
put duck
goto end

Roll:
put roll
goto end

Jump:
put jump
goto end

Pedal:
put pedal
goto end

Lean:
put lean
goto end

Bob:
put bob
goto end

Again:
pause
goto watch

End:

Whirlin
07-25-2015, 11:18 PM
5 rules of dodgeball = dodge, dip, dive, duck, and dodge

elcidcannon
07-25-2015, 11:49 PM
couldn't you just put

"
End:
goto: Watch
"

and it'd create a loop?

Regallis
07-25-2015, 11:50 PM
Start:
match WATCH enters the arena!
matchwait

WATCH:
put watch
match Duck duck down!
match Roll roll out of the way!
match Jump prepare to jump!
match Pedal back pedal out of the way!
match Lean lean out of the way!
match Bob bob back and forth!
matchwait

Duck:
put duck
goto Start

Roll:
put roll
goto Start

Jump:
put jump
goto Start

Pedal:
put pedal
goto Start

Lean:
put lean
goto Start

Bob:
put bob
goto Start

Maerit
07-26-2015, 04:15 PM
I wrote one for Lich last night if people want / need something they can turn on.

You'll need to manually watch for the first opponent, but it should cover all the scenarios after that. And also, I am bad at regex, so I never bother to fine-tune things... instead I just write a series of super simple regex and just narrow down my results one statement at a time. I'm sure someone could simplify it easily.



start:
fput "watch"
line = waitfor 'you could try to'
first = line.strip.split(/You appraise the */);
second = first[1].split(/, /)
perform = second[1].split(/try to */)
action = perform[1].split(/ /)

if action[0] == 'prepare'
fput 'jump'
elsif action[0] == 'back'
fput 'pedal'
else
fput action[0]
end

waitfor 'Send in'
goto 'start'

RAR
07-26-2015, 06:14 PM
Thanks Regallis! That works really well. I got my first score of 250 because I could focus solely on combat. I'll have to check out Maerit's.

Regallis
07-26-2015, 06:26 PM
I just modified yours a bit, helped you had all the information there for me to use.

Regallis
07-26-2015, 10:58 PM
Startover:
match Node yourfull name
matchwait

Node:
put prep 418
put cast

Start:
match startover Combatant firstname is triumphant
match WATCH enters the arena!
matchwait

WATCH:
put watch
match Duck duck down!
match Roll roll out of the way!
match Jump prepare to jump!
match Pedal back pedal out of the way!
match Lean lean out of the way!
match Bob bob back and forth!
matchwait

Duck:
put duck
goto Start

Roll:
put roll
goto Start

Jump:
put jump
goto Start

Pedal:
put pedal
goto Start

Lean:
put lean
goto Start

Bob:
put bob
goto Start


This is for the professions with 418 mana focus that need that little extra mana and are willing to take a gamble of not failing. If you need a lot of mana, you will have to decide if this will work for you.

If you are defeated you will have to restart the script.