Thread: A bush
View Single Post
  #1  
Old 08-04-2002, 09:40 AM
DarkHero2002 DarkHero2002 is offline
Registered User
DarkHero2002's Avatar
Join Date: Dec 2001
Posts: 625
DarkHero2002 is on a distinguished road
Send a message via ICQ to DarkHero2002 Send a message via AIM to DarkHero2002
Question A bush

Ok, I made a bush script and it works just like a real bush. The one thing I have a problem with is when you carry it off the level. How would I got about having it reset to the level x and y of where it started if it was thrown on a different level?

NPC Code:
// NPC made by Brent
if (created) {
setshape 1,32,32;
this.startx = x;
this.starty = y;
canbecarried;
}
if (wasthrown) {
putleaps 1,x,y;
hidelocal;
dontblock;
sleep 5;
x = this.startx;
y = this.starty;
showlocal;
blockagain;
}



-Brent
__________________

DarkHero
AIM:XxCloud2002xX
ICQ:165561109
E-Mail:[email protected]
Manager Of Colonial Graal

PLEASE DO NOT CLICK HERE!
Reply With Quote