Tales Posted July 4, 2015 Posted July 4, 2015 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)+"; } Quote
Elsa Mist Posted July 4, 2015 Posted July 4, 2015 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? 1 Quote
Tales Posted July 4, 2015 Author Posted July 4, 2015 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): Quote
Lelouch vi Britannia Posted July 4, 2015 Posted July 4, 2015 @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)+""; },{},{} Quote
Toshiro Posted July 4, 2015 Posted July 4, 2015 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. Quote
Tales Posted July 4, 2015 Author Posted July 4, 2015 The server's is not save the VIP TIME on MySql, its a source bug? Quote
SamMee Posted July 4, 2015 Posted July 4, 2015 (edited) VIP system is not working right now. Server source bug!!!!!... Edited July 4, 2015 by yuranansam Quote
Elsa Mist Posted July 4, 2015 Posted July 4, 2015 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. Quote
SamMee Posted July 4, 2015 Posted July 4, 2015 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 Update GIT Next Step 2: config enable VIP System Next Step 3: Compiling server Next Step 4: insert ID 'darksam3' on phpmyadmin Next Step 5: Test ID 'darksam3' Next Step 6: Next Step 7: Next Step 8: Next Step 9: Next Step 10: Next Step 11: relogin Next Step 12: 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!!!!!!! 1 Quote
SamMee Posted July 12, 2015 Posted July 12, 2015 Fix Bug Vip Systemfix 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 recompileFix VIP System is Working!! 1 Quote
Question
Tales
Only this... I'm trying to get 7 days vip and the server shows "Debug on npc" and nothing more...
12 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.