oscar171 Posted June 29, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 23 Reputation: 0 Joined: 06/12/12 Last Seen: November 8, 2022 Share Posted June 29, 2014 (edited) I have I enabled the vip system, someone could help me with vip tickt a tickt that is compatible with the official vip system rathena my tickt vip 16282,Ticket_Vip_15d,Ticket Vip 15d,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{callfunc "ticketVip15", getcharid(3), 15;},{},{} 16283,Ticket_Vip_30d,Ticket Vip 30d,0,50,,70,,,,,0xFFFFFFFF,63,2,,,,,,{callfunc "ticketVip30", getcharid(3), 30;},{},{} function script ticketVip15 { if( getgroupid() > 10 ){ message strcharinfo(0),"[VIP system]: The level of account access does not allow me to add it to the vip."; getitem 16282,1; end; }else{ query_sql "SELECT `login` WHERE `account_id`='"+getarg(0)+"'", .@vip_time; if(.@vip_time <= 0 ) { query_sql "UPDATE `login` SET `diasvip`='"+getarg(1)+"' WHERE `account_id`='"+getarg(0)+"'"; query_sql "UPDATE `login` SET `group_id`='5' WHERE `account_id`='"+getarg(0)+"'"; message strcharinfo(0),"[sistema VIP]: You just added " +getarg(1)+ " vip days."; sleep2 2000; atcommand "@reloadpcdb"; message strcharinfo(0),"[VIP system]: activated!"; } else { query_sql "UPDATE `login` SET `vip_time`=`vip_time`+'" + getarg(1) + "' WHERE `account_id`='" + getarg(0) + "'"; query_sql "SELECT `login` WHERE `account_id`='"+getarg(0)+"'", .@vip_timereset; message strcharinfo(0),"[VIP system]: " + getarg(1) + " days were entered into your account!"; if(.@vip_timerest > 1){ message strcharinfo(0),"[VIP system]: you have "+.@vip_timerest+" vip days remaining!"; }else{ message strcharinfo(0),"[VIP system]: you have "+.@vip_timerest+" vip rest day!"; } } } end; } function script ticketVip30 { if( getgroupid() > 10 ){ message strcharinfo(0),"[VIP system]: The level of account access does not allow me to add it to the vip."; getitem 16283,1; end; }else{ query_sql "SELECT `login` WHERE `account_id`='"+getarg(0)+"'", .@vip_time; if(.@vip_time <= 0 ) { query_sql "UPDATE `login` SET `diasvip`='"+getarg(1)+"' WHERE `account_id`='"+getarg(0)+"'"; query_sql "UPDATE `login` SET `group_id`='5' WHERE `account_id`='"+getarg(0)+"'"; message strcharinfo(0),"[sistema VIP]: You just added " +getarg(1)+ " vip days."; sleep2 2000; atcommand "@reloadpcdb"; message strcharinfo(0),"[VIP system]: activated!"; } else { query_sql "UPDATE `login` SET `vip_time`=`vip_time`+'" + getarg(1) + "' WHERE `account_id`='" + getarg(0) + "'"; query_sql "SELECT `login` WHERE `account_id`='"+getarg(0)+"'", .@vip_timereset; message strcharinfo(0),"[VIP system]: " + getarg(1) + " days were entered into your account!"; if(.@vip_timerest > 1){ message strcharinfo(0),"[VIP system]: you have "+.@vip_timerest+" vip days remaining!"; }else{ message strcharinfo(0),"[VIP system]: you have "+.@vip_timerest+" vip rest day!"; } } } end; } Edited June 29, 2014 by oscar171 Quote Link to comment Share on other sites More sharing options...
Lelouch vi Britannia Posted June 29, 2014 Group: Members Topic Count: 45 Topics Per Day: 0.01 Content Count: 715 Reputation: 84 Joined: 01/05/12 Last Seen: April 10, 2023 Share Posted June 29, 2014 (edited) Eh why not use rA VIP System? If you have already using the VIP System here is the link for that info http://rathena.org/board/topic/89848-official-vip-system/ An example for that VIP item script 23310,VIP_Ticket_15_day,VIP Ticket [15 day],2,10000,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ atcommand "@vip +15d/j "+strcharinfo(0)+""; },{},{} 23311,VIP_Ticket_30_day,VIP Ticket [30 day],2,10000,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ atcommand "@vip +1m "+strcharinfo(0)+""; },{},{} Edited June 29, 2014 by Lelouch vi Britannia Quote Link to comment Share on other sites More sharing options...
oscar171 Posted June 29, 2014 Group: Members Topic Count: 7 Topics Per Day: 0.00 Content Count: 23 Reputation: 0 Joined: 06/12/12 Last Seen: November 8, 2022 Author Share Posted June 29, 2014 sorry I do not speak much English and I had to translate official topic vip system, to make the page was slightly disfigured and I was not seeing the information you gave me, thank you very much for your help, problem solved Quote Link to comment Share on other sites More sharing options...
Question
oscar171
I have I enabled the vip system, someone could help me with vip tickt a tickt that is compatible with the official vip system rathena
my tickt vip
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.