Jump to content
  • 0

suport for Official VIP System


oscar171

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  06/12/12
  • Last Seen:  

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 by oscar171
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  715
  • Reputation:   83
  • Joined:  01/05/12
  • Last Seen:  

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 by Lelouch vi Britannia
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  23
  • Reputation:   0
  • Joined:  06/12/12
  • Last Seen:  

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...