There was a bug in getVarValue, values set to ( I.e. this.attr[1] = ""; ) would cause the script to hit the loop limit and break during the loading phase.
You can either replace getVarValue with this one, or re-download the script I'm going to attach.
PHP Code:
function getVarValue(vari, npc_script) {
// Find Variable
temp.aa = npc_script.positions(vari);
for (temp.a: temp.aa) {
// Check for Assignment
temp.s = npc_script.substring(temp.a);
temp.e = temp.s.pos("=");
temp.c = temp.s.pos(";");
// Make Sure Semi-Colon is After Assignment
if (temp.e < temp.c) {
// Ignore ""
if (temp.s.pos("\"\"") >= 0) return "";
// Determine Value
temp.s = temp.s.substring(temp.e+1);
temp.sc = temp.s.pos(";");
temp.s = temp.s.substring(0, (temp.sc == -1 ? temp.s.length() : temp.sc));
temp.s = temp.s.trim();
if (temp.s.size() == 2) {
temp.s.delete(0);
temp.s = temp.s[0];
}
// Remove Double-Quotes
while (temp.s.starts('"')) temp.s = temp.s.substring(0);
while (temp.s.ends('"')) temp.s = temp.s.substring(0,temp.s.length()-1);
// (0) White Color Fix
if (vari.starts("colors") && (temp.s == "0")) {
temp.s = "white";
}
// Return Value
return temp.s;
}
}
return NULL;
}
@Mods:
Remove the attachments from these posts:
http://forums.graalonline.com/forums...5&postcount=39
http://forums.graalonline.com/forums...1&postcount=42
http://forums.graalonline.com/forums...2&postcount=57
And update the script in my main post with this one or link it to here.