|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Tue Aug 26, 2008 7:06 pm
Alias Failing suddenly |
Nothing in the alias has changed, which is what confuses me. All that I can think of is that perhaps one of the versions broke it?
Here's the alias:
Code: |
#wait 400
#say Loading Vallens Alias...
#al vallens {
#switch (%params)
("all") {
get all.vallens vine
get 'robe Austinian' vine
get 'Dragon Eye Sea' vine
get 'gold lion girth' vine
get 'golden acorn' vine
wear 'Fine Leather Tunic Vallens'
wear 'Fine Leather Headband Vallens'
wear 'Fine Leather Leggings Vallens'
wear 'Fine Leather Sleeves Vallens'
wear 'Fine Leather Boots Vallens'
wear 'Fine Leather Gloves Vallens'
wear 'robe Austinian'
wear 'Dragon Eye Sea'
wear 'gold lion girth'
wear 'holy symbol'
wear 'golden acorn'
put all.camo vine
put 'gray robe' vine
put 'Sceptre Might' vine
put 'sword sheath' vine
put 'knight doll' vine
get 'golden ring' vine
wear ring golden ring'
remove 'ring light'
get 'golden ring' vine
remove 'ring light'
wear 'golden ring'
put 'ring light' vine
put 'ring light' vine
put 'jade dragon' vine
}
("set") {
get all.vallens vine
wear 'Fine Leather Tunic Vallens'
wear 'Fine Leather Headband Vallens'
wear 'Fine Leather Leggings Vallens'
wear 'Fine Leather Sleeves Vallens'
wear 'Fine Leather Boots Vallens'
wear 'Fine Leather Gloves Vallens'
put all.camo vine
}
("Tunic") {
get 'Fine Leather Tunic Vallens' vine
wear 'Fine Leather Tunic Vallens'
put 'Well-made Leather Tunic Camo' vine
}
("Head") {
get 'Fine Leather Headband Vallens' vine
wear 'Fine Leather Headband Vallens'
put 'Well-made Leather Headband Camo' vine
}
("Legs") {
get 'Fine Leather Leggings Vallens' vine
wear 'Fine Leather Leggings Vallens'
put 'Well-made Leather Leggings Camo' vine
}
("Sleeves") {
get 'Fine Leather Sleeves Vallens' vine
wear 'Fine Leather Sleeves Vallens'
put 'Well-made Leather Sleeves Camo' vine
}
("Boots") {
get 'Fine Leather Boots Vallens' vine
wear 'Fine Leather Boots Vallens'
put 'Well-made Leather Boots Camo' vine
}
("Gloves") {
get 'Fine Leather Gloves Vallens' vine
wear 'Fine Leather Gloves Vallens'
put 'Well-made Leather Gloves Camo' vine
}
("Held") {
put 'knight doll' vine
}
("Light") {
get 'dragon eye sea' vine
wear 'dragon eye sea'
put 'Sceptre Might' vine
}
("Waist") {
get 'gold lion girth' vine
wear 'gold lion girth'
put 'sword sheath' vine
}
("Robe") {
get 'robe austinian' vine
wear 'robe austinian'
put 'gray robe' vine
}
("Rings") {
get 'golden ring' vine
wear 'golden ring'
remove 'ring light'
get 'golden ring' vine
wear 'golden ring'
put 'ring light' vine
put 'ring light' vine
}
("Float") {
get 'golden acorn' vine
wear 'golden acorn'
put 'jade dragon' vine
}
("mana") {
get 'robe Austinian' vine
get 'Dragon Eye Sea' vine
get 'gold lion girth' vine
get 'golden acorn' vine
wear 'robe Austinian'
wear 'Dragon Eye Sea'
wear 'gold lion girth'
wear 'golden acorn'
put all.camo vine
put 'gray robe' vine
put 'Sceptre Might' vine
put 'sword sheath' vine
put 'knight doll' vine
get 'golden ring' vine
wear ring golden ring'
remove 'ring light'
get 'golden ring' vine
remove 'ring light'
wear 'golden ring'
put 'ring light' vine
put 'ring light' vine
}
("hit") {
get 'gray robe' vine
get 'Sceptre Might' vine
get 'sword sheath' vine
get 'knight doll' vine
wear 'gray robe'
wear 'Sceptre Might'
wear 'sword sheath'
wear 'knight doll'
put all.vallens vine
put 'Fine Leather Gloves Vallens' vine
put 'robe Austinian' vine
put 'Dragon Eye Sea' vine
put 'gold lion girth' vine
get 'ring light' vine
wear 'ring light'
remove 'golden ring'
wear 'ring light'
get 'ring light' vine
remove 'golden ring'
wear 'ring light'
put 'golden ring' vine
put 'golden ring' vine
get 'jade dragon' vine
wear 'jade dragon'
put 'golden acorn' vine
}
("standard") {
get 'amulet austinian' vine
get 'amulet austinian' vine
get 'shield arcanium' vine
get 'fine bracer' vine
get 'fine bracer' vine
get 'runed quiver' vine
get 'dagger' vine
wear 'amulet austinian'
wear 'amulet austinian'
wear 'shield arcanium'
wear 'fine bracer'
wear 'fine bracer'
wear 'runed quiver'
sheath 'dagger'
wear 'dreadwood quarter'
}
} {General Aliases}
#al rem_vallens {
#switch (%params)
("all") {
remove 'Fine Leather Tunic Vallens'
remove 'Fine Leather Headband Vallens'
remove 'Fine Leather Leggings Vallens'
remove 'Fine Leather Sleeves Vallens'
remove 'Fine Leather Boots Vallens'
remove 'Fine Leather Gloves Vallens'
remove 'robe Austinian'
remove 'Dragon Eye Sea'
remove 'gold lion girth'
remove 'purple mojo bone'
put all.vallens vine
put 'robe Austinian' vine
put 'Dragon Eye Sea' vine
put 'gold lion girth' vine
put 'purple mojo bone' vine
}
("set") {
remove 'Fine Leather Tunic Vallens'
remove 'Fine Leather Headband Vallens'
remove 'Fine Leather Leggings Vallens'
remove 'Fine Leather Sleeves Vallens'
remove 'Fine Leather Boots Vallens'
remove 'Fine Leather Gloves Vallens'
put all.vallens vine
}
("Tunic") {
remove 'fine leather Tunic vallens'
put 'fine leather Tunic vallens' vine
}
("Head") {
remove 'fine leather Headband vallens'
put 'fine leather Headband vallens' vine
}
("Legs") {
remove 'fine leather Leggings vallens'
put 'fine leather Leggings vallens' vine
}
("Sleeves") {
put 'fine leather Sleeves vallens' vine
remove 'fine leather Sleeves vallens'
}
("Boots") {
put 'fine leather Boots vallens' vine
remove 'fine leather Boots vallens'
}
("Gloves") {
remove 'fine leather Gloves vallens'
put 'fine leather Gloves vallens' vine
}
("Held") {
}
("Light") {
remove 'dragon eye sea'
put 'dragon eye sea' vine
}
("Waist") {
remove 'gold lion girth'
put 'gold lion girth' vine
}
("Robe") {
remove 'robe austinian'
put 'robe austinian' vine
}
("Float") {
remove 'golden acorn'
put 'golden acorn' vine
}
("mana") {
remove 'robe Austinian'
remove 'Dragon Eye Sea'
remove 'gold lion girth'
remove 'purple mojo bone'
remove 'golden ring'
remove 'golden ring'
put all.vallens vine
put 'robe Austinian' vine
put 'Dragon Eye Sea' vine
put 'gold lion girth' vine
put 'purple mojo bone' vine
put 'golden ring' vine
put 'golden ring' vine
}
("hit") {
remove 'gray robe'
remove 'Sceptre Might'
remove 'sword sheath'
remove 'knight doll'
remove 'jade dragon'
remove 'ring light'
remove 'ring light'
put all.camo vine
put 'gray robe' vine
put 'jade dragon' vine
put 'Sceptre Might' vine
put 'sword sheath' vine
put 'knight doll' vine
put 'ring light' vine
put 'ring light' vine
}
("standard") {
remove 'amulet austinian'
remove 'amulet austinian'
remove 'shield arcanium'
remove 'fine bracer'
remove 'fine bracer'
remove 'runed quiver'
remove 'dagger'
remove 'dreadwood quarter'
put 'amulet austinian' vine
put 'amulet austinian' vine
put 'shield arcanium' vine
put 'fine bracer' vine
put 'fine bracer' vine
put 'dagger' vine
put 'runed quiver' vine
}
} {General Aliases}
|
And there's another that's very similar. For both I get this error:
ERROR: Syntax error in Alias: vallens : illegal character in expression: (
What I entered was: vallens all |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Tue Aug 26, 2008 8:25 pm |
Try reformatting it. Not at a computer, so can't tell you exactly what's wrong, but try that. Also, with the cursor in the value box, try Ctrl+K to determine exactly where the error is.
Charneus |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Tue Aug 26, 2008 11:07 pm |
Ok, I am assuming you create this script from a file or some such.
First is the alias correctly created, as in are all the line there, when viewed in the Package Editor?
Second while viewing the 'vallens' alias in the PE press CTRL-K to compile the script and report an syntax errors. Does it show any? If yes then where? |
|
_________________ The only good questions are the ones we have never answered before.
Search the Forums |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Wed Aug 27, 2008 12:59 am |
There aren't any syntax errors in the script, it loads just fine. And like I said, it worked before. I haven't changed it a bit and suddenly it doesn't work anymore. I'm not sure how to prove it did work, but it did. I just tried the editor, finds no errors... hrmm
|
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Wed Aug 27, 2008 2:46 am |
It seems you have stumbled across a very strange parsing bug where some spaces and carriage returned are being stripped. If you manually create the alias, it works perfectly. If you create through an alias or the command line, the code gets stripped.
At first I thought, it was an indentation or carriage return thing but it doesn't seem to be the case. |
|
_________________ Asati di tempari! |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Wed Aug 27, 2008 2:50 am |
So I should create it through the editor?
|
|
|
|
Merilix Beginner
Joined: 20 Aug 2008 Posts: 24 Location: Germany
|
Posted: Wed Aug 27, 2008 2:51 am |
looks like blanks are stripped off within the nested statement...
Code: |
#al vallens {
#switch (%params)
("all") {
get all.vallens vine
get 'robe Austinian' vine
.. blah blah |
creates:
Code: |
#switch (%params)("all") { |
where blank is missed.
that seems to be a bug
--edit
wait until it get fixed or change from switch to if
Code: |
#if (%params=="all") {
get all.vallens vine
get 'robe Austinian' vine} {}
#if (%params=="set") {
blah blah } {}
#IF ....
|
should do the same but create the aliases right |
|
|
|
Tech GURU
Joined: 18 Oct 2000 Posts: 2733 Location: Atlanta, USA
|
Posted: Wed Aug 27, 2008 5:15 am |
If you can create the alias manually then that's probably the simplest work around for you.
|
|
_________________ Asati di tempari! |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Wed Aug 27, 2008 2:24 pm |
So I redid the alias... typing in the name manually, and putting in all the same text manually and I still get:
ERROR: Syntax error in Alias: vallens : extra } brace |
|
|
|
charneus Wizard
Joined: 19 Jun 2005 Posts: 1876 Location: California
|
Posted: Wed Aug 27, 2008 2:55 pm |
No, that's different then what you had previously. It just means you put an extra brace in somewhere. Again, go to Package editor, choose the alias, put focus on the value, then press CTRL+K to find out where the extra brace is at. Or recount your braces and make sure you didn't put an extra one in there.
Charneus |
|
|
|
|
|