Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 02-05-2009, 12:36 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
testnpc2

PHP Code:
testnpc2xywidthheight);

EXAMPLE:
testnpc2player.1player.1player.3player.4); 
simply how, onwall2 improved onwall. I'm very disappointed this has yet to be implemented, should be done for all test objects (testplayer, testitem, etc)
__________________
Deep into the Darkness peering...
Reply With Quote
  #2  
Old 02-05-2009, 12:47 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
PHP Code:
TServerLevel.findareanpcs(floatfloatfloatfloat) - returns object
TServerLevel
.getareanpcs(floatfloatfloatfloat) - returns object 
Example:
PHP Code:
for (temp.nfindareanpcs(this.xthis.y44)) {
  if (
temp.n.30) {
    
temp.n.chat "Hello";
  }

__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #3  
Old 02-05-2009, 01:11 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
Oh wow, thanks, xp, rep++

but!

I want, kinda need, it so i can put it in a simple if statement with other variables to check with.
__________________
Deep into the Darkness peering...
Reply With Quote
  #4  
Old 02-05-2009, 01:15 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by Angel_Light View Post
Oh wow, thanks, xp, rep++

but!

I want, kinda need, it so i can put it in a simple if statement with other variables to check with.
Not following.
Reply With Quote
  #5  
Old 02-05-2009, 01:16 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by Angel_Light View Post
Oh wow, thanks, xp, rep++

but!

I want, kinda need, it so i can put it in a simple if statement with other variables to check with.
You'll have to explain it a little better.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #6  
Old 02-05-2009, 01:19 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
If you put it in a loop like Tig had, each instance of n will be a variable that you can manipulate and extract information from. No different than what you requested. More specifically, each instance will be one of the NPCs.

Last edited by DustyPorViva; 02-05-2009 at 01:45 AM..
Reply With Quote
  #7  
Old 02-05-2009, 01:38 AM
Angel_Light Angel_Light is offline
Varia Developer
Angel_Light's Avatar
Join Date: Nov 2005
Location: Knoxville, TN
Posts: 1,684
Angel_Light is on a distinguished road
Send a message via AIM to Angel_Light Send a message via MSN to Angel_Light
dusty got it, ill explain it anyways, just as if i were using testnpc2 instead f that chunck
__________________
Deep into the Darkness peering...
Reply With Quote
  #8  
Old 02-05-2009, 10:26 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Well like if (findareanpcs(this.x, this.y, 4, 4).size() > 0) echo("detected an npc!"); ?
findareanpcs() is returning an array of npcs at the specified rectangle.
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 02:27 AM.


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