View Single Post
  #6  
Old 04-05-2002, 05:46 AM
mikepg mikepg is offline
Registered User
Join Date: Nov 2001
Location: VA, USA
Posts: 501
mikepg is on a distinguished road
Send a message via AIM to mikepg Send a message via Yahoo to mikepg
umm

you can add a for loop
in the npc textfile do something like:
NPC Code:

if (created) {
showcharacter;
changeclothes();
}
function changeclothes() {
for (this.i=0; this.i<playerscount; this.i++ {
if (players[this.i].x=x && players[this.i].y=y) {
setcharprop #C2(-1),#C2(this.i);
return;
}
}
destroy;
}



for the setcharprop section, do all of the variables, not just C2, with what is in the '()'s left the same.
That should work, provided you are the only person standing there for the clothes part....as for the message...you'd have to be saying it when you fire the weapon, and add it in the function as well, or you'd have to make a big huge menu that wouldnt be worth the trouble.
__________________
~War Lord Mpg2
Bravo Online's Asst. Staff Manager

"Sittin by the tree, sippin eggnog, waitin on christmas gifts"
Reply With Quote