mag_dun02,211,29,5 script Elder Smith 74,{
if(getequiprefinerycnt(4) == 10){
mes "[Elder Smith]";
mes "Your weapon is already max lvl!";
close;
}
if(start == 1){
@var = 1;
for(.@i = 0; .@i < getequiprefinerycnt(4); .@i++){
@var = @var * 2;
}
@var = @var / 2;
if(@var <= kill){
mes "[Elder Smith]";
mes "Well done I can upgrade it now!";
menu "Do it!",-,"No, leave me alone!",M_NO;
next;
mes "[Elder Smith]";
mes "Here is your better weapon";
successrefitem(4);
kill = 0;
close;
}else{
mes "[Elder Smith]";
mes "You need to kill " + (@var - kill) + "MvPs!";
close;
}
}else{
mes "[Elder Smith]";
if(getequipid(4) < 33333){
mes "You do not have an ascended weapon,";
mes "Please come back if you have one";
close;
}
mes "I can Upgrade your ascended Weapon if you want!";
menu "Yes please!",-,"No, leave me alone!",M_NO;
next;
mes "[Elder Smith]";
mes "You will get your first upgrade for free";
if(getequipid(4) < 33333){
mes "You do not have an ascended weapon,";
mes "Please come back if you have one";
close;
}else{
successrefitem(4);
}
next;
mes "[Elder Smith]";
mes "Ok, start hunting MVPs!";
start = 1;
close;
}
M_NO:
mes "[Elder Smith]";
mes "Okay good bye!";
close;
OnNPCKillEvent:
if ( getmonsterinfo( killedrid,22 ) && start == 1){
kill = kill + 1;
dispbottom "You have killed " + kill + " Mvps!";
}
}