i want to make npc that give more then 1 item(like 3-5 for each selection), but i dont want to write every time "cm.gainItem();".
so i want to know if there way to do like this one:
(it doesnt work)PHP Code:var txt = "Here your items:\r\n"
for (var i=0;i<set1.length;i++)
txt+= "#i"+set1[i]+"# - #z"+set1[i]+"#\r\n";
cm.sendOk(txt);
cm.gainItem(set1[selection], 1);



Reply With Quote


