Thread: A bush
View Single Post
  #2  
Old 08-04-2002, 10:15 AM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
Re: A bush

Quote:
Originally posted by DarkHero2002
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
Is there not a serverside command for warping npcs to different levels?
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
Reply With Quote