Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Tree Script ;) (https://forums.graalonline.com/forums/showthread.php?t=25959)

Kadar 03-20-2002 05:03 AM

Tree Script ;)
 
[Kadar]
I made this tree script becuase it gets really annoying when you have to keep making a tree stump then adding the newtreetop.gif and stuff..
Enjoy.

This can be used on any server i dont really care.

This is for p2p if you use it for nonp2p then your gonna have to edit a few things.
[/Kadar]

NPC Code:

// NPC made by Kadar
if (playerenters || created) {
setimg newtree.gif;
setshape2 8,10,{
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,
0,22,22,22,22,22,22,0,
0,0,22,22,22,22,0,0,
0,22,22,22,22,22,22,0,
0,0,22,22,22,22,0,0,
};
}
//#CLIENTSIDE
if (playerenters || timeout){
if ((playerx in |x-3,x+8|&&playery in |y-2,y+5|)){
drawoverplayer;
}
else drawunderplayer;
timeout = 0.05;
}


TDO2000 03-20-2002 05:55 AM

you could also use the treetop as a predefined NPC...
or this one ^.^

Kadar 03-20-2002 06:12 AM

Quote:

Originally posted by TDO2000
you could also use the treetop as a predefined NPC...
or this one ^.^

[Kadar]
:)

[/Kadar]

neomaximus2k 03-20-2002 03:56 PM

Quote:

Originally posted by Kadar

[Kadar]
:)

[/Kadar]

i got a better idea :D

why not use the tile's from the pics1.png, that way no extra image is needed to be downloaded as well :D

TDO2000 03-20-2002 08:47 PM

Quote:

Originally posted by neomaximus2k

i got a better idea :D

why not use the tile's from the pics1.png, that way no extra image is needed to be downloaded as well :D

because u can't walk behind them?

Spanko 03-21-2002 12:03 AM

Quote:

Originally posted by TDO2000

because u can't walk behind them?

I always prefer using showimg in those cases.

TDO2000 03-22-2002 09:49 PM

Quote:

Originally posted by Spanko
I always prefer using showimg in those cases.
hmmm use a tilecheck and put showimgs everywhere it's needed... hmmm yap could be usefull ^-^


All times are GMT +2. The time now is 12:30 PM.

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