Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Help me somethigns wrong (https://forums.graalonline.com/forums/showthread.php?t=10379)

mhermher 08-25-2001 07:19 PM

Help me somethigns wrong
 
Hi i made a skateboard but its somethign wrong it go through water and could someone help me pelase?

please reply the fixed script


NPC Code:

//NPC Made By Gastly to "Outland Project"



if (playertouchsme) {
toweapons Skateboard;
say 0;
setstring board,gastlyskateboard1.png;
}

if (weaponfired&&!skatin) {
set skatin;
}

while (skatin) {
disabledefmovement;
this.oldx=playerx;
this.oldy=playery;

if (keydown(0)&&skatin) {playery-=1;playerdir=0;}
else if (keydown(1)&&skatin) {playerx-=1;playerdir=1;}
else if (keydown(2)&&skatin) {playery+=1;playerdir=2;}
else if (keydown(3)&&skatin) {playerx+=1;playerdir=3;}

if (onwall(playerx,playery+1)) {playerx=this.oldx;playery=this.oldy;}
else if (onwall(playerx+1,playery+1)) {playerx=this.oldx;playery=this.oldy;}
else if (onwall(playerx+2,playery+1)) {playerx=this.oldx;playery=this.oldy;}
else if (onwall(playerx+,playery+2)) {playerx=this.oldx;playery=this.oldy;}
else if (onwall(playerx+1,playery+2)) {playerx=this.oldx;playery=this.oldy;}
else if (onwall(playerx+2,playery+2)) {playerx=this.oldx;playery=this.oldy;}
else if (onwall(playerx+,playery+3)) {playerx=this.oldx;playery=this.oldy;}
else if (onwall(playerx+1,playery+3)) {playerx=this.oldx;playery=this.oldy;}
else if (onwall(playerx+2,playery+3)) {playerx=this.oldx;playery=this.oldy;}

setani tb_skateb1,#s(board),;
if (keydown(5)&&skatin) {
unset skatin;
enabledefmovement;
}
sleep 0.05;
}

if (!skatin) {enabledefmovement;}


mhermher 08-25-2001 07:21 PM

O and to the one that STEAL... well nothing will help cuz its bugged and if you steal il sue your ħ$ so dont steal and to the one that help me can use it Thank you

mhermher 08-25-2001 09:54 PM

1 Attachment(s)
heres the image

mhermher 08-25-2001 09:56 PM

1 Attachment(s)
opps wrong that was the icon

mhermher 08-25-2001 09:57 PM

1 Attachment(s)
and there is other colours to it also

mhermher 08-25-2001 09:57 PM

1 Attachment(s)
.

mhermher 08-25-2001 09:58 PM

wierd

Metal-Slug 08-25-2001 11:04 PM

THOSE ARE THE ONES MADE BYE ZORG

08-25-2001 11:19 PM

GÄ$â€*£Ÿ you ****ing spaming *******! you could put all thoughs in a zip and said it all in one message you idiot!!!

KJS 08-25-2001 11:25 PM

arg why does everyone do a skateboard... I dont get it.... I mean basically your just stealing someone elses idea...

mhermher 08-25-2001 11:39 PM

=(

so noone will help?


and icepick burn in hell

i atleast make my own scripts but you dont knwo how so you steal... hmm i remember when you stole the door script that my grandma did

mhermher 08-25-2001 11:41 PM

Quote:

Originally posted by Metal-Slug
THOSE ARE THE ONES MADE BYE ZORG

Yeah.... 2 gfx that i dont use i post wrong gfx thats why you think i use zorgs stuff

Bravo_LAT-Admin 08-25-2001 11:42 PM

well
 
do what you did for onwall....except use onwater

Komieko 08-26-2001 01:20 AM

You're also using TB3's gani's..Telling others not to steal while you go stealing. =/

08-26-2001 02:55 AM

ever heard of:
"if (onwater(playerx,playery))"


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

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