Aidem Posted November 21, 2013 Report Share Posted November 21, 2013 (edited) If you are interested in custom wholesalers I changed the wholesaler thing into Trade Camps (East and West) Downloads https://www.dropbox.com/s/jypo8w3b3rs9boe/wholev2.sqf Installation Go to your server pbo and make a folder there called Maps place wholev2.sqf inside it Go to the folder INIT Open server_functions.sqf And put this line at the bottom of the file [] execVM "\z\addons\dayz_server\Maps\wholev2.sqf"; Open mission.sqf inside your mission pboSearch for _this = _group_1 createUnit ["RU_Citizen1", [4360.6211, 2260.9841, 3.8146973e-006], [], 0, "CAN_COLLIDE"]; _unit_91 = _this; _this setDir 196.69872; and replace with _this = _group_1 createUnit ["RU_Citizen1", [12594.5, 3606.2, 4.2915344e-006], [], 0, "CAN_COLLIDE"]; _unit_209 = _this; _this setDir 148.92751; Search for _this = _group_1 createUnit ["RU_Citizen4", [13530.905, 6356.7388, 1.7166138e-005], [], 0, "CAN_COLLIDE"]; _unit_90 = _this; _this setDir 102.75758;; and replace with _this = _group_1 createUnit ["RU_Citizen4", [4805.8184, 2213.3057], [], 0, "CAN_COLLIDE"]; _unit_211 = _this; _this setDir 222.9278; Open your mission.sqm inside mission pboSearch for class Item8 { position[]={4361.4937,3,2259.9526}; name="wholesaleSouth"; text="Wholesaler"; type="mil_dot"; colorName="ColorBlack"; }; and replace with class Item8 { position[]={12594.5,3,3606.2}; name="boatTraderEast2"; text="East Trade Camp"; type="mil_dot"; colorName="ColorOrange"; }; Search for class Item9 { position[]={13532.614,3.0083523,6355.9497}; name="boatTraderEast"; text="Wholesaler"; type="mil_dot"; colorName="ColorBlack"; }; and replace with class Item9 { position[]={4805.8184,3,2213.3057}; name="boatTraderEast"; text="West Trade Camp"; type="mil_dot"; colorName="ColorOrange"; }; OPTIONAL: Open your server_traders.sqf inside mission pboSearch for [["Wholesale",555]], and [["Wholesale",636]], here you can add what you want to it, for example on my server i have this line I added Bicycles to it where players can trade Bicycle for 2 car wheels Weekly deals, things i change every week for selling stuff on cheaper price or things you usually cant buy And the buildings materials [["Wholesale",555],["Bicycles",694],["Weekly Deals",695],["Building Supplies",662],["Toolbelt Items",663],["Vehicle Parts",664]], and [["Wholesale",636],["Bicycles",694],["Weekly Deals",695],["Building Supplies",662],["Toolbelt Items",663],["Vehicle Parts",664]], OPTIONAL: If you using custom things like bicycles and Weekly sales you need to add them to your databaseAdding Bicycles INSERT INTO `traders_data` (`item`,`qty`,`buy`,`sell`,`order`,`tid`,`afile`) VALUES ('["Old_bike_TK_INS_EP1",3]','1','[2,"PartWheel",1]','[2,"PartWheel",1]','0','694','trade_any_bicycle'); Adding Weekly sales (Examples) INSERT INTO `traders_data` (`item`,`qty`,`buy`,`sell`,`order`,`tid`,`afile`) VALUES ('["PartPlankPack",1]',10,'[4,"ItemSilverBar",1]','[2,"ItemSilverBar",1]','0','695,'trade_items'); INSERT INTO `traders_data` (`item`,`qty`,`buy`,`sell`,`order`,`tid`,`afile`) VALUES ('["SUV_Charcoal",3]','1','[6,"ItemGoldBar",1]','[1,"ItemGoldBar",1]','0','695','trade_any_vehicle'); Edited November 21, 2013 by Aidem Dridge118 and bFe 2 Link to comment Share on other sites More sharing options...
Aidem Posted November 21, 2013 Author Report Share Posted November 21, 2013 Added Screenshots Link to comment Share on other sites More sharing options...
Aidem Posted December 4, 2013 Author Report Share Posted December 4, 2013 updated topic, added burning barrels so you can melt stuff at these camps Link to comment Share on other sites More sharing options...
Ventana Posted December 15, 2013 Report Share Posted December 15, 2013 Aidem, nice idea. not sure why this isn't getting more attention. I just may do this. my players are a bunch of tight fisted, skin flints when it comes to parting with their gold, lol. some are just plain lazy and don't want to put the effort into the game. I had one guy ask me to put a marker where the crate is on one of my "find the crate in this area" missions. lol, I told him I'd put a big flashing neon arrow over the spot so he can find it easier. He later said he couldn't see the arrow, lol. I usually just let these type float through but I have some i really enjoy playing with and I'd like to give them an "option" Anyway, I'm not a coder so can I ask what code you'd use to delete the weekly special and add a new one. would it be something like" DELETE FROM `traders_data` (`item`,`qty`,`buy`,`sell`,`order`,`tid`,`afile` yada, yada, yada.....? Also, would be nice if this worked from an event like the "restock traders" do. one of the loot missions I use cycles from one to the other, I wonder if this could be made to do that also. I Know, now I'm being lazy, but I'd like to make some time to actually play on my server, lol. Dridge118 1 Link to comment Share on other sites More sharing options...
Poncho Posted December 17, 2013 Report Share Posted December 17, 2013 Tested server side and working? From what I can see these screens are taken from the editor. I have heard a lot of problems concerning the pre-built military encampments you have used as part of the edit. (Shown by the Multicolored bobble on a stick in the middle of the camp) If it does work anyway nice addition, many of those camps available in the editor are just waiting for traders to be thrown into them! Link to comment Share on other sites More sharing options...
AntonioMaster Posted January 2, 2014 Report Share Posted January 2, 2014 where is it OPTIONAL: If you using custom things like bicycles and Weekly sales you need to add them to your database Link to comment Share on other sites More sharing options...
LordDan1989 Posted February 27, 2014 Report Share Posted February 27, 2014 Hmm, my west wholesaler looks great but the east doesn't have any buildings around him at all. Also, the buying/selling bicycles is broken, you can buy without the wheels, and if you do have the wheels they are not removed. Same for selling, you won't get wheels but the bike will vanish. Cool idea, hope I can get it working properly though :( Link to comment Share on other sites More sharing options...
Akelorian Posted February 28, 2014 Report Share Posted February 28, 2014 Hmm, my west wholesaler looks great but the east doesn't have any buildings around him at all. Also, the buying/selling bicycles is broken, you can buy without the wheels, and if you do have the wheels they are not removed. Same for selling, you won't get wheels but the bike will vanish. Cool idea, hope I can get it working properly though :( try doing this, just add _old behind the trade_any_bicycle and that should fix the problem ;) INSERT INTO `traders_data` (`item`,`qty`,`buy`,`sell`,`order`,`tid`,`afile`) VALUES ('["Old_bike_TK_INS_EP1",3]','1','[2,"PartWheel",1]','[2,"PartWheel",1]','0','694','trade_any_bicycle_old'); 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