First off here's the part of the function in the class:
PHP Code:
function reflectItem(arch, pre, suf, id)
{
echo("[ItemReflect]");
file = new TStaticVar();
TObj = new TStaticVar();
TObj.id = id;
TObj.qty = this.item.qty;
if (this.item != NULL) {
echo("Object exists");
file.loadVars("mud/archetypes/" @ arch @ ".arc"); // Problem found, file is not loading the vars.
echo(file.getVarNames());
echo("Loaded vars and removed vars...");
for(var : file.getDynamicVarNames()) {
TObj.(@ var) = file.(@ var);
echo("[ItemReflect]:" SPC var @ "=" @ file.(@ var));
}
}
The problem is, the "file" object is not returning any of the vars it's loading. >_> What the hell is going on here.