Jump to content

skyalpha

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by skyalpha

  1. On 18/07/2014 at 10:38 AM, acidcooler said:

    Hi There,

     

    Recently, I have updated and activated the Rathena VIP system.

    Now, I have build a new NPC to exchange CashPoints for VIP status.

     

     

    However, the atcommand line doesn't work.

    This is suposed to make a @vip +15d mycharname.

     

    Can anyone figure it our why doesn't work?

     

    Br,

     

    Should BE:

    //===== Config =====
    set $precogmct,300; // Price (in CashPoints) for 15 days
    set $daysweek,15; //15 days for 2 weeks VIP
    
     
    
    function script vipct {
    mes "I can provide you "+$daysweek+" days of VIP subscription in exchange for "+$precogmct+" CashPoints";
    mes "What do you thing?";
    if(select("Yes, I want IT!!:No, not for now.") == 2) close;
    if(#CASHPOINTS < $precogmct){
      mes "You don't have enough CASHPOINTS!! Come back later.";
      close;
    }
    
    if(getgroupid() == 0 || getgroupid() == 5){
      set .@RandomFinalize,rand(100,999);
       mes "Are you sure you want to exchange ^FF0000"+$precogmct+"^000000 CashPoints? If your 100% sure type the number ^0000FF"+.@RandomFinalize+"^000000.";
       input .@Finalize;
       if(.@Finalize!=.@RandomFinalize) {
        next;
        mes "You really should thing about it First!.";
        close;
       }
      
      atcommand "@vip "+$daysweek+"d "+strcharinfo(0); 
      //set #CASHPOINTS,#CASHPOINTS - $precogmct;
      mes "Thank you very Much! We have added "+$daysweek+" days of VIP subscription to your account!";
      close;
    }
    
    mes "Your account level doesn't allow me to give you VIP status. Only normal and VIP account can have VIP status!";
    close;
    }

    //You had an extra Plus signal

×
×
  • Create New...