Motoharo Posted July 20, 2023 Posted July 20, 2023 (edited) - script Vip_Icon -,{ OnPCLoginEvent: bonus_script_clear EFST_VIPSTATE; if(vip_status(1)) { set .@timer, vip_status(VIP_STATUS_EXPIRE); bonus_script "{}",3600,0,0,EFST_VIPSTATE; dispbottom "--- VIP ----"; dispbottom "=========================="; dispbottom "Jogador VIP"; dispbottom "Duração do VIP restante :"+callfunc("Time2Str",.@timer); dispbottom "=========================="; end; } } How to make the vip icon have the same duration as the player's VIP and keep counting even offline? Edited July 20, 2023 by Motoharo Quote
0 Angeluz Posted September 20, 2023 Posted September 20, 2023 - script Vip_Icon -,{ OnPCLoginEvent: if(vip_status(1)) { set .@a, vip_status(2) - gettimetick(2); bonus_script "{}",.@a,8,0,EFST_VIPSTATE; dispbottom "--- VIP ----"; dispbottom "=========================="; dispbottom "VIP Player"; dispbottom "Remaining VIP duration :"+callfunc("Time2Str",vip_status(2)); dispbottom "=========================="; end; } } try with this Quote
0 Raymart Posted December 29, 2023 Posted December 29, 2023 On 9/20/2023 at 10:56 AM, Angeluz said: - script Vip_Icon -,{ OnPCLoginEvent: if(vip_status(1)) { set .@a, vip_status(2) - gettimetick(2); bonus_script "{}",.@a,8,0,EFST_VIPSTATE; dispbottom "--- VIP ----"; dispbottom "=========================="; dispbottom "VIP Player"; dispbottom "Remaining VIP duration :"+callfunc("Time2Str",vip_status(2)); dispbottom "=========================="; end; } } try with this Hi, I've try this script but instead of VIP status the one it show is for the Endure status and Icon Quote
0 Jesky Posted October 8, 2024 Posted October 8, 2024 On 12/29/2023 at 8:11 AM, Raymart said: Hi, I've try this script but instead of VIP status the one it show is for the Endure status and Icon it is because on that script, it is using EFST_VIPSTATE which is a custom variable and because you do not define it on your server, it is showing endure status and icon as a default fallback. you have to define yours on your own server and client (adding custom status icon as well). take a look at this as reference: here is another guide if you are using old rathena: Quote
0 Nanasi2 Posted November 16, 2024 Posted November 16, 2024 To make the VIP icon have the same duration as the player's VIP status and keep counting even when the player is offline waffle game, you can modify your script to use a permanent timer that updates the VIP status icon. Here's an updated version of your script: • script Vip_Icon -1,{ OnPCLoginEvent: bonus_script_clear EFST_VIPSTATE; if (vip_status(1)) { set .@timer, vip_status(VIP_STATUS_EXPIRE); // Set the VIP status icon with the remaining time bonus_script "{ bonus bAllStats, 1; }", .@timer, 0, 0, EFST_VIPSTATE; dispbottom "--- VIP ----"; dispbottom "=========================="; dispbottom "Jogador VIP"; dispbottom "Duração do VIP restante :" + callfunc("Time2Str", .@timer); dispbottom "=========================="; end; } } function script Time2Str { set .@time, getarg(0); set .@days, .@time / 86400; set .@hours, (.@time % 86400) / 3600; set .@minutes, (.@time % 3600) / 60; set .@seconds, .@time % 60; return .@days + "d " + .@hours + "h " + .@minutes + "m " + .@seconds + "s"; } Quote
0 JanaeMitchell Posted December 25, 2024 Posted December 25, 2024 (edited) On 11/16/2024 at 9:28 AM, Nanasi2 said: To make the VIP icon have the same duration as the player's VIP status and keep counting even when the player is offline waffle game, you can modify your script to use a permanent timer that updates the VIP status icon. Here's an updated version of your script: • script Vip_Icon -1,{ OnPCLoginEvent: bonus_script_clear EFST_VIPSTATE; if (vip_status(1)) { set .@timer, vip_status(VIP_STATUS_EXPIRE); // Set the VIP status icon with the remaining time bonus_script "{ bonus bAllStats, 1; }", .@timer, 0, 0, EFST_VIPSTATE; dispbottom "--- VIP ----"; dispbottom "=========================="; dispbottom "Jogador VIP"; dispbottom "Duração do VIP restante :" + callfunc("Time2Str", .@timer); dispbottom "=========================="; end; } } uno online function script Time2Str { set .@time, getarg(0); set .@days, .@time / 86400; set .@hours, (.@time % 86400) / 3600; set .@minutes, (.@time % 3600) / 60; set .@seconds, .@time % 60; return .@days + "d " + .@hours + "h " + .@minutes + "m " + .@seconds + "s"; } Does your program run smoothly on win10? Edited December 25, 2024 by JanaeMitchell Quote
0 Masuidac Posted December 26, 2024 Posted December 26, 2024 22 hours ago, JanaeMitchell said: Does your program run smoothly on win10? slope 2 I have applied it Quote
0 hendra814 Posted December 26, 2024 Posted December 26, 2024 44 minutes ago, Masuidac said: I have applied it hi, can you share complete guide to apply VIP icon and can you share stateiconimginfo.lub: translated file, because i don't have it. Quote
Question
Motoharo
How to make the vip icon have the same duration as the player's VIP and keep counting even offline?
Edited by Motoharo7 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.