Thread: how to make...
View Single Post
  #7  
Old 08-02-2001, 11:17 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
Let's try this one, mixing together the Clothes Chest and some of WhoopA's excellent scripting techniques...
NPC Code:

if(playerchats){
tokenize skin coat sleeve shoe belt;
for(this.i=0;this.i<5;this.i++){
if(startswith(#t(this.i),#c)){
tokenize #c;
setplayerprop #C(#v(this.i)),#t(1); /**
or setplayerprop #C(this.i),#t(1);
or if(this.i=0) setplayerprop #C0,#t(1);
else if(this.i=1) setplayerprop #C1,#t(1);
else if(this.i=2) setplayerprop #C2,#t(1);
else if(this.i=3) setplayerprop #C3,#t(1);
else if(this.i=4) setplayerprop #C4,#t(1);
**/
}
}
}



One of those variations should do the trick.
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote