1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[16/09/2016] AP / Hats update

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

  1. n0name

    n0name Founder VIP

    Joined:
    Aug 27, 2012
    Messages:
    7,070
    Likes Received:
    1,398
    Steam:
    Steam SteamRep SourceBans gameMe
    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 VIP Member

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

    n0name Founder VIP

    Joined:
    Aug 27, 2012
    Messages:
    7,070
    Likes Received:
    1,398
    Steam:
    Steam SteamRep SourceBans gameMe
    Updated with some changes.