Jump to content
  • 0

Adding Traders.


CarlJ

Question

Recommended Posts

  • 0

I added a trader and two tid: secret weapons and secret vehicles. I added several vehicles and weapons to the menus. I have no issues with the weapons but when i purchase any of the vehicles from that menu like M113_TK_EP1. I am not able to sell it back to the trader. Also cant sell any HMMWVs back to Hero traders as well. I rolled back the db to before I touched the db almost to days back and loaded default mission and server pbo and still couldnt sell default 1151 HMMWV back to Hero trader. Any one have pointers or something i should do / check out?

Link to comment
Share on other sites

  • 0

Can someone tell me why this sensor doesn't work?

class Item5
		{
			position[]={7874.98,0.001,3454.92};
			a=100;
			b=100;
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zoneCardealer";
			expCond="(player distance zoneCardealer) < 100;";
			expActiv="[""Prig Car Dealer"",false,""enter""] spawn player_traderCity;";
			expDesactiv="[""Prig Car Dealer"",false,""leave""] spawn player_traderCity;";
			class Effects
			{
			};
		};
	};
};
Link to comment
Share on other sites

  • 0

 

Can someone tell me why this sensor doesn't work?

class Item5
		{
			position[]={7874.98,0.001,3454.92};
			a=100;
			b=100;
			activationBy="WEST";
			repeating=1;
			interruptable=1;
			age="UNKNOWN";
			name="zoneCardealer";
			expCond="(player distance zoneCardealer) < 100;";
			expActiv="[""Prig Car Dealer"",false,""enter""] spawn player_traderCity;";
			expDesactiv="[""Prig Car Dealer"",false,""leave""] spawn player_traderCity;";
			class Effects
			{
			};
		};
	};
};

            expActiv="[""Prig Car Dealer"",true,""enter""] spawn player_traderCity;";

            expDesactiv="[""Prig Car Dealer"",true,""leave""] spawn player_traderCity;";

Link to comment
Share on other sites

  • 0

Can someone help me, my super hero trader works fine 

 

but i get no trader option on my super bandit, i did the DB stuff correctly i'm sure here is my section in fn_selfactions

// 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((_traderMenu select 2) == "SuperHero") then {
				_humanity_logic = (_humanity < 15000);
			};
			if((_traderMenu select 2) == "SuperBandit") then {
                _low_high = "high";
                _humanity_logic = (_humanity > -15000);
			};

Anything wrong here?

 

Thanks

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
×
×
  • Create New...