Morrff
12-13-2009, 06:28 PM
What I'm attempting to do is catch the wealth verb to how many coins I have and I was just playing around with it like this a bit.
;e echo fput "weal"; waitfor "You have"; if line =~ /You have.+ \(\-([0-9]+)\)\./ then fput "true" end
exec1: warning: parenthesize argument(s) for future version
--- Lich: exec1 active.
[exec1]>weal
You have 9443 coins with you.
[exec1: You have 9443 coins with you.]
--- Exception: undefined local variable or method `line' for main:Object
--- Lich: exec1 has exited.
;e echo fput "weal"; waitfor "You have"; if line =~ /You have.+ \(\-([0-9]+)\)\./ then fput "true" end; else fput "false" end
exec1: warning: parenthesize argument(s) for future version
--- Lich SyntaxError: compile error
exec1: syntax error, unexpected kELSE, expecting $end
echo fput "weal"; waitfor "You have"; if line =~ /You have.+ \(\-([0-9]+)\)\./ then fput "true" end; else fput "false" end
^
--- Lich: exec1 has exited.
Ultimate goal is to use this in a looting script for boxes and either depositing coins at the local bank or handing them off to someone where I'm picking. Thanks for any help in advance.
ALSO can someone paste me the new server location I need to edit into my Lichnet2.lic file so I can ask over Lnet these simple questions? Thanks
Cylas
;e echo fput "weal"; waitfor "You have"; if line =~ /You have.+ \(\-([0-9]+)\)\./ then fput "true" end
exec1: warning: parenthesize argument(s) for future version
--- Lich: exec1 active.
[exec1]>weal
You have 9443 coins with you.
[exec1: You have 9443 coins with you.]
--- Exception: undefined local variable or method `line' for main:Object
--- Lich: exec1 has exited.
;e echo fput "weal"; waitfor "You have"; if line =~ /You have.+ \(\-([0-9]+)\)\./ then fput "true" end; else fput "false" end
exec1: warning: parenthesize argument(s) for future version
--- Lich SyntaxError: compile error
exec1: syntax error, unexpected kELSE, expecting $end
echo fput "weal"; waitfor "You have"; if line =~ /You have.+ \(\-([0-9]+)\)\./ then fput "true" end; else fput "false" end
^
--- Lich: exec1 has exited.
Ultimate goal is to use this in a looting script for boxes and either depositing coins at the local bank or handing them off to someone where I'm picking. Thanks for any help in advance.
ALSO can someone paste me the new server location I need to edit into my Lichnet2.lic file so I can ask over Lnet these simple questions? Thanks
Cylas