![]() |
getplayer
I have had several instances that i would like to know how to use getplayer. I need this for a new wep i made that basically your guy teleports to the nearest player and then circles him while slashing him with the sword.
|
Read this before posting! http://forums.graal2001.com/forums/announcement.php?f=8
|
1 Attachment(s)
Read the documents in the attatchment. they are getting old and somewhat outdated, but they contain a wealth of knowledge I am sure you will find usefull. *note I put my updated commands.rtf in there too, since there was an old one... or something, this is a semi-long note*
Edit: Kjetil, the search function is still broke, so that doesn't do him any good, sad but true |
Hm. Search Worked for me, but it only found this thread and the one Loriel closed, so I guess it's broken.
|
yeah, it only finds threads created after the update, which isn't all that usefull :\
|
It's not basically only getplayer, it envolves other things that you probably don't know how to work too; And to be honest it is not that easy for people that don't know much about scripting.
|
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...
|
Quote:
Quote:
Quote:
Quote:
NPC Code:with(getplayer(accountname)) { |
Quote:
|
npcserver.rtf is specific enough.
|
I find it funny how five of those scripters above went insane when someone said it was "new" lmao.
|
Quote:
|
Hey, I just skimmed over the post, not my fault I said five =P.
|
Quote:
NPC Code: 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. |
Quote:
|
Iam not to great at Scripting ill just stick to my level makeing and Pixel art ;)
|
Quote:
|
1 thing don't work Clientside try it server side command still not working
maybe cause its an offline mode command like few other but most of them work serverside/clientside |
Quote:
Quote:
|
Ok....its new to me cus for the past 2 years ive made single player adventure games so its new for me.....also with(index) is thhe correct format right not with(players[index])
|
No, not really.
|
Quote:
NPC Code: There are a bunch of others players[index] variables too, not only .id; Learning scripting is just an act of read, comprehend and test. |
... at which you apparently fail. with (players[i]).
|
Quote:
|
Nope. :)
|
Quote:
|
Sorry for my wrong information falco10291029, next time i will make sure to post correct things. :)
Quote:
And i knew it wasn't possible to put the .id outside the ()'s, i was being sarcastic. |
ok yeh i testes after i posted and i was wrong so now i get it i still have some problems with such things but im learning by either geuss and chack or by looking at other scripts that i know what they do thewn seeing how they do it, and absorbing that info into my mind to use. When i first started scripting, i didnt even know how to make weps lol.
|
All times are GMT +2. The time now is 10:53 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.