Quote:
Originally posted by Warcaptain
is there any way that in the near future we can do this?
NPC Code:
for (i=0;i<4;i++ {
setplayerprop #C#v(i),black;
}
to easily set clothing to all black?
or just something like that
and also
wat about message code in command: set
ie:
NPC Code:
set #co_#F_#v(x)_#v(y);
to artificialy create chests;
|
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
