Thread: Commands?
View Single Post
  #9  
Old 03-26-2001, 05:20 AM
Tyhm Tyhm is offline
Psionic Youth
Tyhm's Avatar
Join Date: Mar 2001
Location: Babord, West Graal Deaths:1009 Kills:1
Posts: 5,635
Tyhm has a spectacular aura about
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....
__________________
"Whatever," said Bean, "I was just glad to get out of the toilet."

"Power does not corrupt. Fear corrupts, perhaps the fear of a loss of power."- John Steinbeck
"I'm only acting retarded, what's your excuse?" queried the Gord.
- My pet, the Levelup Gnome

http://forums.graalonline.com/forums...&postcount=233
Reply With Quote