Quote:
Originally posted by TDO2000
normally u use addstring or replacestring for stringlists because this would't probably work
the string u get with your script:
example
client.suit1=black,yellow,white,red
what stringlist look like:
client.suit1="black","yellow","white","red"
so u couldn't normally read the parts with #I
|
no, youre wrong. graal does not put ""s in because those are characters. The only way one of those is used, is if you have a comma in the string ie: "black, is good",yellow;
and you have to put "" in manually. You think I'm wrong still, go test this script i just wrote:
NPC Code:
// NPC made by War Lord Mpg2
// suit1=head,body,skin,feet,coat
if (playerenters) {
timeout = .1;
setstring suit1,#3,#8,#C0,#C3,#C1;
setplayerprop #3,head816.png;
setplayerprop #8,body2.png;
setplayerprop #C0,blue;
setplayerprop #C3,black;
setplayerprop #C1,white;
}
if (playertouchsme) {
}
if (playerchats&&strequals(#c,load)) {
setplayerprop #3,#I(suit1,0);
setplayerprop #8,#I(suit1,1);
setplayerprop #C0,#I(suit1,2);
setplayerprop #C3,#I(suit1,3);
setplayerprop #C1,#I(suit1,4);
setplayerprop #c,loaded!;
}
then come back and tell me im wrong
