Jump to content
  • 0

vip system depreciated? What's happen


Tales

Question


  • Group:  Members
  • Topic Count:  163
  • Topics Per Day:  0.04
  • Content Count:  319
  • Reputation:   8
  • Joined:  02/05/12
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  387
  • Reputation:   60
  • Joined:  10/08/13
  • Last Seen:  

 

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


  • Group:  Members
  • Topic Count:  163
  • Topics Per Day:  0.04
  • Content Count:  319
  • Reputation:   8
  • Joined:  02/05/12
  • Last Seen:  

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


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

 

@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


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  106
  • Reputation:   28
  • Joined:  11/08/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  163
  • Topics Per Day:  0.04
  • Content Count:  319
  • Reputation:   8
  • Joined:  02/05/12
  • Last Seen:  

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

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   4
  • Joined:  12/03/11
  • Last Seen:  

VIP system is not working right now.

 

Server source bug!!!!!...

Edited by yuranansam
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  163
  • Topics Per Day:  0.04
  • Content Count:  319
  • Reputation:   8
  • Joined:  02/05/12
  • Last Seen:  

ARGGGGGGGGGGGGGGGGGGGG

Bub Confirmed.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  387
  • Reputation:   60
  • Joined:  10/08/13
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   4
  • Joined:  12/03/11
  • Last Seen:  

 

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


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   4
  • Joined:  12/03/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  163
  • Topics Per Day:  0.04
  • Content Count:  319
  • Reputation:   8
  • Joined:  02/05/12
  • Last Seen:  

Reference?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   4
  • Joined:  12/03/11
  • Last Seen:  

Reference?

 

I have tested pass 100%.

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