PDA

View Full Version : Help with a script please



garlandor
09-23-2009, 01:54 PM
Hello i'm trying to write a simple set of scripts for repetitive task for caster guild alchemy scripts but having a problem with them getting to work right. The hard part i'm having with it is when you get to the step where you seal off your recipe you have one of two possible results a fail or Succeed. And for each one a different reaction i want to occur. So i figured i'd use the MATCH and matchwait commands. Well based on some examples i wrote the following script. And everything goes well till the line after the Alchmey seal and the script fails.. Below is the script. would appreciate any help getting this to work right.

put light cau
waitfor >
put get %1
waitfor >
put put %1 into cau
waitfor >
put get %2
waitfor >
put put %2 in cau
waitfor >
put Alch sim
pause 21
put Alch seal

MainLoop:
match With with
match You reach into the Cauldron
matchwait

with:
put drop flask
put snap
exit

You reach into the Cauldron:
put stow right
exit

waitfor You reach into the cauldron and fill your flask.
pause 1
put stow right

ElvenFury
09-23-2009, 02:01 PM
MainLoop:
match With with
match You reach into the Cauldron
matchwait

with:
put drop flask
put snap
exit

You reach into the Cauldron:
put stow right
exit

Only the first word after a match is considered to be the label that the script directs to. The rest of the string is the match. So the bolded line will match "reach into the Cauldron" and then attempt to go to YOU: (which you don't have).


waitfor You reach into the cauldron and fill your flask.
pause 1
put stow right

What is this? How is the script supposed to get here?