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 01-12-2002, 08:05 AM
MrSmiles MrSmiles is offline
Registered User
Join Date: Dec 2001
Location: Perth
Posts: 84
MrSmiles is on a distinguished road
Send a message via AIM to MrSmiles
teh Boat

Hi,
I recently posted the thread Boat Script and since have been ale to script my own. The problem is that the boat only stays in one level and will go over land... I need it to stay on water... can anyone help?

Cheers

MrSmiles
Attached Files
File Type: graal boat2.graal (606 Bytes, 188 views)
Reply With Quote
  #2  
Old 01-12-2002, 08:08 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Use canwarp for the warping thing but it will only work with the NPC Server
Reply With Quote
  #3  
Old 01-12-2002, 08:09 AM
MrSmiles MrSmiles is offline
Registered User
Join Date: Dec 2001
Location: Perth
Posts: 84
MrSmiles is on a distinguished road
Send a message via AIM to MrSmiles
I used canwarp...

-MrSmiles (It will be on p2p server)
Reply With Quote
  #4  
Old 01-12-2002, 09:40 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
canwarp and all that doesnt work offline only online

plz dont rock my boat *rocks the boat*
__________________
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
  #5  
Old 01-12-2002, 10:27 AM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
Re: teh Boat

(Sorry I can't help on this but) You guys seem to have forgotten the main part of his post:
Quote:
Originally posted by MrSmiles
I need it to stay on water... can anyone help?
__________________

-=Shard IceFire=-
Reply With Quote
  #6  
Old 01-12-2002, 12:04 PM
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
if (onwater(x,y)) { blabla; }
__________________
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
  #7  
Old 01-13-2002, 09:53 AM
Goboom Goboom is offline
Pixel Monkey
Goboom's Avatar
Join Date: Dec 2001
Location: Michigan
Posts: 1,702
Goboom is on a distinguished road
Send a message via ICQ to Goboom Send a message via AIM to Goboom Send a message via MSN to Goboom Send a message via Yahoo to Goboom
use attachplayertoobj....
__________________
Reply With Quote
  #8  
Old 01-15-2002, 08:33 AM
Sennema Sennema is offline
Registered User
Join Date: Nov 2001
Location: Ontario, Canada
Posts: 132
Sennema is on a distinguished road
Send a message via ICQ to Sennema Send a message via AIM to Sennema
Just have it check for a non-water tile ahead of the boat (!onwater(x,y)) might work, but I haven't bothered to check. Then if there is land ahead of the boat, make it not move forward or stop or blow up or whatever.
__________________
~Draemus Windblade


Just over 90% of all messages have no point or meaning.

"In order to preserve ourselves we seek out and eliminate anything that may do use harm. In doing so, we destroy things that, though possibly hazzardous, may be important to survival. So you see, in trying to save ourselves, we ultimately bring about our own destruction"


Luminar
Reply With Quote
  #9  
Old 01-16-2002, 04:01 AM
Mrmicro Mrmicro is offline
Registered User
Join Date: Mar 2001
Posts: 128
Mrmicro is on a distinguished road
Send a message via AIM to Mrmicro
Graal2k1 cant manage to make there boats stay on water.. haha
__________________
Reply With Quote
  #10  
Old 01-16-2002, 04:25 AM
AlexH AlexH is offline
Have A Drink On Me
AlexH's Avatar
Join Date: Jun 2001
Location: Somewhere In Time
Posts: 7,442
AlexH is on a distinguished road
Send a message via AIM to AlexH Send a message via MSN to AlexH
Quote:
Originally posted by Mrmicro
Graal2k1 cant manage to make there boats stay on water.. haha
the reason for that is that the boat is quite a large gfx and it reads the x and y co-ordinates of everything in graal from the top left corner of the gfx so thats what makes the NPC go a lil onto land
__________________
QUICK LOOK BUSY JESUS IS COMING!
Reply With Quote
  #11  
Old 01-16-2002, 04:46 AM
Mrmicro Mrmicro is offline
Registered User
Join Date: Mar 2001
Posts: 128
Mrmicro is on a distinguished road
Send a message via AIM to Mrmicro
Try this for it to stay off land



PHP Code:
    // Check for walls
    
setarray wall,6;
    for (
j=0j<6j++)
      
wall[j] = onwall(newx+this.walltest[i*12+j*2],
        
newy+this.walltest[i*12+j*2+1]);

    
// Test for walls in front;
    
if (wall[0]==true || wall[1]==true || wall[2]==true || wall[3]==true) { 

If it needs anything else tell me
__________________
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 12:19 PM.


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