PDA

View Full Version : lich forging script help



Silvanostar
07-16-2007, 10:23 AM
i tinkered around with the forging rank up script in the lich repository to save my best pieces, but i keep running into this error message: --- SyntaxError: compile error
1forgingrankup:226: Invalid char `\223' in expression
1forgingrankup:227: Invalid char `\223' in expression
1forgingrankup:227: Invalid char `\224' in expression

I have no idea how to fix this, so can i get some help?

Shaelun
07-16-2007, 05:47 PM
I don't know why it's saying the error is on line 226; I'm hoping that error message isn't from the exact file you posted, because the errors are actually on lines 262 and 263. You have some really weird characters on those two lines instead of quotes. I don't know how they got there, but you want just plain old quotes. Did you use something like MS Word to edit the script?

My terminal doesn't display whatever the characters "\223" and "\224" are (well, not properly at least), so my best guess is that your text editor is inserting UTF-8 encoded characters when you need it to be using ISO-8859-1 encoded characters (aren't you glad you asked this question, lol... ISO-8859-1 is good old-fashioned Western ASCII text). Simplest fix is probably to just comment those 2 lines out and manually re-type them using an editor like notepad.

Silvanostar
07-16-2007, 06:05 PM
yea i had been using word since i really don't like notepad. thanks for the help shaelun.

Silvanostar
07-24-2007, 03:35 PM
Sorry to keep bothering you about this Shaelun, but I ran into another problem while playing around with my forging script. I hope you can help me out.

--- SyntaxError: compile error
1forgingrankup:223: parse error, unexpected tSTRING_BEG, expecting kDO or '{' or '('
match "Oil", "Here's your purchase"
^
1forgingrankup:223: parse error, unexpected ',', expecting $
match "Oil", "Here's your purchase"
^

thats the error message i'm getting, and i have no clue what purpose those little arrows serve.

Shaelun
07-26-2007, 12:29 PM
Ignore my PM message; I hadn't read your post yet. The problem is an extra comma at the end of the line right before that:



move o
multifput "order 6", "buy",
match "Oil", "Here's your purchase"

That little arrow just points to the very first character that's illegal; right up until that character, your script could have been perfectly legal. It's not exactly easy to spot, but that extra comma is actually in the error message:


1forgingrankup:223: parse error, unexpected ','...