Hi all, i'll explain to you how i added new trader's city on my server.
I added on this new trader's city 2 vendors.
the first selling vehicules like in Klem trader's city
The second selling toolbelt/vehicles part/ Building supplies/ and a new gorup of item named construction.
Between, sorry for my english, i'm french speaker.
So here we go:
Step 1:
Unpack you mission.pbo
Step 2:
Open your server_trader.sqf.
Go to the latest object // Black market and add this after
// Black market
menu_GUE_Woodlander2 = [
[["Black Market Ammo",527],["Black Market Weapons",526],["Explosives",529]],
[],
"neutral"
];
Save your file and close it.
Step 3:
Open your mission.sqf in your unpacked mission.pbo.
Go to your latest object.
For me before i modified, it was this one
_vehicle_813 = objNull;
if (true) then
{
_this = createVehicle ["Land_BagFenceRound", [6295.6436, 7804.3223], [], 0, "CAN_COLLIDE"];
_vehicle_813 = _this;
_this setDir 128.79018;
_this setPos [6295.6436, 7804.3223];
};
processInitCommands;
Delete the processInitCommands; line and paste this code to replace it
save your file and close it.
Step 4:
Now adding marker to the new trader's city.
Open your mission.sqm in your unpacked mission.pbo
Fine the line class Markers around line 1174.
You may see this
class Markers
{
items=18;
class Item0
The line items=18 is the numbers of marker you v got in this group.
whatever the number is, you have to simply add one more to this number.
Then in my file it was
items=18
i just changed it to
items=19
then go to your latest marker objects and add this code after it:
Why this object is the 19th and is listed as class Item18? Because object in this list always start at class Item0, class Item1, class Item2, etc
save your file and close it
Now it's done you are good to repack your mission.pbo and upload it to your server.
All you v got to do now is adding this new group "Construction" to your database and add it new item on it to sell/buy.
But this is another part.
It was my 2 cents.
Long life to opendayz forum
I added on this new trader's city 2 vendors.
the first selling vehicules like in Klem trader's city
The second selling toolbelt/vehicles part/ Building supplies/ and a new gorup of item named construction.
Between, sorry for my english, i'm french speaker.
So here we go:
Step 1:
Unpack you mission.pbo
Step 2:
Open your server_trader.sqf.
Go to the latest object // Black market and add this after
// Black market
menu_GUE_Woodlander2 = [
[["Black Market Ammo",527],["Black Market Weapons",526],["Explosives",529]],
[],
"neutral"
];
Code:
// Nouveau Trader Moglievka
menu_Woodlander3 = [
[["Building Supplies",662],["Toolbelt Items",663],["Vehicle Parts",664],["Construction",694]],
[],
"neutral"
];
// Nouveau trader Moglievka 2
menu_RU_Profiteer4 = [
[["Bikes and ATV",650],["Buses and Vans",651],["Cargo Trucks",653],["Compact Cars",652],["Economy Cars",654],["Fuel Trucks",655],["Luxury Cars",656],["Microcars",657],["Military Unarmed",658],["Trucks",659],["Used Cars",660],["Utility Vehicles",661]],
[],
"neutral"
];
Save your file and close it.
Step 3:
Open your mission.sqf in your unpacked mission.pbo.
Go to your latest object.
For me before i modified, it was this one
_vehicle_813 = objNull;
if (true) then
{
_this = createVehicle ["Land_BagFenceRound", [6295.6436, 7804.3223], [], 0, "CAN_COLLIDE"];
_vehicle_813 = _this;
_this setDir 128.79018;
_this setPos [6295.6436, 7804.3223];
};
processInitCommands;
Delete the processInitCommands; line and paste this code to replace it
Code:
_unit_999 = objNull;
if (true) then
{
_this = _group_1 createUnit ["Woodlander3", [7636.2031, 5191.9253], [], 0, "CAN_COLLIDE"];
_unit_999 = _this;
_this setDir 185.62813;
_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;
};
_vehicle_0 = objNull;
if (true) then
{
_this = createVehicle ["Land_Market_stalls_02_EP1", [7633.1758, 5194.1187], [], 0, "CAN_COLLIDE"];
_vehicle_0 = _this;
_this setDir 6.1341724;
_this setPos [7633.1758, 5194.1187];
};
_vehicle_1 = objNull;
if (true) then
{
_this = createVehicle ["Land_Fire_barrel", [7639.3662, 5188.4014, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
_vehicle_1 = _this;
_this setDir -16.501688;
_this setPos [7639.3662, 5188.4014, 1.5258789e-005];
};
_vehicle_3 = objNull;
if (true) then
{
_this = createVehicle ["Misc_palletsfoiled", [7644.9155, 5189.8936, 1.5258789e-005], [], 0, "CAN_COLLIDE"];
_vehicle_3 = _this;
_this setDir -49.309704;
_this setPos [7644.9155, 5189.8936, 1.5258789e-005];
};
_vehicle_4 = objNull;
if (true) then
{
_this = createVehicle ["Land_Misc_IronPipes_EP1", [7623.8223, 5192.5967], [], 0, "CAN_COLLIDE"];
_vehicle_4 = _this;
_this setDir -55.737324;
_this setPos [7623.8223, 5192.5967];
};
_vehicle_6 = objNull;
if (true) then
{
_this = createVehicle ["Land_transport_crates_EP1", [7621.6816, 5163.3999, -4.5776367e-005], [], 0, "CAN_COLLIDE"];
_vehicle_6 = _this;
_this setDir -78.60524;
_this setPos [7621.6816, 5163.3999, -4.5776367e-005];
};
_vehicle_8 = objNull;
if (true) then
{
_this = createVehicle ["Land_Market_shelter_EP1", [7683.4927, 5206.0688, -3.0517578e-005], [], 0, "CAN_COLLIDE"];
_vehicle_8 = _this;
_this setDir -135.01883;
_this setPos [7683.4927, 5206.0688, -3.0517578e-005];
};
_vehicle_9 = objNull;
if (true) then
{
_this = createVehicle ["Misc_TyreHeapEP1", [7686.2246, 5203.2573, -0.00012207031], [], 0, "CAN_COLLIDE"];
_vehicle_9 = _this;
_this setDir -10.083812;
_this setPos [7686.2246, 5203.2573, -0.00012207031];
};
_vehicle_10 = objNull;
if (true) then
{
_this = createVehicle ["Land_Bench_EP1", [7679.8403, 5211.2144, -0.00015258789], [], 0, "CAN_COLLIDE"];
_vehicle_10 = _this;
_this setDir 40.694752;
_this setPos [7679.8403, 5211.2144, -0.00015258789];
};
_vehicle_11 = objNull;
if (true) then
{
_this = createVehicle ["Land_Blankets_EP1", [7685.5791, 5206.5449, -7.6293945e-005], [], 0, "CAN_COLLIDE"];
_vehicle_11 = _this;
_this setDir -11.176004;
_this setPos [7685.5791, 5206.5449, -7.6293945e-005];
};
_vehicle_13 = objNull;
if (true) then
{
_this = createVehicle ["LADAWreck", [7688.7358, 5200.7188, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
_vehicle_13 = _this;
_this setDir 135.07458;
_this setPos [7688.7358, 5200.7188, -1.5258789e-005];
};
_vehicle_15 = objNull;
if (true) then
{
_this = createVehicle ["RoadBarrier_long", [7691.8657, 5198.6182], [], 0, "CAN_COLLIDE"];
_vehicle_15 = _this;
_this setDir -31.112467;
_this setPos [7691.8657, 5198.6182];
};
_vehicle_16 = objNull;
if (true) then
{
_this = createVehicle ["SignM_FARP_Winchester_EP1", [7617.8877, 5160.4131], [], 0, "CAN_COLLIDE"];
_vehicle_16 = _this;
_this setDir 183.93924;
_this setPos [7617.8877, 5160.4131];
};
_vehicle_17 = objNull;
if (true) then
{
_this = createVehicle ["Red_Light_Blinking_EP1", [7622.0205, 5165.3843, -1.5258789e-005], [], 0, "CAN_COLLIDE"];
_vehicle_17 = _this;
_this setDir -51.56937;
_this setPos [7622.0205, 5165.3843, -1.5258789e-005];
};
_unit_998 = objNull;
if (true) then
{
_this = _group_1 createUnit ["Profiteer4", [7683.7109, 5207.6807], [], 0, "CAN_COLLIDE"];
_unit_998 = _this;
_this setDir 217.03709;
_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;
save your file and close it.
Step 4:
Now adding marker to the new trader's city.
Open your mission.sqm in your unpacked mission.pbo
Fine the line class Markers around line 1174.
You may see this
class Markers
{
items=18;
class Item0
The line items=18 is the numbers of marker you v got in this group.
whatever the number is, you have to simply add one more to this number.
Then in my file it was
items=18
i just changed it to
items=19
then go to your latest marker objects and add this code after it:
Code:
class Item18
{
position[]={7639.3662,1.5258789,5188.4014};
name="Nouveau Trader";
text="Moglievka trader's city";
type="mil_circle";
colorName="ColorBlack";
};
};
Why this object is the 19th and is listed as class Item18? Because object in this list always start at class Item0, class Item1, class Item2, etc
save your file and close it
Now it's done you are good to repack your mission.pbo and upload it to your server.
All you v got to do now is adding this new group "Construction" to your database and add it new item on it to sell/buy.
But this is another part.
It was my 2 cents.
Long life to opendayz forum