BAH!
Less scripting than the deluxe boomerang!
HERE-WE-GO!
NPC Code:
if(strtofloat(#s(bomyhas))<1){
for(this.i=itemscount01;this.i>=0;this.i--){
if(abs(items[this.i].x-bomyX)<2&&abs(items[this.i].y-bomyY)<2){
setstring bomyhas,#v(items[this.i].type+1);
removeitem this.i;
break;
}
}
}
in the Bomy's main loop, and outside the main loop:
NPC Code:
if(playerchats&&strequals(#c,Give)strtofloat(#s(bo myhas))>0){
lay2 #v(strtofloat(#s(bomyhas))-1),playerx,playery;
setstring bomyhas,0;
}
That might work. You might have to put a gajillion if then elses for each possible item, if it won't take a variable number....