Quote:
|
Originally Posted by falco10291029
I know more about scripting than most people, its just the newer commands that go with servers and stuff that tend to confuse me, but i have been an NAT on a couple servers b4 the one im on now. Also i still just want to know how to use the getplayer command, its not very specific in the document...
|
It's syntax is like what Lance said.
NPC Code:
with(getplayer(osrs)){
setplayerprop #3,head1172.png;
}
Will change osrs's head!
On your system, i would tell you to use
getnearestplayers(); wich will return into an array of player's indexs. So get the first index (it's the nearest player) and get its account name,then use
getplayer() to act on the specified player and do whatever you want.