viewing paste Unknown #14758 | Athena

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 65 66 67 68 69 70 71 72 73 74 75 76 77 78
prontera,147,176,4  script  SE Boxer    794,{
    mes "[SE Boxer]";
    mes "Hello, do you want to box your items?";
    if (select("Yes:No") -1) end;
    next;
    mes "[SE Boxer]";
    mes "You need:";
    for(.@i = 0; .@i < getarraysize(.items); .@i = .@i + 2){
        mes .items[.@i + 1] + "x " + getitemname(.items[.@i]);
    }
    if (select ("Trade all!:Single trade!") -1){
        for(.@i = 0; .@i < getarraysize(.items); .@i = .@i + 2){
            //dispbottom .items[.@i] + " " + .items[.@i + 1];
            if(countitem(.items[.@i]) < .items[.@i + 1]){
                next;
                mes "[SE Boxer]";
                mes "Maybe there is something missing!!!!";
                end;
            }
        }
        next;
        mes "[SE Boxer]";
        mes "Nice! You have all items!";
        mes "Do you want to Box your items now?";
        if(select("Yes, of course!:No!!!") -1){
            next;
            mes "Ok, bye ~";
        }else{
            next;
            mes "[SE Boxer]";
            mes "Here are your items!";
            for(.@i = 0; .@i < getarraysize(.items); .@i = .@i + 2){
                delitem .items[.@i], .items[.@i + 1];
            }
            getitem .reward, 1;
            end;
        }
    }else{
        next;
        mes "[SE Boxer]";
        mes "Trade all!";
        next;
        set old, 1000;
        dispbottom old;
        for(.@i = 0; .@i < getarraysize(.items); .@i = .@i + 2){
            .@c = (countitem(.items[.@i]) / .items[.@i +1]);
            if(.@c < old){
                set old, .@c;
            }
            dispbottom .@c;
        }
        mes "[SE Boxer]";
        if(old == 0){
            mes "You do not have enought Items!";
            end;
        }
        mes "I can pack " + old + "Boxes!";
        if(select("Yes, of course!:No!!!") -1){
            next;
            mes "[SE Boxer]";
            mes "Ok, bye ~";
        }else{
            mes "[SE Boxer]";
            mes "I packed " + old + " Boxes!";
            for(.@i = 0; .@i < getarraysize(.items); .@i = .@i + 2){
                delitem .items[.@i], .items[.@i + 1] * old;
            }
            getitem .reward, old;
        }
            
    }
    end;
    
OnInit:
    setarray .items[0],984,1,985,1,7049,30,717,5,716,5,715,5;
    set .reward, 14288;
    end;
}
Viewed 635 times, submitted by Normynator.