Jump to content

Jaburak

Members
  • Posts

    1125
  • Joined

  • Days Won

    31

Posts posted by Jaburak

  1. 
    

    prontera,150,150,0 script Vote Trader 123,{

    mes "You have ^000088"+ #CASHPOINTS +"^000000 Vote Points.";

    mes "1 Vote Point is equal to 1 TCG.";

    mes "Do you want to trade your Vote Points into TCG?";

    menu "No!",-,"Yes!",Cash2TCG;

    next;

    mes "Ok, just let me know.";

    close;

    Cash2TCG:

    next;

    mes "How many Vote Points would you like to trade?";

    input .@vps;

    next;

    if ( .@vps < 1) goto Zero;

    if ( .@vps > 30000) goto Toomany;

    if((countitem(7227)+.@vps) >= 30000) goto Toomany;

    if ( #CASHPOINTS < .@vps) goto Tooless;

    mes "Here you go!";

    set #CASHPOINTS,(#CASHPOINTS-.@vps);

    getitem 7227,.@vps;

    next;

    mes "Here's your TCG.";

    close;

    Toomany:

    next;

    mes "You cannot hold more than 30,000 TCG.";

    close;

    Tooless:

    next;

    mes "Insufficient Vote Points.";

    close;

    Zero:

    next;

    mes "0 means cancel!";

    close;

    }

    • Upvote 1
×
×
  • Create New...