Jump to content

[Release] Advanced Trading 2.1 !UPDATED!


Zupa

Recommended Posts

Trade from vehicle occasionally says i drove a Rabbit. So....I can't choose the correct vehicle to sell from. Is there a variable in the code yet to blacklist certain things from being recognized?

 

Also, if you get in two different vehicles, it doesnt always go with the last one you were in.

Link to comment
Share on other sites

Hi,

 

Does this work with Zupa Single Currency 1.1?

 

I tried it and I get the issue where there are no coins given. Also if you have coins in your inventory and try to buy using the advanced trading it says you have no money.

I made sure I have the DLL files from here https://github.com/EpochSC/SingleCurrencyBanking

Also I have the currency set to headshots

 

I have been trying to fix this for a long time with my limited scripting knowledge,

 

Any help woul dbe great,

 

Thanks

Dave

 

did u typed headshots right with the capital, also a z i believe.

Link to comment
Share on other sites

Trade from vehicle occasionally says i drove a Rabbit. So....I can't choose the correct vehicle to sell from. Is there a variable in the code yet to blacklist certain things from being recognized?

 

Also, if you get in two different vehicles, it doesnt always go with the last one you were in.

 

Made my day ^^

 

Never really thought of the animals being local vehicles to the player client haha ^^

 

killing the rabbit would help ;)

 

If i get time i'll put a vehicle picker where u can choose the source vehicle ^^

Link to comment
Share on other sites

did u typed headshots right with the capital, also a z i believe.

Hi, I copied the headshots from the init in the single currency 

 

BankDialogWithdrawAmount = {
private ["_amount","_bank","_wealth"];
_amount = parseNumber (_this select 0);
_bank = player getVariable ["bank", 0];
_wealth = player getVariable["headShots",0];
 
So it looks like this
 
Z_MoneyVariable = "headShots";
 
I assumed that they should be the same but I am not good at scripting, any scripts I install I have to look at tutorials over and over :-/.
 
Should I change it to headShotz?
 
Thanks
Dave
Link to comment
Share on other sites

Hi,

 

Does this work with Zupa Single Currency 1.1?

 

I tried it and I get the issue where there are no coins given. Also if you have coins in your inventory and try to buy using the advanced trading it says you have no money.

I made sure I have the DLL files from here https://github.com/EpochSC/SingleCurrencyBanking

Also I have the currency set to headshots

 

I have been trying to fix this for a long time with my limited scripting knowledge,

 

Any help woul dbe great,

 

Thanks

Dave

there 2 diff thing so no i would not do it but yes it it would work if you merged it but only certen 

 

my server Epoch no show item gear vehicles or bags and inventory help please 

 

 

tanks...

 

 

0010.jpg

what type currency do you have? 

Link to comment
Share on other sites

^^ think he means "get" ^^

same problem at my server.

if i trade with any trader, i don't get coins for selling something and don't loose coins if i buy something.

first i think it was my mistake, cause i renamed the coins. but now i change the correct name but the problem don't be fixed.

 

any idea?

 

i use ZSC 3.0

 

*Edit*

 

ok, i fixed the Problem ^^

 

...ZSC\compiles\SC_fnc_addCoins.sqf change this

/*
private ["_player","_amount","_wealth","_newwealth", "_result"];            
_player =  _this select  0;
_amount =  _this select  1;
_result = false;    
_wealth = _player getVariable["cashMoney",0];
_player setVariable["cashMoney",_wealth + _amount, true];
PVDZE_plr_Save = [_player,(magazines _player),true,true] ;
publicVariableServer "PVDZE_plr_Save";
_player setVariable ["moneychanged",1,true];                    
_newwealth = _player getVariable["cashMoney",0];        
if (_newwealth >= _wealth) then { _result = true; };            
_result
*/

private ["_player","_amount","_wealth","_newwealth", "_result"];            
_player =  _this select  0;
_amount =  _this select  1;
_result = false;    
_wealth = _player getVariable["headShots",0];
_player setVariable["headShots",_wealth + _amount, true];
PVDZE_plr_Save = [_player,(magazines _player),true,true] ;
publicVariableServer "PVDZE_plr_Save";
_player setVariable ["moneychanged",1,true];                    
_newwealth = _player getVariable["headShots",0];        
if (_newwealth >= _wealth) then { _result = true; };            
_result

 

to this:

private ["_player","_amount","_wealth","_newwealth", "_result"];            
_player =  _this select  0;
_amount =  _this select  1;
_result = false;    
_wealth = _player getVariable["cashMoney",0];
_player setVariable["cashMoney",_wealth + _amount, true];
PVDZE_plr_Save = [_player,(magazines _player),true,true] ;
publicVariableServer "PVDZE_plr_Save";
_player setVariable ["moneychanged",1,true];                    
_newwealth = _player getVariable["cashMoney",0];        
if (_newwealth >= _wealth) then { _result = true; };            
_result


/*
private ["_player","_amount","_wealth","_newwealth", "_result"];            
_player =  _this select  0;
_amount =  _this select  1;
_result = false;    
_wealth = _player getVariable["headShots",0];
_player setVariable["headShots",_wealth + _amount, true];
PVDZE_plr_Save = [_player,(magazines _player),true,true] ;
publicVariableServer "PVDZE_plr_Save";
_player setVariable ["moneychanged",1,true];                    
_newwealth = _player getVariable["headShots",0];        
if (_newwealth >= _wealth) then { _result = true; };            
_result
*/

 

and at SC_fnc_removeCoins.sqf change this

 

/*
private ["_player","_amount","_wealth","_newwealth", "_result"];
_player = _this select 0;
_amount = _this select 1;
_result = false;
_wealth = _player getVariable["cashMoney",0];  
if(_amount > 0)then{
if (_wealth < _amount) then {
_result = false;
} else {                         
_newwealth = _wealth - _amount;
_player setVariable["cashMoney",_newwealth, true];
_player setVariable ["moneychanged",1,true];    
_result = true;
PVDZE_plr_Save = [_player,(magazines _player),true,true] ;
publicVariableServer "PVDZE_plr_Save";            
};
}else{
_result = true;
};
_result

*/

private ["_player","_amount","_wealth","_newwealth", "_result"];
_player =  _this select  0;
_amount =  _this select  1;
_result = false;
_wealth = _player getVariable["headShots",0];        
if (_wealth <= _amount) then {
    _result = false;
} else {                         
    _newwealth = _wealth - _amount;
    _player setVariable["headShots",_newwealth, true];
    _player setVariable ["moneychanged",1,true];    
    _result = true;
    PVDZE_plr_Save = [_player,(magazines _player),true,true] ;
    publicVariableServer "PVDZE_plr_Save";            
};
_result

 

to this:

private ["_player","_amount","_wealth","_newwealth", "_result"];
_player = _this select 0;
_amount = _this select 1;
_result = false;
_wealth = _player getVariable["cashMoney",0];  
if(_amount > 0)then{
if (_wealth < _amount) then {
_result = false;
} else {                         
_newwealth = _wealth - _amount;
_player setVariable["cashMoney",_newwealth, true];
_player setVariable ["moneychanged",1,true];    
_result = true;
PVDZE_plr_Save = [_player,(magazines _player),true,true] ;
publicVariableServer "PVDZE_plr_Save";            
};
}else{
_result = true;
};
_result

/*
private ["_player","_amount","_wealth","_newwealth", "_result"];
_player =  _this select  0;
_amount =  _this select  1;
_result = false;
_wealth = _player getVariable["headShots",0];        
if (_wealth <= _amount) then {
    _result = false;
} else {                         
    _newwealth = _wealth - _amount;
    _player setVariable["headShots",_newwealth, true];
    _player setVariable ["moneychanged",1,true];    
    _result = true;
    PVDZE_plr_Save = [_player,(magazines _player),true,true] ;
    publicVariableServer "PVDZE_plr_Save";            
};
_result
*/

Link to comment
Share on other sites

Sorry for another nooby question but is this only setup for the cherno traders? as only one of the traders on my tavi server has the advanced trade option

No. This mod is not map specific. I have it on a Napf overpoch server and have 0 problems. All my traders, including custom ones, show the menu properly.

Link to comment
Share on other sites

If not all traders have the menu, make sure they are all in the server traders list. I'd have to double check the code, but I'm pretty sure it checks that list to make sure that skin is supposed to be a trader. (Check your Mission folder, server_traders.sqf serverTraders = )

Link to comment
Share on other sites

Regular players on my server are unable to access the advanced trading menu on the traders. It shows up, when they click it nothing happens. I have whitelisted the dialogue as instructed in the tutorial "711197"

 

any ideas?

 

Ive even set the dialogues check to false in the antihack and this still isnt' working for players.

.

Link to comment
Share on other sites

The players in game are saying that they dont see the menu when they are by the trader the Advanced Trading shows up but when they click on it nothing happenes? Myself and the other admins seem to be using this fine anyone know a fix for this besides making all of the players admin :) Thanks <3

Im having the exact same issue. I whitelisted the dialog like the instructions say, and players still cant see it. They click the scroll wheel optoin and nothing happens. Did you ever figure this out?

Link to comment
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
×
×
  • Create New...