Graal Forums

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

VeX_RaT_Boy 06-28-2004 06:27 PM

getnearest.....
 
Can someone tell me all of the new(?) getnearest/getarea variables? Like the variable, and what it does...

DarkShadows_Legend 06-28-2004 06:58 PM

NPC Code:

getnearestplayer(x,y)


Returns the index of the player closest to the x,y coordinate. I believe it works serverside only.

There was some other ones Stefan mentioned in that tutorial he stickied above.

osrs 06-28-2004 07:06 PM

Somes that i know of.

Quote:

getnearestplayer(x,y) - gets the index of the nearest player
getnearestplayers( x,y,condition) - gets the indecies of the nearest players as array, according to the condition
getareanpcs(x,y,width,height) - gets the indecies of all npcs within the given parameters (turns into an array too i think)

VeX_RaT_Boy 06-28-2004 07:59 PM

Hmm, thanks.

Dach 06-28-2004 08:37 PM

they're all in my updated commands (look in sig)

VeX_RaT_Boy 06-29-2004 12:55 AM

Ahh...nice.

I look through it, and I see

saveinfo string,string; saves info as info (server-side)

Anyone mind telling where the info getsa saved?


All times are GMT +2. The time now is 10:48 AM.

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