Jump to content
  • 0

Want to make Superhero /Bandit


Kimarik

Question

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

7 answers to this question

Recommended Posts

  • 0

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

  • 0
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...