New epoch trader's city: Moglievka

zappi

Well-Known Member
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"
];
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
 
Hi and thanks for your great post on this trader option. I have a question as I'm still just learning. In my mission.pbo I can't find mission.sqf I do have mission.sqm but does look different. I tried to add the two traders into an addon city I have but they don't show up on map. What I was doing was using your trader reference to these guys in the server_trader.sqf but placing them in a different location in my city.

thanks in advance...
 
Hi, since epoch 1.0.3 the missions file reqired (missions.sqf) has been moved into the server folder:

server.pbo/mission/dayz_epoch_11.chernarus/mission.sqf

between, they changed the trader object, if you look carrefully all trader are now:

_this = createAgent ["Woodlander3", [7636.2031, 5191.9253], [], 0, "CAN_COLLIDE"];

So all you need to add new trader is ad them to look like this by editing your mision trader object to loook like new one.
Like this for exemple

Code:
_unit_999 = objNull;
if (true) then
{
  _this = createAgent ["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;
};
 
_unit_998 = objNull;
if (true) then
{
  _this = createAgent ["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;
};

And evertything will work normally
 
Hi Zappi,

Thanks for the update on location on server side. I did what you said and "no love" the 2 traders just don't show up.

this is the end of the mission.sqf and I got my locations by 3d map placing a soldier and then reading the sqf for his location.

thanks in advance

Gramps

Code:
};

_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_998 = objNull;
if (true) then
{
  _this = createAgent ["Woodlander3", [1949.0999, 14508.797], [], 0, "CAN_COLLIDE"];
  _unit_998 = _this;
  _this setDir -169.17432;
  _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_999 = objNull;
if (true) then
{
  _this = createAgent ["Profiteer4", [1943.2311, 14545.654], [], 0, "CAN_COLLIDE"];
  _unit_999 = _this;
  _this setDir -84.960495;
  _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;
 
Try like this:

Code:
_unit_998 = objNull;
if (true) then
{
  _this = createAgent ["Woodlander3", [1949.0999, 14508.797], [], 0, "CAN_COLLIDE"];
  _unit_998 = _this;
  _this setDir -169.17432;
  _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_999 = objNull;
if (true) then
{
  _this = createAgent ["Profiteer4", [1943.2311, 14545.654], [], 0, "CAN_COLLIDE"];
  _unit_999 = _this;
  _this setDir -84.960495;
  _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;
 
Hi, Well I couldn't see difference from yours and mine but did copy paste yours and "nope" still nobody there.

I think the trader has to be defined in another place something about "tids" ??

I was also wondering since I have a couple new northern towns of putting a couple "ladies" in town to spice things up. They are just eye candy but would be nice to be in the market area just standing there :) or maybe use damsel1,2,3,4,5 or hooker1,2,3,4,5 for the vendors maybe the traders would do more business

Gramps
 
Here it's my mission.sqf :

http://www.sendspace.com/file/7er8hh

--- Take a look and replace the coordinated of each trader and it may will work.

. from line 1789 to 1904 it's the moglievka object for the trader ( you can delete them and replace them by your object. Be carrefull to use _vehicle_1352 a number object not already used by another object)
. from line 1906 to 1926 the both trader itself....

--- Dont forget to modify your server_trader.sqf to add both new trader as mentionned on top of the tread:
after
// Black market
menu_GUE_Woodlander2 = [
[["Black Market Ammo",527],["Black Market Weapons",526],["Explosives",529]],
[],
"neutral"
];
add
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"
];

--- Add them on your database too :

. In server trader : ( to add both new trader to the database )
id: 998 | classname : Profiteer4 | instance : 11 | status : neutral | static : | desc : Moglievka construction
id: 999 | classname : Woodlander3 | instance : 11 | status : neutral | static : | desc : Moglievka vehicles


. in trader_tids : ( to add the new group Construction for the new trader 999)
id : 694 | name : Construction | trader : 999


Then restart your server and it may will work.
 
"-- Add them on your database too :

. In server trader : ( to add both new trader to the database )
id: 998 | classname : Profiteer4 | instance : 11 | status : neutral | static : | desc : Moglievka construction
id: 999 | classname : Woodlander3 | instance : 11 | status : neutral | static : | desc : Moglievka vehicles


. in trader_tids : ( to add the new group Construction for the new trader 999)
id : 694 | name : Construction | trader : 999 "



Hi thanks for response: I'm using survival server they only allow me to download mission and server.pbo's and don't seem to find the trader_tids file and the above mentioned
in server trader file? "In server trader" is in reference to what file?

do I add those two lines :

id: 998 | classname : Profiteer4 | instance : 11 | status : neutral | static : | desc : Moglievka construction
id: 999 | classname : Woodlander3 | instance : 11 | status : neutral | static : | desc : Moglievka vehicles



sorry but lost you at that point

I also added a third trader and classname Damsel3 to the allowed trader types and added as item 997

I hope to instigate all the traders in this city but the city was built by someone else and I have to put the vehicle trader out in front of fort to allow for vehicles to appear.
 
. In server trader : ( to add both new trader to the database )
id: 998 | classname : Profiteer4 | instance : 11 | status : neutral | static : | desc : Moglievka construction
id: 999 | classname : Woodlander3 | instance : 11 | status : neutral | static : | desc : Moglievka vehicles
. in trader_tids : ( to add the new group Construction for the new trader 999)
id : 694 | name : Construction | trader : 999 "
those things isnt in server or missions pbo

You have to open your database and you ll see those table in the database of your server.

Once on your table, press "insert" and add manually for each column what i wrote
 
Hi again,

Well I added my 3 traders in the phpadmin panel but still nothing showing up in game. Think its getting to far into the stuff that if I mess up I break my server. Thanks for the help and maybe an indepth guide to adding new trader area will come out. I didn't do anything in tid file cause I didn't add construction stuff.
 
Awesome thx for this..... and never apologise for your 'bad' english, more French can speak English that English can speak French, plus your English is fine :)
 
Back
Top