Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 01-26-2006, 06:54 AM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Setshape2 and attachplayertoobj ARGH

Oh boy two problems in one day. OK so im trying to make a passenger boat script. So a group of people can jump on and have a jolly good time exploring the ocean. Problem is everytime I get on the boat I get warped down a level except I can see still all the npcs and players in that same level.

PHP Code:
if (created) {
setstring this.level,#L,#v(x),#v(y);
setimg ship1.gif;
setshape 1,32,32;
this.isadummynpc true;
}
if (
playerchats) {
 if (
strequals(#c,destroy)) {
  
detachplayer;
  
sendtonc boat destroyed;
  
destroy;
  }
}

//#CLIENTSIDE
if (created) {
setshape2 1425, {
    
1111111111111111111111111111,
    
1111112222222222222222111111,
    
11111122222233222222111111,
    
1111222233333322221111,
    
11112203300330221111,
    
11112200000000221111,
    
1111220002222000221111,
    
1111220022332200221111,
    
1111220022332200221111,
    
11112200033000221111,
    
11112200033000221111,
    
11110002233220001111,
    
11110002233220001111,
    
1111220002222000221111,
    
11112200000000221111,
    
11112200000000221111,
    
1111222200000022221111,
    
1111222222222222222222221111,
    
1111222222222222222222221111,
    
1111112222222222222222111111,
    
1111111122222222222211111111,
    
1111111111222222221111111111,
    
1111111111112222111111111111,
    
1111111111111111111111111111,
    
1111111111111111111111111111, };
   }
   

if (
playertouchsme) {
  
setplayerprop #c,Jump in the water and Press A to leave!;
  
attachplayertoobj 0,id;
}

if (
timeout && playerattached){
  if (
keydown(6)){
    
detachplayer;
    
enabledefmovement;
    
setplayerprop #c,You disembark the boat.;
  
}
 if (!
playerx in |x,x+14|) {
  if (!
playery in |y,y+25|) {
    
playerx=x+6;
    
playery=y+14;
   }
  }
 }
timeout=.05
Edit:Another Update in script!
The Graphic im using is also attached.
My Problems Before and After pictures also included!
Help would be much appreciated!
Attached Thumbnails
Click image for larger version

Name:	ship1.gif
Views:	182
Size:	12.5 KB
ID:	35079   Click image for larger version

Name:	before.jpeg
Views:	209
Size:	81.6 KB
ID:	35096   Click image for larger version

Name:	after.JPG
Views:	191
Size:	96.6 KB
ID:	35097  
__________________
Quote:

Last edited by fowlplay4; 01-27-2006 at 05:11 AM.. Reason: Script Update
Reply With Quote
 


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:11 PM.


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