Jump to content

Custom Wholesalers (Trade Camps)


Aidem

Recommended Posts

If you are interested in custom wholesalers
I changed the wholesaler thing into
 
 
Trade Camps (East and West)

 

OdVVnOt.jpg

XJx8G1m.png

 
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 pbo
    Search 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 pbo
    Search 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 pbo
    Search 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 database

    Adding 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 by Aidem
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 weeks later...

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.

Link to comment
Share on other sites

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

  • 3 weeks later...
  • 1 month later...

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...