Graal Forums

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

Poogle 10-08-2001 07:35 PM

Chair
 
A chair that you can pull and sit in it how would you do this?

Inguz 10-08-2001 07:38 PM

is it like the basic chair

Admins 10-08-2001 08:04 PM

Hmmm you need to use setshape2,
make some part of the npc blocking (so
that you can push/pull it) and some other part
sitting tile

Shard_IceFire 10-08-2001 08:28 PM

Yup, that's right.

ownerofbabylon 10-08-2001 10:14 PM

i tried to do this on Babylon but i gave up =..(

Xaviar 10-09-2001 02:06 AM

Quote:

Originally posted by ownerofbabylon
i tried to do this on Babylon but i gave up =..(
Again, wasn't I supposed to be doing that as part of a larger npc?

ownerofbabylon 10-09-2001 02:23 AM

Quote:

Originally posted by Xaviar


Again, wasn't I supposed to be doing that as part of a larger npc?

u were? I was told it was impossible

Xaviar 10-09-2001 02:25 AM

Quote:

Originally posted by ownerofbabylon


u were? I was told it was impossible

Pm...

Poogle 10-09-2001 04:30 AM

Quote:

Originally posted by Stefan
Hmmm you need to use setshape2,
make some part of the npc blocking (so
that you can push/pull it) and some other part
sitting tile

Thanks Stefan your the only who actually HELPS.:cool:

Brandon_Bravo 10-09-2001 02:24 PM

Hmmm
 
I think Stefan is now saying hmmm just to see who will notice that he is saying hmmm. Hmmm.

BocoC 10-09-2001 09:00 PM

Make a chair PNG with a back to it. Now, do this in the code:
NPC Code:

if (created) {
setshape2 2,3,{
22,22,22,
3, 3, 3,
3, 3, 3}
canbepushed;
canbepulled;
canbecarried;
drawunderplayer;
}



Now, make a chair png that is 32 pixels by 48 pixels. Make it like this:

= =
D D
D D

Where the equal signs are the back of the chair, and the D's are the sitting part. Each = and each D are 16 by 16 pixels. Now, you can push, pull, and carry the chair from the backside of it, and sit on it on the front side of it.

Link188 10-10-2001 02:49 AM

Thank you! That will look good in my server! (by the way i really dont mean to "steal" script, its just that i script like crap =/ )

SSRobgeta 10-10-2001 02:53 AM

That script is acutally really easy... And Jeice don't make are server look bad you *****!

Xaviar 10-11-2001 02:10 AM

Actually...After a little bit of thought, you could do that on a free server too, Im just not sure of how laggy it would get

Poogle 10-11-2001 03:58 AM

The blocking tiles 22 and 20 dont work of is it someonething with the script:
// Mage by *Poogle
dontblock;
drawunderplayer;
canbepulled;
canbepushed;
setshape2 2,2,{3,3,22,22};

Poogle 10-11-2001 07:36 AM

Quote:

Originally posted by Poogle
The blocking tiles 22 and 20 dont work of is it someonething with the script:
// Mage by *Poogle
dontblock;
drawunderplayer;
canbepulled;
canbepushed;
setshape2 2,2,{3,3,22,22};

Please help! I need HELP!


All times are GMT +2. The time now is 03:05 PM.

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