|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Thu May 29, 2008 6:28 pm
Parsing Error |
Likely very simple, but I'm scratching my head.
Here's the alias with an error (long)
Code: |
#al Bless {
#switch (%params)
("standard") {
get elm satch
hold elm
remove 'Austinian Amulet'
put 'Austinian Amulet' leave
remove 'Austinian Amulet'
zap 'Austinian Amulet'
wear 'Austinian Amulet'
get 'Austinian Amulet' leave
zap 'Austinian Amulet'
wear 'Austinian Amulet'
remove 'fine bracer'
put 'fine bracer' leave
remove 'fine bracer'
zap 'fine bracer'
wear 'fine bracer'
get 'fine bracer' leave
zap 'fine bracer'
wear 'fine bracer'
remove 'netherium staff'
zap 'netherium staff'
wear 'netherium staff'
remove 'jade dragon'
zap 'jade dragon'
wear 'jade dragon'
remove 'quiver rune'
zap 'quiver rune'
wear 'quiver rune'
get elm satch
wear elm
}
("hit") {
remove 'Sceptre Might'
zap 'Sceptre Might'
wear 'Sceptre Might'
remove 'gray robe'
zap 'gray robe'
wear 'gray robe'
remove 'sword sheath'
zap 'sword sheath'
wear 'sword sheath'
get elm satch
hold elm
zap 'knight doll'
get 'Sea Dragon' leave
zap 'Sea Dragon'
put 'Sea Dragon' leave
get 'robe Austinian' leave
zap 'robe Austinian'
put 'robe Austinian' leave
get 'gold lion girth' leave
zap 'gold lion girth'
put 'gold lion girth' leave
}
("mana") {
remove 'robe austinian'
zap 'robe austinian'
wear 'robe austinian'
remove 'gold lion girth'
zap 'gold lion girth'
wear 'gold lion girth'
remove 'Sea Dragon'
zap 'Sea Dragon'
wear 'Sea Dragon'
get 'Sceptre Might' leave
zap 'Sceptre Might'
put 'Sceptre Might' leave
get 'Gray Robe' leave
zap 'Gray Robe'
put 'Gray Robe' leave
get 'sword sheath' leave
zap 'sword sheath'
put 'sword sheath' leave
get 'knight doll' leave
zap 'knight doll'
put 'knight doll' leave
}
("camo") {
get elm satch
hold elm
remove 'Well-made Leather Tunic Camo'
zap 'Well-made Leather Tunic Camo'
wear 'Well-made Leather Tunic Camo'
remove 'Well-made Leather Headband Camo'
zap 'Well-made Leather Headband Camo'
wear 'Well-made Leather Headband Camo'
remove 'Well-made Leather Leggings Camo'
zap 'Well-made Leather Leggings Camo'
wear 'Well-made Leather Leggings Camo'
remove 'Well-made Leather Boots Camo'
zap 'Well-made Leather Boots Camo'
wear 'Well-made Leather Boots Camo'
remove 'Well-made Leather Sleeves Camo'
zap 'Well-made Leather Sleeves Camo'
wear 'Well-made Leather Sleeves Camo'
remove 'Well-made Leather Gloves Camo'
zap 'Well-made Leather Gloves Camo'
wear 'Well-made Leather Gloves Camo'
}
("camo vallens") {
get 'Fine Leather Tunic Vallens' leave
zap 'Fine Leather Tunic Vallens'
put 'Fine Leather Tunic Vallens' leave
get elm satch
hold elm
get 'Fine Leather Headband Vallens' leave
zap 'Fine Leather Headband Vallens'
put 'Fine Leather Headband Vallens' leave
get 'Fine Leather Leggings Vallens' leave
zap 'Fine Leather Leggings Vallens'
put 'Fine Leather Leggings Vallens' leave
get 'Fine Leather Boots Vallens' leave
zap 'Fine Leather Boots Vallens'
put 'Fine Leather Boots Vallens' leave
get 'Fine Leather Sleeves Vallens' leave
zap 'Fine Leather Sleeves Vallens'
put 'Fine Leather Sleeves Vallens' leave
get 'Fine Leather Gloves Vallens' leave
zap 'Fine Leather Gloves Vallens'
put 'Fine Leather Gloves Vallens' leave
remove elm
hold 'knight doll'
drop elm
sac elm
}
("vallens") {
get elm satch
hold elm
remove 'fine leather Tunic vallens'
zap 'fine leather Tunic vallens'
wear 'fine leather Tunic vallens'
remove 'fine leather Headband vallens'
zap 'fine leather Headband vallens'
wear 'fine leather Headband vallens'
remove 'fine leather Leggings vallens'
zap 'fine leather Leggings vallens'
wear 'fine leather Leggings vallens'
remove 'fine leather Boots vallens'
zap 'fine leather Boots vallens'
wear 'fine leather Boots vallens'
remove 'fine leather Sleeves vallens'
zap 'fine leather Sleeves vallens'
wear 'fine leather Sleeves vallens'
remove 'fine leather Gloves vallens'
zap 'fine leather Gloves vallens'
wear 'fine leather Gloves vallens'
}
("vallens camo") {
get 'Well-made Leather Tunic Camo' leave
zap 'Well-made Leather Tunic Camo'
put 'Well-made Leather Tunic Camo' leave
get elm satch
hold elm
get 'Well-made Leather Headband Camo' leave
zap 'Well-made Leather Headband Camo'
put 'Well-made Leather Headband Camo' leave
get 'Well-made Leather Leggings Camo' leave
zap 'Well-made Leather Leggings Camo'
put 'Well-made Leather Leggings Camo' leave
get 'Well-made Leather Boots Camo' leave
zap 'Well-made Leather Boots Camo'
put 'Well-made Leather Boots Camo' leave
get 'Well-made Leather Sleeves Camo' leave
zap 'Well-made Leather Sleeves Camo'
put 'Well-made Leather Sleeves Camo' leave
get 'Well-made Leather Gloves Camo' leave
zap 'Well-made Leather Gloves Camo'
put 'Well-made Leather Gloves Camo' leave
remove elm
hold 'purple mojo bone'
drop elm
sac elm
}
} {General Aliases}
|
However, this alias does not have an error and the only difference is a few lines that go to the MUD and I can't see how they affect CMUD parsing:
Code: |
#wait 400
#say Loading Yasan's Bless...
#al Bless {
#switch (%params)
("standard") {
get elm satch
hold elm
remove 'Austinian Amulet'
put 'Austinian Amulet' leave
remove 'Austinian Amulet'
zap 'Austinian Amulet'
wear 'Austinian Amulet'
get 'Austinian Amulet' leave
zap 'Austinian Amulet'
wear 'Austinian Amulet'
remove 'fine bracer'
put 'fine bracer' leave
remove 'fine bracer'
zap 'fine bracer'
wear 'fine bracer'
get 'fine bracer' leave
zap 'fine bracer'
wear 'fine bracer'
remove 'netherium staff'
zap 'netherium staff'
wear 'netherium staff'
remove 'jade dragon'
zap 'jade dragon'
wear 'jade dragon'
remove 'quiver rune'
zap 'quiver rune'
wear 'quiver rune'
get elm satch
wear elm
}
("hit") {
remove 'Sceptre Might'
zap 'Sceptre Might'
wear 'Sceptre Might'
#wait 3000
remove 'gray robe'
zap 'gray robe'
wear 'gray robe'
remove 'sword sheath'
zap 'sword sheath'
wear 'sword sheath'
get elm satch
hold elm
zap 'knight doll'
get 'Sea Dragon' leave
zap 'Sea Dragon'
put 'Sea Dragon' leave
#wait 3000
get 'robe Austinian' leave
zap 'robe Austinian'
put 'robe Austinian' leave
get 'gold lion girth' leave
zap 'gold lion girth'
put 'gold lion girth' leave
get elm satch
hold elm
zap 'purple mojo bone'
}
("mana") {
remove 'robe austinian'
zap 'robe austinian'
wear 'robe austinian'
remove 'gold lion girth'
zap 'gold lion girth'
wear 'gold lion girth'
zap 'purple mojo bone'
remove 'Sea Dragon'
zap 'Sea Dragon'
wear 'Sea Dragon'
get 'Sceptre Might' leave
zap 'Sceptre Might'
put 'Sceptre Might' leave
get 'Gray Robe' leave
zap 'Gray Robe'
put 'Gray Robe' leave
get 'sword sheath' leave
zap 'sword sheath'
put 'sword sheath' leave
get elm satch
hold elm
get 'knight doll' leave
zap 'knight doll'
put 'knight doll' leave
}
("camo") {
remove 'Well-made Leather Tunic Camo'
zap 'Well-made Leather Tunic Camo'
wear 'Well-made Leather Tunic Camo'
remove 'Well-made Leather Headband Camo'
zap 'Well-made Leather Headband Camo'
wear 'Well-made Leather Headband Camo'
remove 'Well-made Leather Leggings Camo'
zap 'Well-made Leather Leggings Camo'
wear 'Well-made Leather Leggings Camo'
remove 'Well-made Leather Boots Camo'
zap 'Well-made Leather Boots Camo'
wear 'Well-made Leather Boots Camo'
remove 'Well-made Leather Sleeves Camo'
zap 'Well-made Leather Sleeves Camo'
wear 'Well-made Leather Sleeves Camo'
remove 'Well-made Leather Gloves Camo'
zap 'Well-made Leather Gloves Camo'
wear 'Well-made Leather Gloves Camo'
}
("camo vallens") {
get elm satch
hold elm
get 'Fine Leather Tunic Vallens' leave
zap 'Fine Leather Tunic Vallens'
put 'Fine Leather Tunic Vallens' leave
get 'Fine Leather Headband Vallens' leave
zap 'Fine Leather Headband Vallens'
put 'Fine Leather Headband Vallens' leave
get 'Fine Leather Leggings Vallens' leave
zap 'Fine Leather Leggings Vallens'
put 'Fine Leather Leggings Vallens' leave
get 'Fine Leather Boots Vallens' leave
zap 'Fine Leather Boots Vallens'
put 'Fine Leather Boots Vallens' leave
get 'Fine Leather Sleeves Vallens' leave
zap 'Fine Leather Sleeves Vallens'
put 'Fine Leather Sleeves Vallens' leave
get 'Fine Leather Gloves Vallens' leave
zap 'Fine Leather Gloves Vallens'
put 'Fine Leather Gloves Vallens' leave
remove elm
hold 'knight doll'
drop elm
sac elm
}
("vallens") {
remove 'fine leather Tunic vallens'
zap 'fine leather Tunic vallens'
wear 'fine leather Tunic vallens'
remove 'fine leather Headband vallens'
zap 'fine leather Headband vallens'
wear 'fine leather Headband vallens'
remove 'fine leather Leggings vallens'
zap 'fine leather Leggings vallens'
wear 'fine leather Leggings vallens'
remove 'fine leather Boots vallens'
zap 'fine leather Boots vallens'
wear 'fine leather Boots vallens'
remove 'fine leather Sleeves vallens'
zap 'fine leather Sleeves vallens'
wear 'fine leather Sleeves vallens'
remove 'fine leather Gloves vallens'
zap 'fine leather Gloves vallens'
wear 'fine leather Gloves vallens'
}
("vallens camo") {
get elm satch
hold elm
get 'Well-made Leather Tunic Camo' leave
zap 'Well-made Leather Tunic Camo'
put 'Well-made Leather Tunic Camo' leave
get 'Well-made Leather Headband Camo' leave
zap 'Well-made Leather Headband Camo'
put 'Well-made Leather Headband Camo' leave
get 'Well-made Leather Leggings Camo' leave
zap 'Well-made Leather Leggings Camo'
put 'Well-made Leather Leggings Camo' leave
get 'Well-made Leather Boots Camo' leave
zap 'Well-made Leather Boots Camo'
put 'Well-made Leather Boots Camo' leave
get 'Well-made Leather Sleeves Camo' leave
zap 'Well-made Leather Sleeves Camo'
put 'Well-made Leather Sleeves Camo' leave
get 'Well-made Leather Gloves Camo' leave
zap 'Well-made Leather Gloves Camo'
put 'Well-made Leather Gloves Camo' leave
remove elm
hold 'purple mojo bone'
drop elm
sac elm
}
} {General Aliases}
|
What is different between the two that causes one to err and the other not... ? |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Thu May 29, 2008 6:30 pm |
I modified the working one like the non-working one and it worked... there has to be something tiny that I'm missing but the Editor debugger isn't helping me figure it out any. Likely cause I don't know it enough...
Code: |
#al Bless {
#switch (%params)
("standard") {
get elm satch
hold elm
remove 'Austinian Amulet'
put 'Austinian Amulet' leave
remove 'Austinian Amulet'
zap 'Austinian Amulet'
wear 'Austinian Amulet'
get 'Austinian Amulet' leave
zap 'Austinian Amulet'
wear 'Austinian Amulet'
remove 'fine bracer'
put 'fine bracer' leave
remove 'fine bracer'
zap 'fine bracer'
wear 'fine bracer'
get 'fine bracer' leave
zap 'fine bracer'
wear 'fine bracer'
remove 'netherium staff'
zap 'netherium staff'
wear 'netherium staff'
remove 'jade dragon'
zap 'jade dragon'
wear 'jade dragon'
remove 'quiver rune'
zap 'quiver rune'
wear 'quiver rune'
get elm satch
wear elm
}
("hit") {
remove 'Sceptre Might'
zap 'Sceptre Might'
wear 'Sceptre Might'
#wait 3000
remove 'gray robe'
zap 'gray robe'
wear 'gray robe'
remove 'sword sheath'
zap 'sword sheath'
wear 'sword sheath'
get elm satch
hold elm
zap 'knight doll'
get 'Sea Dragon' leave
zap 'Sea Dragon'
put 'Sea Dragon' leave
#wait 3000
get 'robe Austinian' leave
zap 'robe Austinian'
put 'robe Austinian' leave
get 'gold lion girth' leave
zap 'gold lion girth'
put 'gold lion girth' leave
}
("mana") {
remove 'robe austinian'
zap 'robe austinian'
wear 'robe austinian'
remove 'gold lion girth'
zap 'gold lion girth'
wear 'gold lion girth'
remove 'Sea Dragon'
zap 'Sea Dragon'
wear 'Sea Dragon'
get 'Sceptre Might' leave
zap 'Sceptre Might'
put 'Sceptre Might' leave
get 'Gray Robe' leave
zap 'Gray Robe'
put 'Gray Robe' leave
get 'sword sheath' leave
zap 'sword sheath'
put 'sword sheath' leave
get 'knight doll' leave
zap 'knight doll'
put 'knight doll' leave
}
("camo") {
get elm satch
hold elm
remove 'Well-made Leather Tunic Camo'
zap 'Well-made Leather Tunic Camo'
wear 'Well-made Leather Tunic Camo'
remove 'Well-made Leather Headband Camo'
zap 'Well-made Leather Headband Camo'
wear 'Well-made Leather Headband Camo'
remove 'Well-made Leather Leggings Camo'
zap 'Well-made Leather Leggings Camo'
wear 'Well-made Leather Leggings Camo'
remove 'Well-made Leather Boots Camo'
zap 'Well-made Leather Boots Camo'
wear 'Well-made Leather Boots Camo'
remove 'Well-made Leather Sleeves Camo'
zap 'Well-made Leather Sleeves Camo'
wear 'Well-made Leather Sleeves Camo'
remove 'Well-made Leather Gloves Camo'
zap 'Well-made Leather Gloves Camo'
wear 'Well-made Leather Gloves Camo'
}
("camo vallens") {
get 'Fine Leather Tunic Vallens' leave
zap 'Fine Leather Tunic Vallens'
put 'Fine Leather Tunic Vallens' leave
get elm satch
hold elm
get 'Fine Leather Headband Vallens' leave
zap 'Fine Leather Headband Vallens'
put 'Fine Leather Headband Vallens' leave
get 'Fine Leather Leggings Vallens' leave
zap 'Fine Leather Leggings Vallens'
put 'Fine Leather Leggings Vallens' leave
get 'Fine Leather Boots Vallens' leave
zap 'Fine Leather Boots Vallens'
put 'Fine Leather Boots Vallens' leave
get 'Fine Leather Sleeves Vallens' leave
zap 'Fine Leather Sleeves Vallens'
put 'Fine Leather Sleeves Vallens' leave
get 'Fine Leather Gloves Vallens' leave
zap 'Fine Leather Gloves Vallens'
put 'Fine Leather Gloves Vallens' leave
remove elm
hold 'knight doll'
drop elm
sac elm
}
("vallens") {
get elm satch
hold elm
remove 'fine leather Tunic vallens'
zap 'fine leather Tunic vallens'
wear 'fine leather Tunic vallens'
remove 'fine leather Headband vallens'
zap 'fine leather Headband vallens'
wear 'fine leather Headband vallens'
remove 'fine leather Leggings vallens'
zap 'fine leather Leggings vallens'
wear 'fine leather Leggings vallens'
remove 'fine leather Boots vallens'
zap 'fine leather Boots vallens'
wear 'fine leather Boots vallens'
remove 'fine leather Sleeves vallens'
zap 'fine leather Sleeves vallens'
wear 'fine leather Sleeves vallens'
remove 'fine leather Gloves vallens'
zap 'fine leather Gloves vallens'
wear 'fine leather Gloves vallens'
}
("vallens camo") {
get 'Well-made Leather Tunic Camo' leave
zap 'Well-made Leather Tunic Camo'
put 'Well-made Leather Tunic Camo' leave
get elm satch
hold elm
get 'Well-made Leather Headband Camo' leave
zap 'Well-made Leather Headband Camo'
put 'Well-made Leather Headband Camo' leave
get 'Well-made Leather Leggings Camo' leave
zap 'Well-made Leather Leggings Camo'
put 'Well-made Leather Leggings Camo' leave
get 'Well-made Leather Boots Camo' leave
zap 'Well-made Leather Boots Camo'
put 'Well-made Leather Boots Camo' leave
get 'Well-made Leather Sleeves Camo' leave
zap 'Well-made Leather Sleeves Camo'
put 'Well-made Leather Sleeves Camo' leave
get 'Well-made Leather Gloves Camo' leave
zap 'Well-made Leather Gloves Camo'
put 'Well-made Leather Gloves Camo' leave
remove elm
hold 'purple mojo bone'
drop elm
sac elm
}
} {General Aliases}
|
|
|
|
|
Rahab Wizard
Joined: 22 Mar 2007 Posts: 2320
|
Posted: Thu May 29, 2008 8:49 pm |
You don't have enough spaces before ("camo")
The easy way to find the problem is to click on Editor|Check Syntax in the Package Editor. This immediately told me where the problem was. |
|
|
|
chamenas Wizard
Joined: 26 Mar 2008 Posts: 1547
|
Posted: Thu May 29, 2008 11:11 pm |
It told me where it was, but I didn't see anything. The spacing looked the same to me
|
|
|
|
|
|