Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   if (onwater) help needed (https://forums.graalonline.com/forums/showthread.php?t=3456)

Cyboars 05-24-2001 03:20 AM

if (onwater) help needed
 
I'm working on a script that if a player is "onwater" it acts like they're on grass...

would it be
NPC Code:

if (onwater){
ongrass;}


if not all I know is that it should involve players "walking" on water and crap.

LiquidIce00 05-24-2001 04:35 AM

onwater isnt like it sets the animation to it ..

(might be buggy just posted it here , not tested)

this wont 'act' like its on grass but it looks like ur on grass.

//1.5 to x and 1.5 to y to check if player is on in the water
if (onwater(playerx+1.5,playery+1.5)) {
//check to see if player is moving
if (keydown(0)||keydown(1)||keydown(2)||keydown(3)) {
//if so make him the walk gani
if (!strequals(#m,walk)) { setani walk,; }
}
//else idle gani
else { if (!strequals(#m,idle)) { setani idle,; } }
}

Cyboars 05-24-2001 05:02 AM

I'll try that when I redownload graal when I get my hard drive..maybe a 400 gig one..

everandom 05-25-2001 03:45 PM

is there anyway to make people get hit in water???


All times are GMT +2. The time now is 02:17 PM.

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