![]() |
Drowning script (i need help)
were it says onwater is wrong what do i put thier to work it i tried
if (playerswimming) --nothing seems to work // Made by Mystical Dragon //#CLIENTSIDE if (onwater( x, y )){ showimg 1000,@@c@Water Count 0/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,0,0,3,0;} if (onwater( x, y )){ showimg 1000,@@c@Water Count 1.5/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 2/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 4/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 6/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 8/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 10/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 12/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 13/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 13.5/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 14/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 15/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,2,0,0,0; sleep 2; playerhearts=>0} P.S Script thiefs are lame |
well, i noticed that in the onwater flags, there were spaces, i dont know if that is what is messing it up or not though
|
try playerx and playery, your just checking the x,y of the npc, unless it is in a weapon or something where its
position = playerspos... |
Re: Drowning script (i need help)
Quote:
try this: NPC Code: edit: I added 'vecx,vecy' I am totally unsure about using that ... |
Quote:
:D |
ummmmm use a for loop or while....please?
|
Quote:
I am referring you to a psychiatrist right now |
Quote:
|
NyghtGT, just so you know, vecx and vecy are basically hardcoded arrays that are used for the x,y movement for directions,
x += vecx(dir); y += vecy(dir); you would use something like that for moving the npc according to it's direction. |
Quote:
i said i wasn't sure and thanx for correcting me ... |
Nyght GT
You no me can you speack english please i dont no what vex is ROLF
what would thscript be if i added that |
this still wont work wtf
//#CLIENTSIDE
if (!onwater(playerx+1.5+vecx(playerdir)*2,playery+2+ vecy(playerdir)*2)) { showimg 1000,@@c@Water Count 0/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,0,0,3,0;} if (onwater(playerx+1.5+vecx(playerdir)*2,playery+2+v ecy(playerdir)*2)) { showimg 1000,@@c@Water Count 1.5/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 2/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 4/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 6/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 8/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 10/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 12/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 13/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 13.5/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 14/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,1,1,0,1; sleep 1.5; showimg 1000,@@c@Water Count 15/15,screenwidth-75,screenheight-25; changeimgvis 1000,5; changeimgcolors 1000,2,0,0,0; sleep 2; playerhearts=>0} |
You need to put the checking thing in a permanent timeout loop.
Try this, not sure. NPC Code: |
Loriel
i tryed that it says
Error: No if-clause specified |
NPC Code: I ono...lol...what no if clause specified means is that you have an else somewhere, but no original if. To fix that make sure if you don't have curly brackets ({}) around an if phrase than make sure that there is only one command, if you have this: NPC Code: Understand? |
Saga
no i dont understand
|
WTF
i tried every thing you just hate me
look i kept on adding what peeps tolled me to i did the hole danm script myself |
-=Josey=-
Cry elsewhere, Kaimetsu is the moderator therefore he has "uber leet powerz" to do what he wants with a thread. I'd close this thread myself anyway. You didn't follow any of the guidelines. You missed the code tags and also you shouldn't have posted the whole script just the part that you thought was messed up. |
| All times are GMT +2. The time now is 11:47 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.