Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-20-2002, 05:03 AM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
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;
}

__________________

Last edited by Kadar; 03-20-2002 at 05:14 AM..
Reply With Quote
  #2  
Old 03-20-2002, 05:55 AM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
you could also use the treetop as a predefined NPC...
or this one ^.^
__________________
No Webhost at the moment
Reply With Quote
  #3  
Old 03-20-2002, 06:12 AM
Kadar Kadar is offline
Registered User
Join Date: Jan 2002
Posts: 636
Kadar is on a distinguished road
Quote:
Originally posted by TDO2000
you could also use the treetop as a predefined NPC...
or this one ^.^
[Kadar]

[/Kadar]
__________________
Reply With Quote
  #4  
Old 03-20-2002, 03:56 PM
neomaximus2k neomaximus2k is offline
Registered User
Join Date: Feb 2002
Location: UK
Posts: 324
neomaximus2k is on a distinguished road
Send a message via ICQ to neomaximus2k
Quote:
Originally posted by Kadar

[Kadar]

[/Kadar]
i got a better idea

why not use the tile's from the pics1.png, that way no extra image is needed to be downloaded as well
__________________
Beware of thy Inner self
NPC Code:

_.,.__
((o\\o\))
.-. ` \\``
__( )___.o"".,___
=== ~~~~~~~~
==
= Neo

Reply With Quote
  #5  
Old 03-20-2002, 08:47 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
Quote:
Originally posted by neomaximus2k

i got a better idea

why not use the tile's from the pics1.png, that way no extra image is needed to be downloaded as well
because u can't walk behind them?
__________________
No Webhost at the moment
Reply With Quote
  #6  
Old 03-21-2002, 12:03 AM
Spanko Spanko is offline
Squeaker of Soles
Spanko's Avatar
Join Date: Nov 2001
Location: The Netherworl...lands
Posts: 1,366
Spanko is on a distinguished road
Send a message via ICQ to Spanko Send a message via AIM to Spanko Send a message via Yahoo to Spanko
Quote:
Originally posted by TDO2000

because u can't walk behind them?
I always prefer using showimg in those cases.
__________________

ICQ: 125283920
MSN: [email protected]
AIM: Squeax0r
Squeaker seems unable to access the forum using this account.. tis a sad day.
Now with occasional Asuka flavour! Ooops a bit too much...
Asuka should be king of Dustari!

"Y'know, some days even my lucky rocketship underpants don't even help."
Reply With Quote
  #7  
Old 03-22-2002, 09:49 PM
TDO2000 TDO2000 is offline
Registered User
TDO2000's Avatar
Join Date: Jul 2001
Location: Germany
Posts: 655
TDO2000 is on a distinguished road
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 ^-^
__________________
No Webhost at the moment
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 09:07 PM.


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