PDA

View Full Version : Help?


JungleKid
04-23-2001, 10:06 AM
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?

Nai
04-23-2001, 10:33 AM
try this

if (playerx=blah&&playery=blah){
put the script command here;
}

KJS
04-23-2001, 10:49 AM
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