Brian

Members
  • Content Count

    2,223
  • Avg. Content Per Day

    1
  • Joined

  • Last visited

  • Days Won

    18

Brian last won the day on March 22 2015

Brian had the most liked content!

Community Reputation

580 Excellent

About Brian

  • Rank
    Mastering
  • Birthday July 1

Profile Information

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

Recent Profile Visitors

22,758 profile views
  1. Are you BrianL from eA?

  2. Brian

    Item Images

  3. Brian

    KPatcher

  4. Brian

    N> script with groupid()?

    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; }
  5. Brian

    Help Random WOE Castle not compatible Rathena

    Here you go: agit_controller_random.txt I updated the warp names to match the changes in 49459d342ec4e3b5d2ca8dbf85ab924ffa89faca.
  6. Brian

    N> script with groupid()?

    - 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
  7. Brian

    Reset player permanent variable

    Here's an example of how you could edit the zeny of an offline player: zeny_transfer.txt query_sql "UPDATE `char` SET `zeny`=`zeny`+'"[email protected]+"' WHERE `char_id`='"[email protected]_id+"'";