Jump to content

Trader Epoch


lucho

Recommended Posts

 

Can i make this with skins ?

I will make when the player wear Bandit skin the trader will trade to him

like this if plaeyr wear "Banditskin_DZ"

trader true

 

menu_CIV_EuroMan01_EP1 = [
    [["Assault Rifle",637],["Light Machine Gun",638],["Pistols",674],["Shotguns And Single Shot",641],["Sniper Rifle",640],["Submachine Guns",642],["Overwatch Vil",1002],["Overwatch Tar",1003],["Overwatch Sniper",1011],["Overwatch Scar",1004],["Overwatch Sidearm",1001],["Overwatch Mas",1007],["Overwatch Hk417",1009],["Overwatch Hk416",1008],["Overwatch G3",1006],["Overwatch Dmr",1010],["Overwatch Acr",1005]],
    [],
    "neutral"
];

 

 

	// All Traders
	if (_isMan && !_isPZombie && _traderType in serverTraders) then {
		
		if (s_player_parts_crtl < 0) then {

			// get humanity
			_humanity = player getVariable ["humanity",0];
			_traderMenu = call compile format["menu_%1;",_traderType];

			// diag_log ("TRADER = " + str(_traderMenu));
			
			_low_high = "low";
			_humanity_logic = false;
			if((_traderMenu select 2) == "friendly") then {
				_humanity_logic = (_humanity < -5000);
			};
			if((_traderMenu select 2) == "hostile") then {
				_low_high = "high";
				_humanity_logic = (_humanity > -2500);
			};
			if((_traderMenu select 2) == "hostilea") then {
				_low_high = "high";
				_humanity_logic = (_humanity > -22500);
			};
			if((_traderMenu select 2) == "hostileas") then {
				_low_high = "high";
				_humanity_logic = (_humanity > -97500);
			};
			if((_traderMenu select 2) == "hero") then {
				_humanity_logic = (_humanity < 7500);
			};
			if((_traderMenu select 2) == "heroe") then {
				_humanity_logic = (_humanity < 27500);
			};
			if((_traderMenu select 2) == "heroes") then {
				_humanity_logic = (_humanity < 103000);
			};
			if(_humanity_logic) then {
				_cancel = player addAction [format[localize "STR_EPOCH_ACTIONS_HUMANITY",_low_high], "\z\addons\dayz_code\actions\trade_cancel.sqf",["na"], 0, true, false, "",""];
				s_player_parts set [count s_player_parts,_cancel];
			} else {
				

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...