I was using that, but I got this, new line = after a mob's died. It has so many loops o.o
Now every monsters can obtained a drop too...
Here's the code
- script Sample -1,{
OnNPCKillEvent:
for( .@i = 0; .@i < .mob_size; .@i++ )
if( killedrid == .mob_id[.@i] ){
getitem 512,1;
} else { dispbottom "No Drops"; }
end;
OnInit:
setarray .mob_id[0],1085,1084,1079,1080,1078,1083,1082,1081,1097;
.mob_size = getarraysize( .mob_id );
end;
}
I used else because I'm worried if there's infinite loops.. Or I can't use else for it?