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 04-23-2001, 09:06 AM
JungleKid JungleKid is offline
Guest
JungleKid's Avatar
Join Date: Apr 2001
Location: Sussex, NJ
Posts: 782
JungleKid is on a distinguished road
Send a message via ICQ to JungleKid Send a message via AIM to JungleKid
I'm trying to script something like the Trading Post on 2001, but I can't get my for loops to detect when the players are standing at specific x and y coordinates. Help?
Reply With Quote
  #2  
Old 04-23-2001, 09:33 AM
Nai Nai is offline
Back!
Join Date: Mar 2001
Location: USA
Posts: 1,489
Nai is on a distinguished road
Send a message via AIM to Nai
try this

if (playerx=blah&&playery=blah){
put the script command here;
}
__________________
Reply With Quote
  #3  
Old 04-23-2001, 09:49 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Cool accually

for me I would say something like

if(playerx>15&&playerx<17&&playery>20&&playery<22) {
//coding
}

I say this because like so the user doesn't have to be in 1 exact spot. they can be in anywere with in the box.

a 2x2 box.
of course the x and y will have to be edited to were you would like it but hopefully you get the idea
__________________
Thanks,
-KJL
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:37 AM.


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