Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-14-2005, 03:55 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
player.x/y in |min,max|

The condition 'player.x/y in |min,max|' always returns false, no matter what the values are. I have to use <= and >= if I want to check if the player's x or y is in a range. I don't know if this is intended, but this problem has been around for a long time.
Reply With Quote
  #2  
Old 11-14-2005, 05:17 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
It seems to be working fine for me:
NPC Code:

//#CLIENTSIDE
function onCreated() {
setTimer(.05);
}
function onTimeout() {
if (player.x in |30,40|)
player.chat = "TRUE";
else
player.chat = player.x;
setTimer(.05);
}

__________________

Reply With Quote
  #3  
Old 11-14-2005, 06:31 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Works for me too.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #4  
Old 11-14-2005, 06:32 AM
Lance Lance is offline
dark overlord
Lance's Avatar
Join Date: Sep 2003
Location: Space Jam Mountain
Posts: 5,072
Lance is on a distinguished road
What about serverside?
Reply With Quote
  #5  
Old 11-14-2005, 06:53 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally Posted by Lance
What about serverside?
Also works.
__________________

Reply With Quote
  #6  
Old 11-14-2005, 02:33 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
In new scripting engine you cannot do
PHP Code:
x,y in |min,max
anymore, you need to do
PHP Code:
x in |min,max| && y in |min,max
(that would work in both engines) or
PHP Code:
{x,yin |min,max
which wouldn't work in old engine though
Reply With Quote
  #7  
Old 11-16-2005, 12:41 AM
Yen Yen is offline
Banned
Yen's Avatar
Join Date: Oct 2005
Location: Nova Scotia, Canada
Posts: 1,085
Yen is an unknown quantity at this point
Send a message via AIM to Yen Send a message via MSN to Yen
Er.. Yeah, I mean't x or y, not x,y.

That's really strange.. It won't work for me, serverside or clientside.
Reply With Quote
  #8  
Old 11-17-2005, 10:37 AM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally Posted by Yen
Er.. Yeah, I mean't x or y, not x,y.

That's really strange.. It won't work for me, serverside or clientside.
What server/script is it? I will look at it when I have time (not sure when that will be, kind of busy lately).
__________________

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 04:12 AM.


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