[Release] XP Tax

35 posts in this topic

5 hours ago, Braniinou said:

Hello, I would like to know if it was possible to create exceptions to prevent certain players (by UID) to pay this tax ?

Sure, you would just look for the "///-XP Tax-///" sections in the Request files you added for this and use getPlayerUID to check if their steam64id matches an array of your choice.

Share this post

Link to post
Share on other sites
22 hours ago, Braniinou said:

I do not understand, what should I do concretely?

Something like this:

///-XP Tax-///
    _qualityModifier = (_quality/100);
    _respectModifier = _salesPrice*_qualityModifier;
    missionNamespace setVariable ["respectModifier",_respectModifier];
    publicVariable "respectModifier";
    _newplayerRespect = round (_playerRespect - _respectModifier);
    if (_newplayerRespect < 0) then 
    _newplayerRespect = 0;
    _playerUID = getPlayerUID _playerObject;
    private _uidArray = ["Steam64ID1", "Steam64ID2", "..."];
    if !(_playerUID in _uidArray) then {
        _playerObject setVariable ["ExileScore", _newplayerRespect];
        format["setAccountScore:%1:%2", _newplayerRespect, getPlayerUID _playerObject] call ExileServer_system_database_query_fireAndForget;
        [_playerUID, "purchaseVehicleSkinResponse", [0, str _newplayerRespect]] call ExileServer_system_network_send_to;
        ExileClientPlayerScore = _newplayerRespect;
        (owner _playerObject) publicVariableClient "ExileClientPlayerScore";
        ExileClientPlayerScore = nil;
    ///-XP Tax-///    



Edited by Imthatguyhere
Fix spacing issue.

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.