View Single Post
  #7  
Old 09-02-2002, 11:52 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Re: Re: string\vars in message codes

Quote:
Originally posted by G_yoshi


Ehem, I already have artifical chests

NPC Code:

//#CLIENTSIDE
// NPC made by G_Yoshi
//#EDIT chestX 0
//#EDIT chestY 0
//#EDIT level onlinestartlocal.graal
//#EDIT gralattype serveraddgreen
//#EDIT gralatimgX 0
//#EDIT gralatimgY 0
setshape 1,32,32;
if (playerenters && !client.ient#co#chestX#chestY#level) {
setimgpart dk_chest.png,0,0,32,32;
} else if (playerenters && client.#co#chestX#chestY#level){
setimgpart dk_chest.png,32,0,32,32;
}


if (playertouchsme && !client.#co#chestX#chestY#level) {
setstring server.rupeescount,1;
rupees = 1;
triggeraction 0,0,gralattype,strtofloat(server.rupeescount);
set client.#co#chestX#chestY#level;
setimgpart dk_chest.png,32,0,32,32;
this.placex=x;
this.placey=y-1;
this.placex2=x-.8;
this.placey2=y-1.8;
play dk_chest.wav;
showimg 10,dk_gralats.png,this.placex,this.placey;
changeimgpart 10,gralatimgX,gralatimgY,32,32;
changeimgvis 10,2;
showimg 11,glare1.mng,this.placex2,this.placey2;
changeimgvis 11,3;
changeimgzoom 10,2;
changeimgzoom 11,2;
for (this.i=2; this.i>1; this.i-=.05) {
changeimgzoom 10,this.i;
changeimgzoom 11,this.i;
sleep .05;
}
sleep 2;
hideimg 10;
hideimg 11;
}



actually, that is something I probably won't use anymore...care to take it if you want
the only problem with that
is you have to change the x,y,level of every chest you lay

see i could easily do that but im trying to do an easier way out of it
Reply With Quote