viewing paste Unknown #230 | 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
prontera,164,166,4      script  Skull Exchanger 736,{
 
set .@itemid,7005; //itemid in this case skull
set .@itemq,10; //amount of itemid required to get getitemid
set .@getitemid,7227; //itemid of specified item received for itemid
 
set .@calc,countitem(.@itemid)/.@itemq; //calculates amount one can receive
if(countitem(.@itemid) < .@itemq) close;
        mes "Please input the amount of TCG you'd like to purchase.";
        mes "You currently have "+countitem(.@itemid)+" "+getitemname(.@itemid)+."";
        mes "Meaning you can get "+.@calc+" TCG"
        mes "Currently , you have "+countitem(7421)+" Skulls.";
if(.@input > .@calc) close;
delitem .@itemid,.@input;
getitem .@getitemid,.@input;
}
Viewed 519 times, submitted by Streusel.