Imperarx
07-29-2008, 05:45 PM
So, I've been trying to write a script that would walk around and kill a few things to make my trips out of town and back quicker. As part of that, I wanted it to make intelligent decisions about my surge of strength and getting out of stuns, so I tried to register Watchfors to manipulate variables for this, but I'm getting errors. Can anyone tell me what's wrong with the following code?
Watchfor.new "You are stunned"
{
if checkmana > 35
waitrt?
fput "beseech"
end
}
Watchfor.new "searching for untapped sources of strength."
{
checksurge = true
surgecd = false
}
Watchfor.new "You begin to lose touch with your internal sources of strength."
{
checksurge = false
}
Watchfor.new "Your internal strength fully recovers from your most recent attempt to tap into it."
{
surgecd = true
}
Below are the errors I get.
hunt:14: odd number list for Hash
hunt:19: odd number list for Hash
hunt:20: syntax error, unexpected tIDENTIFIER, expecting '}'
surgecd = false
^
hunt:21: syntax error, unexpected '}', expecting $end
Any ideas?
Watchfor.new "You are stunned"
{
if checkmana > 35
waitrt?
fput "beseech"
end
}
Watchfor.new "searching for untapped sources of strength."
{
checksurge = true
surgecd = false
}
Watchfor.new "You begin to lose touch with your internal sources of strength."
{
checksurge = false
}
Watchfor.new "Your internal strength fully recovers from your most recent attempt to tap into it."
{
surgecd = true
}
Below are the errors I get.
hunt:14: odd number list for Hash
hunt:19: odd number list for Hash
hunt:20: syntax error, unexpected tIDENTIFIER, expecting '}'
surgecd = false
^
hunt:21: syntax error, unexpected '}', expecting $end
Any ideas?