Jump to content
  • 0

Adding Traders.


CarlJ

Question

Recommended Posts

  • 0

I think I'm doing it wrong then I'm getting this error 

 

Heres my traders list

 

if (isServer) then {
	
	_unit_888 = objNull;
if (true) then
{
  _this = createAgent ["RU_Policeman_DZ", [8125.9531, 9124.7969], [], 0, "CAN_COLLIDE"];
  _unit_888 = _this;
  _this setDir 327.0;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};
	
	
	/*_unit_889 = objNull;
	if (true) then
	{
	  _this = createAgent ["Bandit1_DZ_DS4", [8125.9531, 9124.7969], [], 0, "CAN_COLLIDE"];
	  _unit_889 = _this;
	  _this setDir 27.916634;
	_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
	_this setUnitAbility 0.60000002;
	_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
	};*/

	_unit_890 = objNull;
	if (true) then
	{
	  _this = createAgent ["Bandit1_DZ_DS2", [8129.3652, 9113.0693, 0.22859479], [], 0, "CAN_COLLIDE"];
	  _unit_890 = _this;
	  _this setDir 27.916634;
	_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
	_this setUnitAbility 0.60000002;
	_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
	};

	_unit_891 = objNull;
	if (true) then
	{
	  _this = createAgent ["Bandit1_DZ_DS3", [8132.5479, 9118.4854, 0.24309607], [], 0, "CAN_COLLIDE"];
	  _unit_891 = _this;
	  _this setDir -47.495052; 
	_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
	_this setUnitAbility 0.60000002;
	_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
	};

	_unit_892 = objNull;
	if (true) then
	{
	  _this = createAgent ["GER_Soldier_EP1_DS9", [8125.748, 9166.083, 0.02296762], [], 0, "CAN_COLLIDE"];
	  _unit_892 = _this;
	  _this setDir -204.51047;
	_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
	_this setUnitAbility 0.60000002;
	_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
	};

	_unit_893 = objNull;
	if (true) then
	{
	  _this = createAgent ["GER_Soldier_EP1_DS8", [8141.6172, 9161.7461, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
	  _unit_893 = _this;
	  _this setDir 163.14111;
	_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
	_this setUnitAbility 0.60000002;
	_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
	};
	
	_unit_894 = objNull;
	if (true) then
	{
	  _this = createAgent ["GER_Soldier_EP1_DS7", [8163.1743, 9155.3848, 0.17801747], [], 0, "CAN_COLLIDE"];
	  _unit_894 = _this;
	  _this setDir 176.82904;
	_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
	_this setUnitAbility 0.60000002;
	_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
	};

	_unit_895 = objNull;
	if (true) then
	{
	  _this = createAgent ["GER_Soldier_EP1_DS1", [8171.752, 9147.6543, 0.31951028], [], 0, "CAN_COLLIDE"];
	  _unit_895 = _this;
	  _this setDir -145.53395;
	_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
	_this setUnitAbility 0.60000002;
	_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
	};

	_unit_896 = objNull;
	if (true) then
	{
	  _this = createAgent ["GER_Soldier_EP1_DS6", [8164.936, 9118.2939, 0.22867255], [], 0, "CAN_COLLIDE"];
	  _unit_896 = _this;
	  _this setDir -84.901649;
	_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
	_this setUnitAbility 0.60000002;
	_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
	};

	_unit_897 = objNull;
	if (true) then
	{
	  _this = createAgent ["GER_Soldier_EP1_DS5", [8156.8901, 9118.1309, 0.14793524], [], 0, "CAN_COLLIDE"];
	  _unit_897 = _this;
	  _this setDir 27.916634;
	_this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
	_this setUnitAbility 0.60000002;
	_this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
	};

}; 

Link to comment
Share on other sites

  • 0

I'm building an entire new trader base in the middle of the map that has a better layout. Pretty much its only going to be hero accessible making it hard for new players to get the cheaper and better gear. I'll post picture and the uploads for you guys later.

Link to comment
Share on other sites

  • 0

Hi, was wondering if anyone knows how to change the humanity of a trader? Basically what i want to do is create a super hero trader with a humaity level of 7500. I know how to change a trader from neutral to bandit or hero. However i dont know how to create a new level. 

Link to comment
Share on other sites

  • 0

Hi, was wondering if anyone knows how to change the humanity of a trader? Basically what i want to do is create a super hero trader with a humaity level of 7500. I know how to change a trader from neutral to bandit or hero. However i dont know how to create a new level. 

 

This might help:

http://opendayz.net/threads/adding-a-new-trader-with-humanity-req-of-30k.18119/

Link to comment
Share on other sites

  • 0

Ugh, I'm so stuck on this. I've finally got the trader to appear where I want him to be, but I get no scroll option to open the trader menu. 

 

This is what the top of my server_traders.sqf looks like.

 

serverTraders = ["RU_Functionary1","RU_Citizen3","Rocker4","Profiteer4","Rita_Ensler_EP1","CIV_EuroMan01_EP1","CIV_EuroMan02_EP1","TK_GUE_Soldier_5_EP1","GUE_Soldier_MG","Worker2","Worker3","Woodlander1","UN_CDF_Soldier_Pilot_EP1","RU_WorkWoman1","Dr_Annie_Baker_EP1","RU_Citizen4","RU_WorkWoman5","RU_Citizen1","RU_Villager3","TK_CIV_Takistani04_EP1","Pilot_EP1","RU_Profiteer4","Woodlander3","Dr_Hladik_EP1","Doctor","HouseWife1","GUE_Woodlander2","Soldier_Bodyguard_AA12_PMC_DZ"];

 

this is the bottom

 

//Hemp trader

menu_Soldier_Bodyguard_AA12_PMC_DZ = [

           [["Drugs",695]],
           [],
           "neutral"
];

 

My server_traders.sqf looks fine, so it could be this.

 

mission.sqf

 

_unit_1353 = objNull;

if (true) then
{
  _this = createAgent ["Soldier_Bodyguard_AA12_PMC_DZ", [10999.6, 13377.3], [], 0, "CAN_COLLIDE"];
  _unit_1353 = _this;
  _this setDir 105.27305;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

 

I can't spot anything wrong with these, and I made sure everything was ok on the database. Can someone tell if I have anything wrong here?

Link to comment
Share on other sites

  • 0

Keaster,

 

 Would you mind sharing how you got it to work? I am with Dayz.St and I have tried several different methods that I have found around the internet and none seem to work, which I am finding is typical for Dayz.St. If you would please share, I would appreciate it :) Thanks!

 

P.s. I will trade my Hemp Harvesting script :)

Link to comment
Share on other sites

  • 0

Hi i get this error in my rpt! any idea the code is copied straight from another traders info

14:43:42 Error in expression <Speed 0;_this enableSimulation false;};
};
processInitCommands;

>
14:43:42 Error position: <};
processInitCommands;

>
14:43:42 Error Missing {
14:43:42 File z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf, line 1798

heres the mission sqf

 

_vehicle_1352 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_R2_Rock1", [13817.806, 11746.111, -27.215347], [], 0, "CAN_COLLIDE"];
  _vehicle_1352 = _this;
  _this setDir 68.549126;
  _this setPos [13817.806, 11746.111, -27.215347];
};

_unit_9999 = objNull;
if (true) then
{
  _this = createAgent ["BAF_Soldier_GL_MTP", [3255.5684, 11269.312, 9.1552734e-005], [], 0, "CAN_COLLIDE"]; 
  _unit_9999 = _this;
  _this setDir 34.525925;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;};
};
  processInitCommands;

Link to comment
Share on other sites

  • 0

Someone please tell me how set the radius where vehicles are created?.

This is my Mission.sqf
 

_unit_221 = objNull;
if (true) then
{
  _this = createAgent ["Functionary2", [6216.76,5859.05,8.57626], [], 0, "CAN_COLLIDE"];
  _unit_221 = _this;
  _this setDir 235.56369;
  _this setVehicleInit "this allowDammage false; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'AUTOTARGET'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0;	";
  _this setUnitAbility 0.60000002;
  _this allowDammage false; _this disableAI 'FSM'; _this disableAI 'MOVE'; _this disableAI 'AUTOTARGET'; _this disableAI 'TARGET'; _this setBehaviour 'CARELESS'; _this forceSpeed 0;_this enableSimulation false;
};

This is server_trade
 

//Lord of War Trader
menu_Functionary2 = [
	[["Ammo",693],["Clothing",694],["Helis",695],["Land Vehicles",696],["Guns",697],["Explosives",529]],
	[],
	"neutral"
];

RPT
 

22:34:22 "EPOCH SERVERTRADE: Player: any (29689478) bought a HMMWV_M2 in/at Unknown Trader City for 5x ItemBriefcase100oz"
22:34:22 "PUBLISH: Attempt 1ca3ab00# 200663: arrow_down_large_ep1.p3d REMOTE"
22:34:22 "HIVE: WRITE: "CHILD:308:15:HMMWV_M2:0:9313:[57,[4352.06,7348.07,10.0194]]:[]:[]:1:4352173481100628:""
22:34:23 "HIVE: WRITE: "CHILD:388:4352173481100628:""
22:34:23 "CUSTOM: Selected "500""
22:34:24 "PUBLISH: B 1-1-F:1 (Player) REMOTE Bought HMMWV_M2 with ID "4352173481100628""
22:36:01 Object id 8e23d9a3 (419) not found in slot 123,113
22:36:01 Link cannot be resolved
22:36:01 Object id 8e43d998 (408) not found in slot 123,114
22:36:01 Link cannot be resolved

the server creates the vehicle but was transferred to other coordinates on the sky. coord = 4351.56,7350.2,123.403

Please please please some help!!!

 

Edit: Ignore this is solved.

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...