ITr1ckst3rI
Member
In this tutorial you will learn how to make a custom trader that sells items, and items only.
Please note that there are many ways to do each of these steps. There may be better ways as well.
Steps 1-5 are for the map Chernarus, If you do not want to use this map, skip to step six.
1) Download this custom Chernarus Map. This map has all the custom items that Epoch loads into Chernarus. [Download]
2) Open this up using Winrar (Or your favorite archiving program)
3) (Windows) Go to your documents. If you are using ANY other profile other than the one Arma 2 gave you, open up "Arma 2 Other Profiles". If you ARE using the one arma 2 gave you just open up arma 2.
4) If you are using another profile, when you open up "Arma 2 Other Profiles" you need to select the one you are using.
5) If there isn't a missions folder create one name it exactly like this "missions". Open it. Create a new folder inside that named "Dayz.Chernarus". Open that folder. You should now drag and drop BOTH files from "EpochTrader.Chernarus.rar" to "Dayz.Chernarus"
6) Open up Arma 2 with the epoch mod installed. Go to the MAIN menu. (With the multiplayer option) Press "Alt + E" This will bring up a map editor selection. Select your map you want to edit.
7a) For those using Chernarus, go to the side menu and click load. The option to load the map "Dayz" should be there.
7) Find your location where you want to add your new trader. Click on "Center" Menu from the right side. Right Click the ground and click on new object. Make sure its Blufor, and hit okay.
8) Select "Group" from the right side menu. Again right click the ground and select new object. Leave what ever pops up (Usually center west) and click okay.
9) Select "Unit" from the right side menu. Right click the ground again (What a surprise!
) and select new object. Change the type to whatever you like. Place your new human and rotate to your liking.
10) Once you have finished adding in your new models, click save. Name your mission whatever you like, click okay, and exit the game.
11) Go back to the mission.sqf (Located in your documents -> Arma2 (Or Arma 2 Other Profiles) -> (your profile) -> missions -> "<SavedName>.<Mapname>" (IE Dayz.Chernarus).
12) Open this file using your favorite text editor.
12a) For those who are using Chernarus, use "Ctrl + f" Search "_Unit_133" this should bring you to your unit you made.
12b) For those who are NOT using Chernarus, your unit should be easily located.
The code should look something like this
13) Leave this open. Next we need to add your new model to Epoch (Whewt Whewt!) So, get your dayz_server.pbo. I can't really help you locate this, as it is different between hosting companies. If you have the server on your computer is is located under "@Dayz_Epoch_Server -> addons"
14) We now need to extract the PBO into a normal folder. To do this we need to download the program PBOManager.
[Download] [Mirror]
15) Once we have that downloaded and installed, right click on the PBO, Go down to PBO Manager, Click on "Extract to dayz_server\"
16) Open "Dayz_server -> missions -> (your servers map/mission) -> mission.sqf "
17) This next part is a little bit different for each map. Go to the file you had open, and copy your new characters code. Now, go to the mission.sqf that was in the dayz_server.pbo. Go to the bottom of this file and paste it above:
So it would look something like this.
18) Awesome! Now we need to adjust some things. First we need to change
to this
Next we need to make sure we have a unique unit. So change
to something like this
We also have to update the _this variable to match. So change this
to this
You can obviously do any number, just make sure no other _unit already has it.
19)(Optional but recommended) Change your new characters skin to something that no other trader in the server has.
Use these links to find the new class names.
Link 1 (Arma 2 OA skins)
Link 2 (Dayz Epoch Skins)
For this example i will be changing
To this
We are now done adding in our new Character. Here is the final code
20) Now we need to repack the server with our new character. Change the "dayz_server.pbo" to "dayz_server.back". YES. BACK UP YOUR OLD SERVER PBO. Now repack the new folder. To do this right click on the day_server folder. Go to "PBO Manager" then pack into dayz_server.pbo. Upload it to your server, or (for those who are hosting locally) move it to your folder.
Now would be a good time to take a break. This next part will get tricky.
Please note that there are many ways to do each of these steps. There may be better ways as well.
Steps 1-5 are for the map Chernarus, If you do not want to use this map, skip to step six.
Creating The Character.
1) Download this custom Chernarus Map. This map has all the custom items that Epoch loads into Chernarus. [Download]
2) Open this up using Winrar (Or your favorite archiving program)
3) (Windows) Go to your documents. If you are using ANY other profile other than the one Arma 2 gave you, open up "Arma 2 Other Profiles". If you ARE using the one arma 2 gave you just open up arma 2.
4) If you are using another profile, when you open up "Arma 2 Other Profiles" you need to select the one you are using.
5) If there isn't a missions folder create one name it exactly like this "missions". Open it. Create a new folder inside that named "Dayz.Chernarus". Open that folder. You should now drag and drop BOTH files from "EpochTrader.Chernarus.rar" to "Dayz.Chernarus"
6) Open up Arma 2 with the epoch mod installed. Go to the MAIN menu. (With the multiplayer option) Press "Alt + E" This will bring up a map editor selection. Select your map you want to edit.
7a) For those using Chernarus, go to the side menu and click load. The option to load the map "Dayz" should be there.
7) Find your location where you want to add your new trader. Click on "Center" Menu from the right side. Right Click the ground and click on new object. Make sure its Blufor, and hit okay.
8) Select "Group" from the right side menu. Again right click the ground and select new object. Leave what ever pops up (Usually center west) and click okay.
9) Select "Unit" from the right side menu. Right click the ground again (What a surprise!
10) Once you have finished adding in your new models, click save. Name your mission whatever you like, click okay, and exit the game.
11) Go back to the mission.sqf (Located in your documents -> Arma2 (Or Arma 2 Other Profiles) -> (your profile) -> missions -> "<SavedName>.<Mapname>" (IE Dayz.Chernarus).
12) Open this file using your favorite text editor.
12a) For those who are using Chernarus, use "Ctrl + f" Search "_Unit_133" this should bring you to your unit you made.
12b) For those who are NOT using Chernarus, your unit should be easily located.
The code should look something like this
Code:
_unit_133 = objNull;
if (true) then
{
_this = _group_2 createUnit ["GUE_Woodlander2", [6321.0439, 7781.0288], [], 0, "CAN_COLLIDE"];
_unit_132 = _this;
_this setDir 9.6638927;
_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;
if (false) then {_group_2 selectLeader _this;};
};
13) Leave this open. Next we need to add your new model to Epoch (Whewt Whewt!) So, get your dayz_server.pbo. I can't really help you locate this, as it is different between hosting companies. If you have the server on your computer is is located under "@Dayz_Epoch_Server -> addons"
14) We now need to extract the PBO into a normal folder. To do this we need to download the program PBOManager.
[Download] [Mirror]
15) Once we have that downloaded and installed, right click on the PBO, Go down to PBO Manager, Click on "Extract to dayz_server\"
16) Open "Dayz_server -> missions -> (your servers map/mission) -> mission.sqf "
17) This next part is a little bit different for each map. Go to the file you had open, and copy your new characters code. Now, go to the mission.sqf that was in the dayz_server.pbo. Go to the bottom of this file and paste it above:
Code:
processInitCommands;
So it would look something like this.
Code:
//NOT your new character. Just some default code in the file.
_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];
};
//YOUR new character!
_unit_133 = objNull;
if (true) then
{
_this = _group_2 createUnit ["Functionary2", [10222.9, 8808.59], [], 0, "CAN_COLLIDE"];
_unit_133 = _this;
_this setDir -77.759254;
_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;
18) Awesome! Now we need to adjust some things. First we need to change
Code:
_this = _group_2 createUnit
Code:
_this = createAgent
Next we need to make sure we have a unique unit. So change
Code:
_unit_133 = objNull;
Code:
_unit_777 = objNull;
Code:
_unit_133 = _this;
Code:
_unit_777 = _this;
19)(Optional but recommended) Change your new characters skin to something that no other trader in the server has.
Use these links to find the new class names.
Link 1 (Arma 2 OA skins)
Link 2 (Dayz Epoch Skins)
For this example i will be changing
Code:
["Functionary2", [10222.9, 8808.59], [], 0, "CAN_COLLIDE"];
Code:
["CZ_Special_Forces_MG_DES_EP1", [10222.9, 8808.59], [], 0, "CAN_COLLIDE"];
We are now done adding in our new Character. Here is the final code
Code:
_unit_777 = objNull;
if (true) then
{
_this = createAgent ["CZ_Special_Forces_MG_DES_EP1", [10222.9, 8808.59], [], 0, "CAN_COLLIDE"];
_unit_777 = _this;
_this setDir -77.759254;
_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;
20) Now we need to repack the server with our new character. Change the "dayz_server.pbo" to "dayz_server.back". YES. BACK UP YOUR OLD SERVER PBO. Now repack the new folder. To do this right click on the day_server folder. Go to "PBO Manager" then pack into dayz_server.pbo. Upload it to your server, or (for those who are hosting locally) move it to your folder.
Now would be a good time to take a break. This next part will get tricky.