Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   getplayer (https://forums.graalonline.com/forums/showthread.php?t=53094)

falco10291029 06-11-2004 06:14 PM

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.

VeX_RaT_Boy 06-11-2004 06:15 PM

Read this before posting! http://forums.graal2001.com/forums/announcement.php?f=8

Dach 06-11-2004 06:19 PM

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

VeX_RaT_Boy 06-11-2004 06:24 PM

Hm. Search Worked for me, but it only found this thread and the one Loriel closed, so I guess it's broken.

Dach 06-11-2004 06:30 PM

yeah, it only finds threads created after the update, which isn't all that usefull :\

osrs 06-11-2004 06:43 PM

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.

falco10291029 06-11-2004 11:00 PM

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...

Lance 06-11-2004 11:05 PM

Quote:

Originally Posted by falco10291029
I know more about scripting than most people

...*stabs*

Quote:

its just the newer commands that go with servers and stuff that tend to confuse me,
They aren't that new.

Quote:

but i have been an NAT on a couple servers b4 the one im on now.
This truly lends credibility to your first statement.

Quote:

Also i still just want to know how to use the getplayer command, its not very specific in the document...
Serverside:
NPC Code:
with(getplayer(accountname)) {


Python523 06-11-2004 11:08 PM

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...

new? NEW?! the npcserver has been around for 2-3 years. That excuse doesn't work anymore

Xecutor 06-11-2004 11:11 PM

npcserver.rtf is specific enough.

Malinko 06-11-2004 11:17 PM

I find it funny how five of those scripters above went insane when someone said it was "new" lmao.

Lance 06-11-2004 11:19 PM

Quote:

Originally Posted by Malinko
I find it funny how five of those scripters above went insane when someone said it was "new" lmao.

I find it funny that not only do you lack the ability to count but you also cannot distinguish between 'insane' and 'disgust'.

Malinko 06-11-2004 11:21 PM

Hey, I just skimmed over the post, not my fault I said five =P.

osrs 06-12-2004 02:25 AM

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.

Python523 06-12-2004 04:20 AM

Quote:

Originally Posted by osrs
It's syntax is like what Lance said.
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.

why use getplayer when you can do players[index]...


All times are GMT +2. The time now is 01:44 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.