I haven't had a chance to test it yet, but I was reading through the script and spotted this error on line 1351:
PHP Code:
this.TVariableType.buildGuiControl = function()
{
this.weaponNPC.reportError("TVariableTyoe.buildGuiControl - Not defined.");
};
typo in the error report ;p obviously TVariableTyoe should be TVariableType
I also noticed at the bottom you left this comment:
PHP Code:
//This doesn't work at all inside TStaticVar objects apparently.
//this.dumpCallStack(temp.tempObject);
Except, I don't think the dumpCallStack() function works due to callstacks not functioning on the clientside (am I wrong? Please tell me I am

)