iCEtIMed Posted January 31, 2015 Report Share Posted January 31, 2015 This is the Custom Gem Trader that I use on my server. //iCEtIMed's Gem Trader if (isServer) then { _vehicle_21 = objNull; if (true) then { _this = createVehicle ["MAP_Ind_SawMill", [2229.1509, 6218.125, -0.037697155], [], 0, "CAN_COLLIDE"]; _vehicle_21 = _this; _this setDir -209.08572; _this setPos [2229.1509, 6218.125, -0.037697155]; }; _vehicle_27 = objNull; if (true) then { _this = createVehicle ["MAP_Misc_Cargo1B", [2205.1836, 6216.6533, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_27 = _this; _this setDir 81.001747; _this setPos [2205.1836, 6216.6533, 3.0517578e-005]; }; _vehicle_28 = objNull; if (true) then { _this = createVehicle ["MAP_Misc_Cargo1Ao", [2210.4585, 6223.1133, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_28 = _this; _this setDir 144.75107; _this setPos [2210.4585, 6223.1133, 3.0517578e-005]; }; _vehicle_32 = objNull; if (true) then { _this = createVehicle ["MAP_SeaCrate", [2234.8938, 6235.9673, 6.1035156e-005], [], 0, "CAN_COLLIDE"]; _vehicle_32 = _this; _this setDir -64.409439; _this setPos [2234.8938, 6235.9673, 6.1035156e-005]; }; _vehicle_39 = objNull; if (true) then { _this = createVehicle ["MAP_hut_old02", [2249.4753, 6245.0464, -0.077868775], [], 0, "CAN_COLLIDE"]; _vehicle_39 = _this; _this setDir -48.271824; _this setPos [2249.4753, 6245.0464, -0.077868775]; }; _vehicle_47 = objNull; if (true) then { _this = createVehicle ["MAP_Misc_WoodPile", [2248.9331, 6250.0996, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_47 = _this; _this setDir -51.878941; _this setPos [2248.9331, 6250.0996, 3.0517578e-005]; }; _vehicle_49 = objNull; if (true) then { _this = createVehicle ["MAP_Barel5", [2250.4495, 6239.9116], [], 0, "CAN_COLLIDE"]; _vehicle_49 = _this; _this setDir -124.45641; _this setPos [2250.4495, 6239.9116]; }; _vehicle_50 = objNull; if (true) then { _this = createVehicle ["MAP_Misc_cargo_cont_net2", [2256.0615, 6240.6421, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_50 = _this; _this setPos [2256.0615, 6240.6421, -3.0517578e-005]; }; _vehicle_53 = objNull; if (true) then { _this = createVehicle ["MAP_Misc_cargo_cont_net3", [2241.0068, 6245.2554, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_53 = _this; _this setDir -42.474304; _this setPos [2241.0068, 6245.2554, 3.0517578e-005]; }; _vehicle_55 = objNull; if (true) then { _this = createVehicle ["MAP_Misc_cargo_cont_tiny", [2249.7356, 6241.1914], [], 0, "CAN_COLLIDE"]; _vehicle_55 = _this; _this setDir -49.607712; _this setPos [2249.7356, 6241.1914]; }; _vehicle_58 = objNull; if (true) then { _this = createVehicle ["UralWreck", [2232.4817, 6199.8584], [], 0, "CAN_COLLIDE"]; _vehicle_58 = _this; _this setDir 25.72739; _this setPos [2232.4817, 6199.8584]; }; _vehicle_70 = objNull; if (true) then { _this = createVehicle ["Land_Campfire_burning", [2246.7434, 6248.9956, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_70 = _this; _this setPos [2246.7434, 6248.9956, 3.0517578e-005]; }; _vehicle_73 = objNull; if (true) then { _this = createVehicle ["Land_Toilet", [2238.76, 6242.2173, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_73 = _this; _this setDir -234.94443; _this setPos [2238.76, 6242.2173, 3.0517578e-005]; }; _vehicle_74 = objNull; if (true) then { _this = createVehicle ["Garbage_container", [2240.1777, 6241.0864], [], 0, "CAN_COLLIDE"]; _vehicle_74 = _this; _this setDir 130.19897; _this setPos [2240.1777, 6241.0864]; }; _vehicle_77 = objNull; if (true) then { _this = createVehicle ["Land_bags_stack_EP1", [2242.3713, 6241.8296, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_77 = _this; _this setPos [2242.3713, 6241.8296, 3.0517578e-005]; }; _vehicle_79 = objNull; if (true) then { _this = createVehicle ["Land_cages_EP1", [2247.5393, 6253.9971], [], 0, "CAN_COLLIDE"]; _vehicle_79 = _this; _this setDir -41.521793; _this setPos [2247.5393, 6253.9971]; }; _vehicle_82 = objNull; if (true) then { _this = createVehicle ["Land_Ind_Timbers", [2197.4182, 6229.4194, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_82 = _this; _this setDir 114.25323; _this setPos [2197.4182, 6229.4194, 3.0517578e-005]; }; _vehicle_83 = objNull; if (true) then { _this = createVehicle ["Land_Ind_Timbers", [2205.2268, 6239.6006, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_83 = _this; _this setDir -103.09561; _this setPos [2205.2268, 6239.6006, 3.0517578e-005]; }; _vehicle_86 = objNull; if (true) then { _this = createVehicle ["FoldChair", [2245.0618, 6250.145, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_86 = _this; _this setDir -46.336502; _this setPos [2245.0618, 6250.145, 3.0517578e-005]; }; _vehicle_87 = objNull; if (true) then { _this = createVehicle ["FoldChair", [2246.8831, 6250.8867, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_87 = _this; _this setPos [2246.8831, 6250.8867, 3.0517578e-005]; }; _vehicle_88 = objNull; if (true) then { _this = createVehicle ["FoldTable", [2249.0601, 6245.5815], [], 0, "CAN_COLLIDE"]; _vehicle_88 = _this; _this setDir -50.17762; _this setPos [2249.0601, 6245.5815]; }; _vehicle_89 = objNull; if (true) then { _this = createVehicle ["Land_Chair_EP1", [2251.4189, 6246.4521, -3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_89 = _this; _this setDir 166.26764; _this setPos [2251.4189, 6246.4521, -3.0517578e-005]; }; _vehicle_94 = objNull; if (true) then { _this = createVehicle ["Land_Bench_EP1", [2245.783, 6238.1895], [], 0, "CAN_COLLIDE"]; _vehicle_94 = _this; _this setDir -48.872044; _this setPos [2245.783, 6238.1895]; }; _vehicle_97 = objNull; if (true) then { _this = createVehicle ["Camp", [2250.4131, 6236.2881, 0.0040482357], [], 0, "CAN_COLLIDE"]; _vehicle_97 = _this; _this setDir -49.084095; _this setPos [2250.4131, 6236.2881, 0.0040482357]; }; _vehicle_100 = objNull; if (true) then { _this = createVehicle ["MAP_HBarrier5_round15", [2252.0518, 6232.7222, 3.0517578e-005], [], 0, "CAN_COLLIDE"]; _vehicle_100 = _this; _this setDir -38.169319; _this setPos [2252.0518, 6232.7222, 3.0517578e-005]; }; _vehicle_109 = objNull; if (true) then { _this = createVehicle ["HeliHCivil", [2230.6826, 6261.3271, 0], [], 0, "CAN_COLLIDE"]; _vehicle_109 = _this; _this setPos [2230.6826, 6261.3271, 0]; }; }; Save the script in the spoiler as a .sqf file named Gem_Trader and add it to the root of your server. Open your init.sqf and add to the very bottom, [] ExecVM "Gem_Trader.sqf"; //iCEtIMeds GemTrader (Or if you keep your custom edits somewhere else, adjust the address.) You will need to add the trader to your database. A guide to doing this, written by mysticviperx is here. (In the tutorial when he talks about the mission.sqm, he is talking of the one in the @DayZ_Epoch_Server, addons, pbo file. To add the marker, open your mission.sqm (mine is here - C:\Servers\Arma2Epoch_Server\MPMissions\DayZ_Epoch_11.Chernarusand) and search for; class Markers { items=17; class Item0 { position[]={7839.6055,381.33774,8414.7324}; name="center"; type="Empty"; }; Add one more to the items= number (You will have a different number of items, mine is 17 so I would change it to 18.(it needs always be 1more than the number of items you have) then scroll down untill you reach the last item and add this; class Item17 { position[]={2249.6472,289.70795,6245.127}; name="GemTrader"; text="Gem Trader"; type="mil_dot"; colorName="ColorGreen"; }; (Remember to change the class item number to the number you have, my last item was 16 so for me it is 17) Screenshots: I hope you like it, enjoy! :) iCEtIMed and Hawk420 2 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now