I use master key on our servers. When a player sells a key, it takes the key. So, tried putting it in backpack. still takes the key. Tried with copies, one on toolbelt, one in backpack, took both keys lol
I found that in trade_any_vehicle.sqf there is a block of code that removes the keys and would like to comment t that out to try if the key stays in the inventory
// remove Key
_temp_keys = [];
_keyColor = ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"];
{
if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in _keyColor) then {
if (str(getNumber(configFile >> "CfgWeapons" >> _x >> "keyid")) == _objectCharacterId) then {
[_activatingPlayer,_x] call BIS_fnc_invRemove;
};
};
} count (items _activatingPlayer);
I wanted to bring that mission sided (as its found in the dayz_code\actions), but im not able to find it in the compiles. So i looked through the dayz_code again to find that
player_hivetrading.sqf calls these actions, based on a string?!?! it seems lol.
// Action file to use for trade
_afile = _x select 7;
_File = "\z\addons\dayz_code\actions\" + _afile + ".sqf";
Question
theduke
I use master key on our servers. When a player sells a key, it takes the key. So, tried putting it in backpack. still takes the key. Tried with copies, one on toolbelt, one in backpack, took both keys lol
I found that in trade_any_vehicle.sqf there is a block of code that removes the keys and would like to comment t that out to try if the key stays in the inventory
// remove Key _temp_keys = []; _keyColor = ["ItemKeyYellow","ItemKeyBlue","ItemKeyRed","ItemKeyGreen","ItemKeyBlack"]; { if (configName(inheritsFrom(configFile >> "CfgWeapons" >> _x)) in _keyColor) then { if (str(getNumber(configFile >> "CfgWeapons" >> _x >> "keyid")) == _objectCharacterId) then { [_activatingPlayer,_x] call BIS_fnc_invRemove; }; }; } count (items _activatingPlayer);
I wanted to bring that mission sided (as its found in the dayz_code\actions), but im not able to find it in the compiles. So i looked through the dayz_code again to find that
player_hivetrading.sqf calls these actions, based on a string?!?! it seems lol.
// Action file to use for trade _afile = _x select 7; _File = "\z\addons\dayz_code\actions\" + _afile + ".sqf";
any advice would be awesome
Thanks
Duke
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now