it looks like
NPC Code:
if(timeout){
setstring client.itemselect, //<---
if(playerhasgem1){
showimg i,GEM3YEL.gif,x,y;},1,
if(playerhasgem2){
showimg i,GEM3GOLD.gif,x,y;
},1,if(playerhasgem3){
showimg i,GEM3RED.gif,x,y;},1,
if(playerhasgem4){
showimg i,GEM3PURP.gif,x,y;},1,
if(playerhasgem5){
showimg i,GEM3PINK.gif,x,y;},1,
if(playerhasgem6){
showimg i,GEM3BLAK.gif,x,y;
},1,if(playerhasgem7){showimg i,GEM3BL.gif,x,y;},1,if(playerhasgem8){showimg i,GEM3.gif,x,y;},1;
timeout=.05;}
is all screwed up. (note, it's not spaced like this, it's all on one line.)