viewing paste Unknown #19375 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
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!";
    }   
}
Viewed 683 times, submitted by Guest.