Jump to content

Bishopob

Member
  • Posts

    13
  • Joined

  • Last visited

  • Days Won

    1

Reputation Activity

  1. Like
    Bishopob got a reaction from He-Man in [Release] HS Blackmarket 1.6 | 'New' Trader System | Special Trader | Blackmarket   
    Hello,
    Changed this via page 38
        _player = _this select 0;
        _nr = _this select 1;
        _cIndex = EPOCH_customVars find "Crypto";
        _vars = _player getVariable["VARS", call EPOCH_defaultVars_SEPXVar];
        _current_crypto = _vars select _cIndex;
        _current_cryptoRaw = _current_crypto;
        _playerCryptoLimit = EPOCH_customVarLimits select _cIndex;
        _playerCryptoLimit params ["_playerCryptoLimitMax","_playerCryptoLimitMin"];
        _current_crypto = ((_current_cryptoRaw + _nr) min _playerCryptoLimitMax) max _playerCryptoLimitMin;
        _newcrypt remoteExec ['EPOCH_effectCrypto',(owner _player)];
        _vars set[_cIndex, _current_crypto];
        _player setVariable["VARS", _vars];
     
    Even tried both syntax 'VARS' and "Vars" as this is how it is written in the "fix" Still no money changing hands, So i cant even tell if the money comes back after player logs.
    ***Update: Fixed. Works!
    To clarify why the fix. This fixes BM trader from selling and buying items with no crypto exchange taking place.
    Change this line
    _newcrypt remoteExec ['EPOCH_effectCrypto',(owner _player)];  to _current_crypto remoteExec ['EPOCH_effectCrypto',(owner _player)];
    This being said, One of the Masters of the Universe pointed out in my .cfg file that on the last line there was a hidden symbol in the x position. ["VARS",_vats];x
    can't see it in notepad++ Rewrote the entire line. Works! I likely added it in that space somehow, somewhere a day or two ago and simply couldn't find it.
    Tip: sometimes copy/paste does this.
×
×
  • Create New...