If you mean exchanging Cash Points for extra VIP days, the above script won't work.
A simple NPC that adds VIP time and subtracts #CASHPOINTS is very easy to make.
prontera,100,100,5 script CashToVIP 123,{
.@cashperday = 100;
mes "["+ strnpcinfo(1)+"]";
if(#CASHPOINTS == 0){
mes "You need Cash Points in order to buy VIP time";
close;
}
switch(vip_status(1)){
case 0:
mes "You're not a VIP";
break;
case 1:
mes "You are a VIP";
break;
}
mes "You currently have "+ #CASHPOINTS +" Cash Points.";
mes "Each VIP Day will cost you ^0000ff"+ .@cashperday +"^000000";
next;
mes "["+ strnpcinfo(1)+"]";
if( #CASHPOINTS < .@cashperday ){
mes "You don't have enough Cash Points to purchase VIP Days";
close;
} else {
mes "Would you like to purchase/increase your VIP Days?";
switch(select(" - Nope: - Yeah!")){
case 1:
break;
case 2:
#CASHPOINTS -= .@cashperday;
vip_time 1440;
dispbottom "Current Cash Points: "+ #CASHPOINTS;
dispbottom "VIP Expires: "+ vip_status(2);
break;
}
close;
}
}