no idea why it was repeating the keydown command but i DID end up fixing it by making a quick pause in the (actionact) part
NPC Code:
if (actionact) {
if (this.itemcount>0){
if (this.wait==0){
if (lindexof(#s(this.item),client.inv)==-1){
addstring client.inv,#s(this.item);
addstring client.invcount,1;
this.itemcount--;
pause();
}
else {
replacestring client.invcount,lindexof(#s(this.item),client.inv) ,#v(strtofloat(#I(client.invcount,lindexof(#s(this .item),client.inv)))+1);
this.itemcount--;
pause();
}
}
update();
}
else {
destroy;
}
}
im all curious about the repeatingness now... X_x a bug?