Kimarik Posted May 14, 2017 Report Share Posted May 14, 2017 Hi I want to make a Superhero and Superbandit on my Server. i do some changes in fn_selfaction. Spoiler if ((_traderMenu select 2) == "friendly") then { _humanity_logic = (_humanity < -10000); }; if ((_traderMenu select 2) == "hostile") then { _low_high = localize "STR_EPOCH_ACTIONS_HUMANITY_HIGH"; _humanity_logic = (_humanity > -10000); }; if ((_traderMenu select 2) == "hero") then { _humanity_logic = (_humanity < 10000); }; if ((_traderMenu select 2) == "superhero") then { _humanity_logic = (_humanity < 100000); }; if ((_traderMenu select 2) == "superhostile") then { _humanity_logic = (_humanity < -100000); }; 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 { I add the red marked vor SH and SB, and i added the traders in server traders. Spoiler // Superbandit menu_SBH_Alpha_Soldier3 = [ [["Airvehicles Armed",6001],["Tanks",6003],["TWS Weapons",6005]], [], "superhostile" ]; // Superhero menu_SBH_Alpha_Soldier1 = [ [["Airvehicles Armed",6000],["Tanks",6002],["TWS Weapons",6004]], [], "superhero" ]; My problem now is u can trade with any + Humanity with the superhero trader. but i want to have that only Player with over 100k humanity can trade. Can someone tell me where the misstake is? Link to comment Share on other sites More sharing options...
0 lwbuk Posted May 14, 2017 Report Share Posted May 14, 2017 Edit, wrong , gimme a sec Link to comment Share on other sites More sharing options...
0 Kimarik Posted May 14, 2017 Author Report Share Posted May 14, 2017 but does this not mean Spoiler if ((_traderMenu select 2) == "superhero") then { _humanity_logic = (_humanity > 100000); }; is smaler then, because if i look the hero he told me my humanity is to low Link to comment Share on other sites More sharing options...
0 Relentless Posted May 14, 2017 Report Share Posted May 14, 2017 Change if ((_traderMenu select 2) == "superhostile") then { _humanity_logic = (_humanity < -100000); }; to if ((_traderMenu select 2) == "superhostile") then { _humanity_logic = (_humanity > -100000); }; Kimarik 1 Link to comment Share on other sites More sharing options...
0 Kimarik Posted May 14, 2017 Author Report Share Posted May 14, 2017 ok. if 2 scripter told me then i try that Link to comment Share on other sites More sharing options...
0 Kimarik Posted May 14, 2017 Author Report Share Posted May 14, 2017 ok now i know the mistake i do. thx a lot Link to comment Share on other sites More sharing options...
0 Relentless Posted May 15, 2017 Report Share Posted May 15, 2017 On 14.5.2017 at 2:19 PM, Kimarik said: ok now i know the mistake i do. thx a lot Was it that one we told you or something different? Please write down your solution in here so people who have the same problem and find this topic will know the solution aswell. :) Link to comment Share on other sites More sharing options...
0 Kimarik Posted May 15, 2017 Author Report Share Posted May 15, 2017 it was that you told me. i only coppyed the hero part and past it twice after the hero entry ^^ Link to comment Share on other sites More sharing options...
Question
Kimarik
Hi
I want to make a Superhero and Superbandit on my Server.
i do some changes in fn_selfaction.
if ((_traderMenu select 2) == "friendly") then {
_humanity_logic = (_humanity < -10000);
};
if ((_traderMenu select 2) == "hostile") then {
_low_high = localize "STR_EPOCH_ACTIONS_HUMANITY_HIGH";
_humanity_logic = (_humanity > -10000);
};
if ((_traderMenu select 2) == "hero") then {
_humanity_logic = (_humanity < 10000);
};
if ((_traderMenu select 2) == "superhero") then {
_humanity_logic = (_humanity < 100000);
};
if ((_traderMenu select 2) == "superhostile") then {
_humanity_logic = (_humanity < -100000);
};
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 {
I add the red marked vor SH and SB, and i added the traders in server traders.
// Superbandit
menu_SBH_Alpha_Soldier3 = [
[["Airvehicles Armed",6001],["Tanks",6003],["TWS Weapons",6005]],
[],
"superhostile"
];
// Superhero
menu_SBH_Alpha_Soldier1 = [
[["Airvehicles Armed",6000],["Tanks",6002],["TWS Weapons",6004]],
[],
"superhero"
];
My problem now is u can trade with any + Humanity with the superhero trader. but i want to have that only Player with over 100k humanity can trade.
Can someone tell me where the misstake is?
Link to comment
Share on other sites
7 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