Brian

Community Contributors
  • Content count

    2223
  • Joined

  • Last visited

  • Days Won

    18

Brian last won the day on March 22 2015

Brian had the most liked content!

Community Reputation

578 Excellent

About Brian

  • Rank
    Forum Administrator
  • Birthday July 1

Profile Information

  • Gender
    Male
  • Location
    California
  • Interests
    This email was sent from an unmonitored account. Replies to this email will not be answered.

Recent Profile Visitors

20641 profile views
  1. Add this getgroupid check at the beginning: - script vip_for_1week -1,{ OnPCLoginEvent: if (getgroupid() != 0) end; // first time logging into this account if (#VIP_expire == 0) { set #VIP_expire, gettimetick(2) + (7*86400); // 7 days dispbottom "Welcome to the server!"; dispbottom "You have been upgraded to a VIP for 1 week."; } if (#VIP_expire > gettimetick(2)) { // they still have time left dispbottom "VIP Rental : expires in " + callfunc("Time2Str",#VIP_expire); atcommand "@adjgroup 1"; 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 > 1) { set #VIP_expire, 1; atcommand "@adjgroup 0"; dispbottom "Your VIP Rental has expired."; } end; }
  2. Here you go: agit_controller_random.txt I updated the warp names to match the changes in 49459d342ec4e3b5d2ca8dbf85ab924ffa89faca.
  3. - script vip_for_1week -1,{ OnPCLoginEvent: // first time logging into this account if (#VIP_expire == 0) { set #VIP_expire, gettimetick(2) + (7*86400); // 7 days dispbottom "Welcome to the server!"; dispbottom "You have been upgraded to a VIP for 1 week."; } if (#VIP_expire > gettimetick(2)) { // they still have time left dispbottom "VIP Rental : expires in " + callfunc("Time2Str",#VIP_expire); atcommand "@adjgroup 1"; 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 > 1) { set #VIP_expire, 1; atcommand "@adjgroup 0"; dispbottom "Your VIP Rental has expired."; } end; }The values of the variable #VIP_expire0 = they never logged in 1 = they used VIP for 1 week and now it's over gettimetick(2) = VIP is active and that's the UNIX time when it expires