[16/09/2016] AP / Hats update

Discussion in 'Announcements' started by n0name, Sep 16, 2016.

Thread Status:
Not open for further replies.
  1. n0name

    n0name Administrator

    Joined:
    Aug 27, 2012
    Messages:
    8,650
    Likes Received:
    1,523
    Steam:
    Steam SteamRep
    As suggested in this thread, I have done some changes to the AP system and hats plugin.

    The changes are as follows:
    - The buy menu now displays the amount of AP required to purchase this effect/color (sth. like: [150 AP] Green Confetti)
    - Added new refund function. To refund an item, either open the !benefits menu > Hat menu > Refund item(s) or type !refund in chat.
    There, you can choose between refunding an effect or a color (latter ones are currently disabled).
    After selecting an item, all hats that have that item assigned will be reset, the effect/color deleted and the AP credited back to your account.
    Note: each refund deducts 25% of the original buying price.
    - Code clean up / refactoring: mainly internal, now fully uses the SM Transitional syntax whenever possible.
    - Updated AP to add method for refunding credits.

    These changes may take a map change or server restart to become fully active.

    ------------------------------

    Updated 17/09/2016

    - Fixed an exploit related to refunding, allowing you to farm unlimited AP
    - Internal: changed the way how a user's hats are stored
    - Internal: the plugin no longer holds all hat settings from all players in it cache, but rather queries a single player's ones when they join.
     
    Last edited: Sep 17, 2016
  2. Enrimeus

    Enrimeus alt_Human Member

    Joined:
    Aug 7, 2016
    Messages:
    236
    Likes Received:
    32
    Nice to see my suggestions made it ^^ Thanks n0
     
    Last edited: Sep 16, 2016
  3. n0name

    n0name Administrator

    Joined:
    Aug 27, 2012
    Messages:
    8,650
    Likes Received:
    1,523
    Steam:
    Steam SteamRep
    Updated with some changes.
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.