viewing paste exchange +10 EQ to other EQ | Diff

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
 
 
-       exchange_eq_shop        shop    -1,909:-1
 
prontera,155,181,5      script  Sample#exchange_eq      757,{
        mes "+"+.eq_refine+" Equipment";
        mes F_InsertComma( .zeny_cost )+" Zeny";
        mes " ";
        mes "Trade a New Equipment.";
        dispbottom "Pick a +"+.eq_refine+" Equipment to trade-in!";
        callshop "exchange_eq_shop",2;
        end;
 
OnSellItem:
        if ( @sold_refine[0] != .eq_refine ) {
                mes "Only accept +"+.eq_refine+" Equipment.";
        }
        else if ( Zeny < .zeny_cost ) {
                mes "Not enough zeny.";
        }
        else {
                Zeny -= .zeny_cost;
                delitem2 @sold_nameid[0],1,@sold_refine[0],@sold_attribute[0],@sold_identify[0],@sold_card1[0],@sold_card2[0],@sold_card3[0],@sold_card4[0];
               
                getitem .reward_id,.reward_qty;
        }
        close;
       
        OnInit:
                // min equipment refine
                .eq_refine = 10;
                // zeny cost
                .zeny_cost = 500000000;
               
                // item gain + quantity
                .reward_id = 5353;
                .reward_qty = 1;
                end;
}
Viewed 796 times, submitted by Emistry.