viewing paste Job Based Item Quest + Warping | Athena

Posted on the | Last edited on
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
prontera,149,187,5  script  Sample  757,{
if( BaseLevel < 99 ){
    mes "You are not level 99.";
}else{
    switch( BaseJob ){
        Case Job_Knight: 
            setarray .@itemlist,607,608,909;
            setarray .@amount,1,2,3;
            break;
        Case Job_Priest: 
            setarray .@itemlist,607,608,909;
            setarray .@amount,1,2,3;
            break;
        Case Job_Wizard: 
            setarray .@itemlist,607,608,909;
            setarray .@amount,1,2,3;
            break;
        Case Job_Blacksmith: 
            setarray .@itemlist,607,608,909;
            setarray .@amount,1,2,3;
            break;
        Case Job_Hunter: 
            setarray .@itemlist,607,608,909;
            setarray .@amount,1,2,3;
            break;
        Case Job_Assassin: 
            setarray .@itemlist,607,608,909;
            setarray .@amount,1,2,3;
            break;
        Case Job_Crusader: 
            setarray .@itemlist,607,608,909;
            setarray .@amount,1,2,3;
            break;
        Case Job_Monk: 
            setarray .@itemlist,607,608,909;
            setarray .@amount,1,2,3;
            break;
        Case Job_Alchemist: 
            setarray .@itemlist,607,608,909;
            setarray .@amount,1,2,3;
            break;
        Case Job_Bard:
        Case Job_Dancer:
            setarray .@itemlist,607,608,909;
            setarray .@amount,1,2,3;
            break;
        default: close;
    }
    set .@size,getarraysize( .@itemlist );
    mes "I need these...";
    for( set .@i,0; .@i < .@size; set .@i,.@i+ 1 ){
        mes " ~ "+getitemname( .@itemlist[.@i] )+" x "+.@amount[.@i];
        if( countitem( .@itemlist[.@i] ) < .@amount[.@i] ) set .@failed,.@failed + 1;
    }
    if( !.@failed ){
        if( select( "Enter Room","Cancel" ) == 1 ){
    for( set .@i,0; .@i < .@size; set .@i,.@i+ 1 )
                delitem .@itemlist[.@i],.@amount[.@i];
            warp "prontera",155,181;
        }
    }
}
close;
}
Viewed 1476 times, submitted by Emistry.