wetsand
05-04-2017, 06:45 PM
I'm trying to rewrite ;surge into a script that will run burst of swiftness in the same capacity but I'm running into some issues.
This is essentially a copy and paste from ;surge but with the cool down spell id change to bursts cool down:
loop{
wait_until{ !Spell[9051].active and checkstamina > 40 }
if Spell[9699].active
poptime = Spell[9699].remaining
echo "your muscles are popped, you must wait #{poptime}"
wait_while{ Spell[9699].active }
fput “cman burst”
elsif
fput “cman burst”
end
sleep 1
}
But when I try to run ;cmanburst (what the file name is) I get this:
>;cman
--- Lich: cmanburst active.
--- Lich: error: undefined local variable or method `burst”' for main:Object
cmanburst:16:in `block in _script'
cmanburst:8:in `loop'
--- Lich: cmanburst has exited.
Although it will run if my muscles are popped and I'm in the cool down period but will exit once the cool down resets.
FYI I have no idea what I'm doing but maybe something went wonky when I converted the .txt file to a .lic file and its not showing up when I view the text. I'm using a Mac running El Capitan.
This is essentially a copy and paste from ;surge but with the cool down spell id change to bursts cool down:
loop{
wait_until{ !Spell[9051].active and checkstamina > 40 }
if Spell[9699].active
poptime = Spell[9699].remaining
echo "your muscles are popped, you must wait #{poptime}"
wait_while{ Spell[9699].active }
fput “cman burst”
elsif
fput “cman burst”
end
sleep 1
}
But when I try to run ;cmanburst (what the file name is) I get this:
>;cman
--- Lich: cmanburst active.
--- Lich: error: undefined local variable or method `burst”' for main:Object
cmanburst:16:in `block in _script'
cmanburst:8:in `loop'
--- Lich: cmanburst has exited.
Although it will run if my muscles are popped and I'm in the cool down period but will exit once the cool down resets.
FYI I have no idea what I'm doing but maybe something went wonky when I converted the .txt file to a .lic file and its not showing up when I view the text. I'm using a Mac running El Capitan.