// ---------------------------------------------- //
// Badge Exchanger for Cronus 3rd [NubDes] //
// v1.0 not a Free Release //
// ---------------------------------------------- //
prontera,150,150,3 script Badge Exchanger 100,{
// Changed the id of your desired items to exchange for points
set .@valorid,501;
set .@braveryid,502;
set .@warid,502;
set .@valuex,10;
mes "What do you want to do today?";
mes "Rates are : 1 Badge. = 10 BGP.";
menu "Valot to BGP",K_Valor,"Bravery to BGP",K_Bravery,"War to BGP",K_War;
K_Valor:
input @amount;
if(@amount <= 0) {
mes "Please put greater than 0.";
close;
}else if(countitem(.@valorid) < @amount) {
mes "Sorry but you do not have enough materials to exchange.";
close;
}else{
delitem .@valorid,@amount;
set #BGPTS,#BGPTS+(.@valuex * @amount);
dispbottom "You recieved = "+(.@valuex * @amount)+".";
dispbottom "Your total BG Points = "+#BGPTS+".";
end;
}
K_Bravery:
input @amount;
if(@amount <= 0) {
mes "Please put greater than 0.";
close;
}else if(countitem(.@braveryid) < @amount) {
mes "Sorry but you do not have enough materials to exchange.";
close;
}else{
delitem .@braveryid,@amount;
set #BGPTS,#BGPTS+(.@valuex * @amount);
dispbottom "You recieved = "+(10 * @amount)+".";
dispbottom "Your total BG Points = "+#BGPTS+".";
end;
}
K_War:
input @amount;
if(@amount <= 0) {
mes "Please put greater than 0.";
close;
}else if(countitem(.@warid) < @amount) {
mes "Sorry but you do not have enough materials to exchange.";
close;
}else{
delitem .@warid,@amount;
set #BGPTS,#BGPTS+(.@valuex * @amount);
dispbottom "You recieved = "+(.@valuex * @amount)+".";
dispbottom "Your total BG Points = "+#BGPTS+".";
end;
}
}