Quote:
Originally Posted by Alpho
Oh thanks, I see that now. This works:
how do you suppose I can get the 'player' object, 'in sight' ?
|
If you're trying to set the value when the player logins you can do so in the onActionPlayerOnline function in Control-NPC or onPlayerLogin in other scripts.
If you want to 'find' the player object you can do like this:
findplayer("Graal756204").clientr.flag = this.acc_Graal756204;
or you can use with a statement:
PHP Code:
function onCreated() {
this.acc_Graal756204 = 4;
with (findplayer("Graal756204")) {
// You have to use thiso instead of just this because the
// with statement changes the scope to the player object.
clientr.flag = thiso.("acc_" @ player.account);
}
}