Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   fast tile checking? (https://forums.graalonline.com/forums/showthread.php?t=8940)

Solareon 08-05-2001 11:35 AM

fast tile checking?
 
do any of you have a code snippet to do a really fast tile heck to see if a tile is water or not? and then set a flag?

grim_squeaker_x 08-05-2001 06:02 PM

NPC Code:
if (onwater(x,y)) set flag;


Solareon 08-05-2001 08:06 PM

does it have to set a flag or can that just be used as a trigger to set something?

Slaktmaster 08-05-2001 11:01 PM

if (onwater(x,y)) {
do a lot of stuff;
lay cookie;
lay bag of hell;
}

SkooL 08-05-2001 11:57 PM

Quote:

Originally posted by Slaktmaster
lay bag of hell;
There are no spaces in items lain. :rolleyes:

CrazedMerlin 08-06-2001 12:40 AM

you can also do the bridges like on graal2001 so you can go under them in watter and on them on land like
if (playertouchsme&&(onwater)) {dontblock;
drawoverplayer;}
else
if (playertouchsme&&(!onwater)) {dontblock;
drawoverplayer;}

zokemon 08-06-2001 03:42 AM

Quote:

Originally posted by CrazedMerlin
you can also do the bridges like on graal2001 so you can go under them in watter and on them on land like
if (playertouchsme&&(onwater)) {dontblock;
drawoverplayer;}
else
if (playertouchsme&&(!onwater)) {dontblock;
drawoverplayer;}

what??? ether way it would be over plaer noits like this;

if (playerenters) dontblock;
while (!isweapon) {
if (onwater) drawoverplayer;
else drawunderplayer;
sleep 0.05;
}

CrazedMerlin 08-06-2001 04:03 AM

Quote:

Originally posted by zokemon

what??? ether way it would be over plaer noits like this;

if (playerenters) dontblock;
while (!isweapon) {
if (onwater) drawoverplayer;
else drawunderplayer;
sleep 0.05;
}

speak english

LiquidIce00 08-06-2001 04:09 AM

Quote:

Originally posted by CrazedMerlin
speak english
learn how to script

CrazedMerlin 08-06-2001 04:34 AM

Quote:

Originally posted by LiquidIce00


learn how to script

learn how to make a good playerworld.

ownerofbabylon 08-06-2001 06:27 AM

The war of the greats ^_^ I cant be in it though cuz im not great :(

entravial 08-06-2001 01:46 PM

exactly!

Slaktmaster 08-06-2001 03:36 PM

*throws tiles at liquidice and evtravial*


All times are GMT +2. The time now is 07:03 PM.

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