Graal Forums

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

Darkspector 08-06-2002 02:10 PM

Shhhhhh
 
can some one help me with an npc that doesn't allow ppl to talk in a certain block of the level?

Python523 08-06-2002 02:17 PM

use in, like playerx |1,10|

Dark-Dragoon 08-06-2002 10:29 PM

say.....
if playerx=whatever-watever, like 1-5,
if playery=whateva-wateva, im not sure if the number-number is how it should be tho.
but if blah-
just set thier #c to blank

SingleChance 08-06-2002 11:53 PM

lol
 
if (playerenters){
if (playerx=30){show;}
}
that im a nooby...

HoudiniMan 08-07-2002 12:01 AM

NPC Code:

if (playerx |x1,x2| && playery |y1,y2| ) {
setplayerprop #c,;
}


.... i think?
that would make a 10 square tile box with corners x1,y1 and x2,y2... i'm sure somebody in here will correct my syntax errors, i've never used "in"... the principle is the same though.

Python523 08-07-2002 02:55 AM

Quote:

Originally posted by HoudiniMan
NPC Code:

if (playerx |x1,x2| && playery |y1,y2| ) {
setplayerprop #c,;
}


.... i think?
that would make a 10 square tile box with corners x1,y1 and x2,y2... i'm sure somebody in here will correct my syntax errors, i've never used "in"... the principle is the same though.

it would be |x+1,x+2|


All times are GMT +2. The time now is 05:33 PM.

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