Syndicate Posted February 22, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 108 Reputation: 6 Joined: 08/27/12 Last Seen: June 4, 2014 Share Posted February 22, 2013 How can I remove the status effect of VIP system was made by BrianL? Quote Link to comment Share on other sites More sharing options...
nanakiwurtz Posted February 22, 2013 Group: Members Topic Count: 81 Topics Per Day: 0.02 Content Count: 1654 Reputation: 583 Joined: 08/09/12 Last Seen: January 14, 2020 Share Posted February 22, 2013 atcommand "@adjgroup 0 "+strcharinfo(0); set #VIP_expire, 0; Quote Link to comment Share on other sites More sharing options...
clydelion Posted February 22, 2013 Group: Members Topic Count: 17 Topics Per Day: 0.00 Content Count: 754 Reputation: 186 Joined: 05/22/12 Last Seen: October 15, 2022 Share Posted February 22, 2013 Please post the script. Quote Link to comment Share on other sites More sharing options...
Syndicate Posted February 22, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 108 Reputation: 6 Joined: 08/27/12 Last Seen: June 4, 2014 Author Share Posted February 22, 2013 http://athena-scripts.googlecode.com/svn/dev/Brian/script_requests/vip_rental.txt //===== eAthena Script ======================================= //= VIP Rental System //===== By: ================================================== //= Brian //===== Current Version: ===================================== //= 1.0 //===== Compatible With: ===================================== //= eAthena SVN (SQL only) //===== Description: ========================================= //= Makes a player VIP (GM level 1) for a set amount of time. //===== Additional Comments: ================================= //= //============================================================ function script F_VIPstart { set .@ticks, getarg(0); // getarg(0) = ticks (seconds) if (.@ticks <= 0) { debugmes "F_VIPstart - tried to set a timer in the past"; end; } // #VIP_expire = Unixtime when their VIP expires set #VIP_expire, ((#VIP_expire > gettimetick(2)) ? #VIP_expire : gettimetick(2)) + .@ticks; doevent "vip_rental::OnPCLoginEvent"; // trigger the VIP to start return; } - script vip_rental -1,{ OnPCLoginEvent: if (#VIP_expire > gettimetick(2)) { // they still have time left dispbottom "VIP Rental : expires in " + callfunc("Time2Str",#VIP_expire); atcommand "@adjgroup 1 "+strcharinfo(0); deltimer strnpcinfo(3)+"::OnPCLoginEvent"; if ((#VIP_expire - gettimetick(2)) < 2147483) { // prevent overflow error addtimer (#VIP_expire - gettimetick(2)) *1000, strnpcinfo(3)+"::OnPCLoginEvent"; } else { addtimer 2147483000, strnpcinfo(3)+"::OnPCLoginEvent"; } } else if (#VIP_expire) { atcommand "@adjgroup 0 "+strcharinfo(0); set #VIP_expire, 0; dispbottom "Your VIP Rental has expired."; } end; } Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 22, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted February 22, 2013 what status effect ? i dont see any inside your script ? Quote Link to comment Share on other sites More sharing options...
Syndicate Posted February 22, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 108 Reputation: 6 Joined: 08/27/12 Last Seen: June 4, 2014 Author Share Posted February 22, 2013 VIP Rental : expires in 44days, 18 hours , 45 minutes , 54 secondsThis is appearing in my chat.When I use again the item it will add another 15 days .. Quote Link to comment Share on other sites More sharing options...
Emistry Posted February 22, 2013 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted February 22, 2013 that's the behavior of the script itself...otherwise how you want it do work ? Quote Link to comment Share on other sites More sharing options...
Syndicate Posted February 23, 2013 Group: Members Topic Count: 38 Topics Per Day: 0.01 Content Count: 108 Reputation: 6 Joined: 08/27/12 Last Seen: June 4, 2014 Author Share Posted February 23, 2013 Thanks problem solved.. Quote Link to comment Share on other sites More sharing options...
Question
Syndicate
How can I remove the status effect of VIP system was made by BrianL?
Link 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.