Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Setshape2 (https://forums.graalonline.com/forums/showthread.php?t=6595)

Slaktmaster 07-05-2001 09:43 PM

Setshape2
 
Can anyone tell me if there is a way to make the player not swimmin when over water. When I use setshape2 the character still swims, nonblocking tile didnt work, chair didnt work.

I wanna get this working!@

(With a 36*36 image with water under)
if (playerenters) {
setshape2 6,6,{22,22,22,22,22,22,22,22,22,22,22,22,8,8,8,8,8 ,8,8,8,8,8,8,8,22,22,22,22,22,22,22,22,22,22,22,22 };
}

It it still swimming when in the middle :(

KJS 07-05-2001 10:29 PM

you can..
 
you can disabledefmovement

or if it goes on a npc you can say

drawunderplayer;

(I have never tested that out if you walk or swim)

or you can change the default gani of swim to walk with the new npc command replacegani
it would be like

replacegani swim,walk;

(you would do that for how ever long you wanted them to be on it)

then you would do after they got off the spot or something do this

replacegani swim,swim;

well this will count them as swimming in the coding like
if(onwater(x,y))

it would say it is on the water, but it would set the ani so it looks like they are walking...

Slaktmaster 07-05-2001 10:52 PM

Changing the tiles, hm?
How?
Setshape2 or Board[] stuff

Slaktmaster 07-06-2001 01:04 AM

I'll try it, thanks for the tip.


All times are GMT +2. The time now is 01:32 PM.

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