PHP Code:
public function addArc( arcname) {
obj = new TStaticVar();
obj.loadVars( "bladiebla/blabla/file.arc");
obj.arcnames.add( arcname); // mess a bitwith this ofcourse
obj.account = player.account;
obj.saveVars( "bladiebla/blabla/file.arc", 0);
}
Then make sure the player is joined to this, so put it in a joined class or so..
And do player.addArc( arcname); (eventually add an ammount param)