View Single Post
  #2  
Old 11-16-2001, 01:48 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
use this offline tailor NPC i made its kinda neat ...
NPC Code:

NPC Code:

// NPC Made By Nyght
if (created) {
setgif clotheshelper_icon.png;
}
if (playertouchsme) {
toweapons Tailor;
}
if (playerchats && startswith(skin,#c)) {
tokenize #c;
setplayerprop #C0,#t(1);
}
if (playerchats && startswith(coat,#c)) {
tokenize #c;
setplayerprop #C1,#t(1);
}
if (playerchats && startswith(sleeves,#c)) {
tokenize #c;
setplayerprop #C2,#t(1);
}
if (playerchats && startswith(shoes,#c)) {
tokenize #c;
setplayerprop #C3,#t(1);
}
if (playerchats && startswith(belt,#c)) {
tokenize #c;
setplayerprop #C4,#t(1);
}
if (playerchats && startswith(setsword,#c)) {
tokenize #c;
setplayerprop #1,#(1);
}
if (playerchats && startswith(setshield,#c)) {
tokenize #c;
setplayerprop #2,#(1);
}
if (playerchats && startswith(sethead,#c)) {
tokenize #c;
setplayerprop #3,#(1);
}
if (playerchats && startswith(setbody,#c)) {
tokenize #c;
setplayerprop #4,#t(1);
}
if (playersays(save clothes)) {
setstring client.saveclothes,#C0 #C1 #C2 #C3 #C4 #1 #2 #3 #4;
}
if (playersays(apply clothes)) {
tokenize #s(client.saveclothes);
setplayerprop #C0,#t(0);
setplayerprop #C1,#t(1);
setplayerprop #C2,#t(2);
setplayerprop #C3,#t(3);
setplayerprop #C4,#t(4);
setplayerprop #1,#t(5);
setplayerprop #2,#t(6);
setplayerprop #3,#t(7);
setplayerprop #4,#t(8);
}




its a fairly simple script so i aint gonna bug you about stealing it but if you need any parts explained please let me know .... Also there is a clothing saver i added to it .... pretty neat ....
Reply With Quote