Motoharo Posted July 20, 2023 Group: Members Topic Count: 6 Topics Per Day: 0.00 Content Count: 14 Reputation: 1 Joined: 05/18/19 Last Seen: 1 hour ago Share 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 Link to comment Share on other sites More sharing options...
0 Angeluz Posted September 20, 2023 Group: Members Topic Count: 10 Topics Per Day: 0.00 Content Count: 109 Reputation: 19 Joined: 07/28/12 Last Seen: 15 hours ago Share 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 Link to comment Share on other sites More sharing options...
0 Raymart Posted December 29, 2023 Group: Members Topic Count: 30 Topics Per Day: 0.01 Content Count: 83 Reputation: 0 Joined: 01/30/12 Last Seen: March 17 Share 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 Link to comment Share on other sites More sharing options...
0 Jesky Posted October 8, 2024 Group: Members Topic Count: 9 Topics Per Day: 0.00 Content Count: 55 Reputation: 3 Joined: 11/29/13 Last Seen: March 4 Share 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 Link to comment Share on other sites More sharing options...
0 Nanasi2 Posted November 16, 2024 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 11/16/24 Last Seen: November 16, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 JanaeMitchell Posted December 25, 2024 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 12/25/24 Last Seen: December 27, 2024 Share 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 Link to comment Share on other sites More sharing options...
0 Masuidac Posted December 26, 2024 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 1 Reputation: 0 Joined: 12/26/24 Last Seen: December 26, 2024 Share Posted December 26, 2024 22 hours ago, JanaeMitchell said: Does your program run smoothly on win10? slope 2 I have applied it Quote Link to comment Share on other sites More sharing options...
0 hendra814 Posted December 26, 2024 Group: Members Topic Count: 59 Topics Per Day: 0.01 Content Count: 1281 Reputation: 170 Joined: 06/12/12 Last Seen: 1 hour ago Share 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 Link to comment Share on other sites More sharing options...
Question
Motoharo
How to make the vip icon have the same duration as the player's VIP and keep counting even offline?
Edited by MotoharoLink to comment
Share on other sites
7 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.