Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help? (https://forums.graalonline.com/forums/showthread.php?t=1723)

JungleKid 04-23-2001 09: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 09:33 AM

try this

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

KJS 04-23-2001 09:49 AM

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


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

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