Raised This Month: $32 Target: $400
 8% 

[ANY] XF:DragonByte Credits API


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Mr_panica
Senior Member
Join Date: Jan 2017
Location: Russia, Saint-Petersburg
Plugin ID:
7129
Plugin Version:
2.0.0
Plugin Category:
Technical/Development
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    API for the credit system of the [DBTech] DragonByte Credits plugin.
    Old 05-26-2020 , 20:11   [ANY] XF:DragonByte Credits API
    Reply With Quote #1

    API features:
    • Add credits to the user.
    • Take credits from user.
    • Find out the quantity of credits from user.
    • Find out if user is registered on the forum.

    Requirements:User credits should be in the xf_user table.

    Installation:
    In the plugin core there is #define CURRENCY_ID 2 - you need to insert the ID of your credits there.

    databases.cfg:
    Code:
        "xf_credits"
        {
            "driver"    "mysql"
            "host"      " "
            "database"  " "
            "user"      " "
            "pass"      " "
        }
    Usage example:
    Code:
    public Action Command_Test_Take(int client, int args)
    {
        Xf_TakeCredits(client, 100, true, "test_event", "%N", client);
        return Plugin_Handled;
    
    }
    bVisibility - whether to display information in the transaction log*

    In this example, 100 credits will be taken from the player, this will be shown in the transaction log.
    The transaction name will be: test_event.
    And in the additional message will be the name of the player.
    Attached Files
    File Type: zip xf_credits-2v (2).zip (5.2 KB, 144 views)
    __________________
    Sorry for my English.
    Mr_panica is offline
    Reply


    Thread Tools
    Display Modes

    Posting Rules
    You may not post new threads
    You may not post replies
    You may not post attachments
    You may not edit your posts

    BB code is On
    Smilies are On
    [IMG] code is On
    HTML code is Off

    Forum Jump


    All times are GMT -4. The time now is 18:33.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode