Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-24-2007, 08:21 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
findnearestplayers()

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

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #2  
Old 08-25-2007, 02:24 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
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
__________________
Stan.
Reply With Quote
  #3  
Old 08-25-2007, 07:33 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
Quote:
Originally Posted by Kyranki View Post
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?
__________________
**FLIP OUT**
Reply With Quote
  #4  
Old 08-25-2007, 08:24 AM
Kyranki Kyranki is offline
Freelance Coder
Join Date: Aug 2007
Location: At the end of the rainbow, in the pot of gold.
Posts: 202
Kyranki is on a distinguished road
Send a message via AIM to Kyranki Send a message via MSN to Kyranki
Quote:
Originally Posted by theHAWKER View Post
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?
__________________
Stan.
Reply With Quote
  #5  
Old 08-25-2007, 09:15 AM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by theHAWKER View Post
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.
__________________
Reply With Quote
  #6  
Old 08-25-2007, 09:37 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by theHAWKER View Post
so if u where on a better server like, for example, graal legacy, would it not work?
__________________
Do it with a DON!
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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