Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-24-2001, 03:20 AM
Cyboars Cyboars is offline
Registered User
Cyboars's Avatar
Join Date: Mar 2001
Location: Everwhere.
Posts: 209
Cyboars will become famous soon enough
Send a message via AIM to Cyboars Send a message via Yahoo to Cyboars
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.
__________________


Returned to Graal 2/1/02
Reply With Quote
  #2  
Old 05-24-2001, 04:35 AM
LiquidIce00 LiquidIce00 is offline
RadioActive Monkeeh
LiquidIce00's Avatar
Join Date: Apr 2001
Location: dirty south
Posts: 2,112
LiquidIce00 is on a distinguished road
Send a message via ICQ to LiquidIce00 Send a message via AIM to LiquidIce00 Send a message via Yahoo to LiquidIce00
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,; } }
}
__________________
LiquidIce *Owner* (UnholyNation)
-UN Website
http://www.unholynation.com
-UN Forum
http://forums.unholynation.com
-
-the thinker
-

-
onwall2 for nonp2p (i suck at onwall)
Reply With Quote
  #3  
Old 05-24-2001, 05:02 AM
Cyboars Cyboars is offline
Registered User
Cyboars's Avatar
Join Date: Mar 2001
Location: Everwhere.
Posts: 209
Cyboars will become famous soon enough
Send a message via AIM to Cyboars Send a message via Yahoo to Cyboars
I'll try that when I redownload graal when I get my hard drive..maybe a 400 gig one..
__________________


Returned to Graal 2/1/02
Reply With Quote
  #4  
Old 05-25-2001, 03:45 PM
everandom everandom is offline
Registered User
Join Date: Apr 2001
Posts: 286
everandom is on a distinguished road
is there anyway to make people get hit in water???
__________________
RaNdoM InSaNiTy
!!??!!??!!??!!??!!
I'm always been unwanted!!!
MY english kwap
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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