Hi...
prontera,152,166,5 script Quest KMob 4_M_02,{
if(QP_Act)
{
if(QT_MobKill < .mob_qt[QP_Val])
{ mes "You have not completed the mission!","Kill: ["+QT_MobKill+"/"+.mob_qt[QP_Val]+"] "+strmobinfo(1,.mob_id[QP_Val])+""; close; }
mes "Congratulations, you completed the quest!";
atcommand "@aura 2";
set QP_Act,0;
set QT_MobKill,0;
close;
}
mes "Hello, will I now ask you to kill some monsters for me ok?";
if(select("Ok:I do not want...")==2){ close; }
next;
set QP_Val,rand(1,getarraysize(.mob_id))-1; //Get a random mob_id
set QP_Act,1;
mes "Okay, go and kill "+.mob_qt[QP_Val]+"x "+strmobinfo(1,.mob_id[QP_Val])+" !";
close;
OnNPCKillEvent:
if(QP_Act && killedrid == .mob_id[QP_Val]){ set QT_MobKill,QT_MobKill+1; }
end;
OnInit:
setarray .mob_id[0],1031,1002,1166,1784; //Mob ID, limited (0,126) mobs_ids
setarray .mob_qt[0], 1, 2, 3, 5; //Qty kills, limited (0,126) mobs_qty
end;
}