Jump to content
  • 0
Tales

vip system depreciated? What's happen

Question

Only this... I'm trying to get 7 days vip and the server shows "Debug on npc" and nothing more...

dali,119,80,5 script Pegue VIP 110,{
vip_time 10080,"+strcharinfo(0)+";


}
Link to comment
Share on other sites

12 answers to this question

Recommended Posts

 

Only this... I'm trying to get 7 days vip and the server shows "Debug on npc" and nothing more...

dali,119,80,5 script Pegue VIP 110,{
vip_time 10080,"+strcharinfo(0)+";


}

where is your close/end command?

 

  • Upvote 1
Link to comment
Share on other sites

I put this code only for test... But all my vip system aren't work... 

My itens that give vip 24298,Vip_7,7 Dias Vip,0,50,,0,,,,,0xFFFFFFFF,63,2,,,,,,{ if (getgroupid() == 2) {delitem 24298,1;} vip_time 60*24*7,strcharinfo(0); dispbottom "Você recebeu 7 dias VIP."; },{},{}
My Events...
My Npcs... Nothings happens... Just the "Debug at Npc"

[DEBUG]: Source (NPC):
Link to comment
Share on other sites

 

@vip <time> <player name>

Adds or removes VIP time from the specified player.

Time parameter format is +/-<value> to alter. y/a = Year, m = Month, d/j = Day, h = Hour, n/mn = Minute, s = Second.

 

Ref: https://rathena.org/board/topic/89848-official-vip-system/

Examples:

// VIP Tickets
23300,VIP_Ticket_1_day,VIP Ticket [1 day],2,10000,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ atcommand "@vip +1d/j "+strcharinfo(0)+""; },{},{}
23301,VIP_Ticket_7_day,VIP Ticket [7 day],2,10000,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ atcommand "@vip +7d/j "+strcharinfo(0)+""; },{},{}
23302,VIP_Ticket_15_day,VIP Ticket [15 day],2,10000,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ atcommand "@vip +15d/j "+strcharinfo(0)+""; },{},{}
23303,VIP_Ticket_30_day,VIP Ticket [30 day],2,10000,,10,,,,,0xFFFFFFFF,63,2,,,,,,{ atcommand "@vip +1m "+strcharinfo(0)+""; },{},{}
Link to comment
Share on other sites

I can canform the VIP system seems to be not working (anymore) at all.

Even though @vip displays the remaining time, the VIP status is not saved, and vip_status and vip_time just seem to do nothing.

 

 

 

 

Only this... I'm trying to get 7 days vip and the server shows "Debug on npc" and nothing more...

dali,119,80,5 script Pegue VIP 110,{
vip_time 10080,"+strcharinfo(0)+";
}

The debug output you got was caused because you were trying to use a player named +strcharinfo(0)+ (you either forgot the second " at the beginning and end, or have to remove "+ +" at all) who was not online.

Link to comment
Share on other sites

The server's is not save the VIP TIME on MySql, its a source bug?

 

 

VIP system is not working right now.

 

Server source bug!!!!!...

 

try update your git... its working on me.

Link to comment
Share on other sites

 

The server's is not save the VIP TIME on MySql, its a source bug?

 

 

VIP system is not working right now.

 

Server source bug!!!!!...

 

try update your git... its working on me.

 

 

 

Step 1

updatenow.jpg

Update GIT

 

Next Step 2:

configVIP.jpg

config enable VIP System

 

Next Step 3:

Compiling_server.jpg

Compiling server

 

Next Step 4:

insertID.jpg

insert ID 'darksam3' on phpmyadmin

 

Next Step 5:

testID.jpg

Test ID 'darksam3'

 

Next Step 6:

selectchar.jpg

 

Next Step 7:

charonmap.jpg

 

Next Step 8:

npc1.jpg

 

Next Step 9:

npc2.jpg

 

Next Step 10:

checkstoeg.jpg

 

Next Step 11:

relogin.jpg

relogin

 

Next Step 12:

sqlchangegroupid.jpg

after relogin Server change group_id in SQL to is 0 and vip_time is 0

 

Code NPC For Test VIP System

new_1-1,53,117,3	script	VIP	90,{

if (vip_status(1)) { mes "VIP";} else { mes "non-VIP";}
mes "VIP Status : " + vip_status(1);
mes "VIP Expire : " + vip_status(2);
mes "VIP Time Remaining : " + vip_status(3);
atcommand "@vip +1d/j "+strcharinfo(0)+"";
next;
if (vip_status(1)) { mes "VIP";} else { mes "non-VIP";}
close2;
openstorage;
end;

}

VIP System is not working now!!!!!!!

  • Upvote 1
Link to comment
Share on other sites

Fix Bug Vip System

fix scr files 'scr/char/char_mapif.c'

Find or Go To Line '737'

        if (operation == 2) {
            timediff = RFIFOL(fd, 32);
            val1 = RFIFOL(fd, 36);
        } else if (operation == 7)
            sex = RFIFOB(fd, 32);
        RFIFOSKIP(fd,44);

Replace

        if (operation == 2) {
            timediff = RFIFOL(fd, 32);
            val1 = RFIFOL(fd, 36);
        } else if (operation == 6){
            timediff = RFIFOL(fd, 32);
            val1 = RFIFOL(fd, 36);
        } else if (operation == 7)
            sex = RFIFOB(fd, 32);
        RFIFOSKIP(fd,44);

Save and recompile

Fix VIP System is Working!!

  • Upvote 1
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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.