Graal Forums

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

coreys 08-24-2007 08:21 PM

findnearestplayers()
 
Does anyone know how findnearestplayers() and/or getnearestplayers() works clientside? The wiki's down so I'm kind of in a predicament here.

Kyranki 08-25-2007 02:24 AM

Rawr, it runs a loop through the nearest players from a certain x and y. So for example if we were on Maloria and you were say two tiles away from me....

PHP Code:

//#CLIENTSIDE
function onCreated() {
  for (
temp.pl getNearestPlayers(player.xplayer.y)) {
    echo(
temp.pl.account);
  }


I believe it returns objects so that should echo my account and your account, if we were on maloria for example. :P

theHAWKER 08-25-2007 07:33 AM

Quote:

Originally Posted by Kyranki (Post 1342771)
Rawr, it runs a loop through the nearest players from a certain x and y. So for example if we were on Maloria and you were say two tiles away from me....

PHP Code:

//#CLIENTSIDE
function onCreated() {
  for (
temp.pl getNearestPlayers(player.xplayer.y)) {
    echo(
temp.pl.account);
  }


I believe it returns objects so that should echo my account and your account, if we were on maloria for example. :P

so if u where on a better server like, for example, graal legacy, would it not work?

Kyranki 08-25-2007 08:24 AM

Quote:

Originally Posted by theHAWKER (Post 1342814)
so if u where on a better server like, for example, graal legacy, would it not work?

That looks like a really cheap way to say that your server is better than Maloria. Could you clarify please?

Inverness 08-25-2007 09:15 AM

Quote:

Originally Posted by theHAWKER (Post 1342814)
so if u where on a better server like, for example, graal legacy, would it not work?

Keep that crap out of the this forum, this is for NPC Scripting not your competitions.

zokemon 08-25-2007 09:37 AM

Quote:

Originally Posted by theHAWKER (Post 1342814)
so if u where on a better server like, for example, graal legacy, would it not work?

:\


All times are GMT +2. The time now is 03:45 AM.

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