Jump to content
  • 0

Help to set up a Veteran trader for +25k and -10k humanity


Donzap

Question

Hi, Would be posible to do that?

I have now a veteran trader in the spot of the old Bandit trader, since I have a PvP zone, there will be bandits, and I would like to add those bandits to Veteran trader too. So having a trader who can sell to Heroes with 25k or above of humanity AND Bandits with -10k or less humanity.

 

I have veteran in fnselfactions-sqf, but I don't know if its possible to make it work for bandits too, Any help?

        _low_high = "low";
	_humanity_logic = false;
	if((_traderMenu select 2) == "friendly") then {
		_humanity_logic = (_humanity < -5000);
	};
	if((_traderMenu select 2) == "veteran") then {
		_humanity_logic = (_humanity < 25000);
	};
	if((_traderMenu select 2) == "hero") then {
		_humanity_logic = (_humanity < 5000);
	};

Thank you!

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Sorry about that. :unsure:

I have used Search and found a lot of info about create new traders, change humanity, even change trader answer if you haven't got the correct humanity, but nothing about using same trader for heroes and bandits with different humanity amounts.

I'll search a bit more, just in case...

I'm not a coder, I'm more a hardware guy, but I'm wondering if something like this could work:

_low_high = "low";	_humanity_logic = false;	if((_traderMenu select 2) == "friendly") then {		_humanity_logic = (_humanity < -5000);	};	if((_traderMenu select 2) == "veteran") then {		_humanity_logic = (_humanity < 25000) or (_humanity > -10000);	};	if((_traderMenu select 2) == "hero") then {		_humanity_logic = (_humanity < 5000);	};
Nop, doesn't work :( Edited by Donzap
Link to comment
Share on other sites

  • 0

This works like a charm:

			_low_high = "low";
			_humanity_logic = false;
			if((_traderMenu select 2) == "friendly") then {
				_humanity_logic = (_humanity < -5000);
			};
			if((_traderMenu select 2) == "veteran") then {
				if((_humanity >= 25000) or (_humanity <= -10000)) then {
					_humanity_logic = false;
				} else {
					_humanity_logic = true;
				};
			};
			if((_traderMenu select 2) == "hero") then {
				_humanity_logic = (_humanity < 5000);
			};

Now I have a "Veteran Trader", you need above 25000 humanity or less than -10000 to trade with him. So I'm sure players who can trade with veteran are playing for a while. Veteran trader offers vehicles like BT60 or guns like AS50.

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

×
×
  • Create New...