Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- private["_listedItems"];
- _config = [];
- _listedItems = [];
- //Go through weapons
- if(primaryWeapon player != "") then {_config set[count _config,primaryWeapon player]};
- if(secondaryWeapon player != "") then {_config set[count _config,secondaryWeapon player]};
- if(handgunWeapon player != "") then {_config set[count _config,handgunWeapon player]};
- //Go through items
- _config = _config + primaryWeaponItems player;
- _config = _config + (assignedItems player);
- _config = _config + (uniformItems player);
- _config = _config + (vestItems player);
- _config = _config + (backPackItems player);
- _config = _config - ["ItemGPS","ItemMap","ItemWatch","ItemCompass"];
- ((findDisplay 38400) displayCtrl 38405) ctrlSetText localize "STR_Global_Sell";
- {
- if(!(_x in _listedItems) && _x != "") then
- {
- _itemInfo = [_x] call life_fnc_fetchCfgDetails;
- _listedItems set[count _listedItems,_x];
- _itemCount = {_x == (_itemInfo select 0)} count _config;
- if(_itemCount > 1) then
- {
- _itemList lbAdd format["[%2] %1",_itemInfo select 1,_itemCount];
- }
- else
- {
- _itemList lbAdd format["%1",_itemInfo select 1];
- };
- _itemList lbSetData[(lbSize _itemList)-1,_itemInfo select 0];
- _itemList lbSetPicture[(lbSize _itemList)-1,_itemInfo select 2];
- _config = [_shop] call life_fnc_weaponShopCfg;
- {
- if (_x select 0 == _itemInfo select 0) then {
- _price = _x select 2;
- };
- } foreach (_config select 1);
- _itemList lbSetValue[(lbSize _itemList)-1,_price];
- };
- } foreach _config;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement