View Single Post
  #9  
Old 09-07-2013, 07:35 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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(varinpc_script) {
  
// Find Variable
  
temp.aa npc_script.positions(vari);
  for (
temp.atemp.aa) {
    
// Check for Assignment
    
temp.npc_script.substring(temp.a);
    
temp.temp.s.pos("=");
    
temp.temp.s.pos(";");
    
// Make Sure Semi-Colon is After Assignment
    
if (temp.temp.c) {
      
// Ignore ""
      
if (temp.s.pos("\"\"") >= 0) return "";
      
// Determine Value
      
temp.temp.s.substring(temp.e+1);
      
temp.sc temp.s.pos(";");
      
temp.temp.s.substring(0, (temp.sc == -temp.s.length() : temp.sc));
      
temp.temp.s.trim();
      if (
temp.s.size() == 2) {
        
temp.s.delete(0);
        
temp.temp.s[0];
      }
      
// Remove Double-Quotes
      
while (temp.s.starts('"')) temp.temp.s.substring(0);
      while (
temp.s.ends('"')) temp.temp.s.substring(0,temp.s.length()-1);
      
// (0) White Color Fix
      
if (vari.starts("colors") && (temp.== "0")) {
        
temp."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.
Attached Files
File Type: txt olne.txt (38.7 KB, 796 views)
__________________
Quote:
Reply With Quote