Ok so.
I have a very basic script written.
Code:
status_tags on
loop{
matchfind /Your <a exist="(.*?)" noun=".*?">.*?<\/a> returns to normal\./i
weapon($1)
if Spell[1604].known? && Spell[1604].affordable?
waitrt?
waitcastrt?
Spell[1604].cast(weapon)
end
}
I did that and just running it gave this:
Code:
>;1604
--- Lich: 1604 active.
--- Lich: error: undefined local variable or method `on' for main:Object
Did you mean? o
1604:11:in `_script'
C:/Users/xxxxx/OneDrive/Documents/lich/lich.rbw:2526:in `eval'
--- Lich: 1604 has exited.
The xxxxx is obviously not originally xxxxx.
Removing the on let it run, but I haven't gone to see if it works. The only place in bigshot status_tags appears is:
Code:
wait_for_swing_exec = <<-eos
status_tags
while line = get
$stop_wait = true if line =~ /#{$global_target}.*#{$pcs}/ and line !~ /style id="".*style id="roomDesc"|(?:component|compDef) id='room objs'/
break if $stop_wait
break if !running?($current_script_name)
end
status_tags
eos
Is that the line that is being called that passes everything to everywhere? Is there an easier way for me to parse out the "gauntlets" from that line, without using this mishmash of required code that the behemoth of bigshot needs to cover all its bases?