Leigham Posted February 5, 2015 Report Share Posted February 5, 2015 Im Starting on COMPLETLY sorting the Traders For Overwatch Guns and Standard Guns (so all AK's in an AK tab and So on) I know ive taken on an Absolutly huge task, but in the end It will be worth it, Im doing it for the SCC Script Im asking for Help in this but it is not 100% neccessary as will be doing it anyway and releasing after everytest to find if its working,I will also include My Server Mission.sqf and Server Traders and also the block of code you need to replace in you fn_self actions for Super Hero and Super Bandit :) if you would like to help me with this then Join Unite.Udskies.co.uk Teamspeak and poke Mr Chow replace Downloads of what Ive done so far... https://github.com/Leigham/Customtraders // 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 > -5000); }; if((_traderMenu select 2) == "hero") then { _humanity_logic = (_humanity < 5000); }; 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 { // Static Menu { //diag_log format["DEBUG TRADER: %1", _x]; _buy = player addAction [format["Trade %1 %2 for %3 %4",(_x select 3),(_x select 5),(_x select 2),(_x select 6)], "\z\addons\dayz_code\actions\trade_items_wo_db.sqf",[(_x select 0),(_x select 1),(_x select 2),(_x select 3),(_x select 4),(_x select 5),(_x select 6)], (_x select 7), true, true, "",""]; s_player_parts set [count s_player_parts,_buy]; } count (_traderMenu select 1); // Database menu _buy = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\show_dialog.sqf",(_traderMenu select 0), 999, true, false, "",""]; s_player_parts set [count s_player_parts,_buy]; }; s_player_parts_crtl = 1; }; } else { {player removeAction _x} count s_player_parts;s_player_parts = []; s_player_parts_crtl = -1; }; with // 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 > -5000); }; if((_traderMenu select 2) == "villain") then { _low_high = "high"; _humanity_logic = (_humanity > -50000); }; if((_traderMenu select 2) == "hero") then { _humanity_logic = (_humanity < 5000); }; if((_traderMenu select 2) == "super") then { _humanity_logic = (_humanity < 50000); }; 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 { // Static Menu { //diag_log format["DEBUG TRADER: %1", _x]; _buy = player addAction [format["Trade %1 %2 for %3 %4",(_x select 3),(_x select 5),(_x select 2),(_x select 6)], "\z\addons\dayz_code\actions\trade_items_wo_db.sqf",[(_x select 0),(_x select 1),(_x select 2),(_x select 3),(_x select 4),(_x select 5),(_x select 6)], (_x select 7), true, true, "",""]; s_player_parts set [count s_player_parts,_buy]; } count (_traderMenu select 1); // Database menu _buy = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\show_dialog.sqf",(_traderMenu select 0), 999, true, false, "",""]; s_player_parts set [count s_player_parts,_buy]; }; s_player_parts_crtl = 1; }; } else { {player removeAction _x} count s_player_parts;s_player_parts = []; s_player_parts_crtl = -1; }; Link to comment Share on other sites More sharing options...
AlexLawson Posted February 7, 2015 Report Share Posted February 7, 2015 ?, coins come with sorted OW traders. Link to comment Share on other sites More sharing options...
KillKillKill Posted February 7, 2015 Report Share Posted February 7, 2015 Interesting when completed! Link to comment Share on other sites More sharing options...
Leigham Posted February 7, 2015 Author Report Share Posted February 7, 2015 updating github today, ive done a few more tabs Link to comment Share on other sites More sharing options...
AlexLawson Posted February 10, 2015 Report Share Posted February 10, 2015 OK I might have misunderstood the point of this post but as I said above zupas coins script come with overwatch sorted guns ? https://github.com/EpochSC/SingleCurrencyStorage/tree/master/DayZ_Epoch_11.Chernarus/ZSC/config/Category And if you put his and your's side by side there just the same but prices and category number changed :D Link to comment Share on other sites More sharing options...
Leigham Posted February 14, 2015 Author Report Share Posted February 14, 2015 I split them up into colours with the acr and there are some guns that wasnt in there Link to comment Share on other sites More sharing options...
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