Let's say you have a class like '
item_functions' with a function like this:
PHP Code:
function loadItemByPath(path) {
temp.item = new TStaticVar();
item.loadVars(path);
return item;
}
...then you can do stuff like
PHP Code:
function onCreated() {
this.join("item_functions");
temp.path = "items/cb/cbk1994/item_1492032.txt";
temp.item = loadItemByPath(path);
item.power += 5;
item.saveVars(path, false);
}
to update it.