Jump to content
  • 0
CarlJ

Adding Traders.

Question

56 answers to this question

Recommended Posts

  • 0

Not hard at all.. Little editing needed. Pretty much follow how other traders are added. Think the files you need to worry about are. Mission.sqf This is where you would add a trader to map So you will have to have cords. Also must add the cone for the trader so vehicle will spawn. Next would be in server_traders.sqf. Here you would add the model of skin and just copy one of the lines and change numbers for dialog list. Example // Weapons Friendly
menu_Rocker4 = [
    [["Assault Rifle",485],["Light Machine Gun",486],["Pistols",489],["Shotguns and Single-shot",574],["Sniper Rifle",487],["Submachine Guns",488]],
    [],
    "friendly"
];.... Here I would change numbers start with maybe 800 but make sure not same as any other. Then you would have to go into database and add this trader under the server traders colum. This should be it. I have changed the bandit trader into a miltary trader and his skin too. So adding a trader I have not tried but sure this will work.

b_560x95.png

Share this post


Link to post
Share on other sites
  • 0

bFe, I understand that. So, I have the location of my trader.. and I enter in that location.. And it is not working. I am not sure what I am missing.

 

However, I would like some help from someone if they can.

Thanks

Share this post


Link to post
Share on other sites
  • 0

Here is what I have in my mission.sqm

 

class Item17


{
position[]={10253.105, 5601.0527, 0.3090373};
name="blackmarket";
text="Black Market Trader Staroye";
type="mil_dot";
colorName="ColorBlack";
};

 

This is to be a marker over the red roof barn in Staroye. However it is not working.

 

Not sure where to get the marker location.

Share this post


Link to post
Share on other sites
  • 0

Here is what I have in my mission.sqm

 

class Item17

{

position[]={10253.105, 5601.0527, 0.3090373};

name="blackmarket";

text="Black Market Trader Staroye";

type="mil_dot";

colorName="ColorBlack";

};

 

This is to be a marker over the red roof barn in Staroye. However it is not working.

 

Not sure where to get the marker location.

 

Have you defined that there is 17 classes at the top of Class markers?

Share this post


Link to post
Share on other sites
  • 0

go to where your trader is gonna be, and logout...

Go into your database and find your world space in it..

 

then use a quote from gorsy over at opendayz.net... I copied it and saved it onto my pc, so it wouild always be accessible for me

 

"Yeh co-ords shud be X,Z,Y

    Getting co-ords from database
    taken from your survivors world location in ur database wud look like
    [107,[1234.56,6543.21,0.00012]]
    DIR X Y Z

    Dir= Direction you are facing
    X = horizontal
    Y = vertical
    Z = height

    So what u need to do is get rid of Direction and Height

    So all you will be left with is

    1234.56 and 6543.21

    Soo now what you need to do is put them in your sensors table

    position[]={1234.56,###,6543.21};
    X Z Y



    Setting Z
    Z works from the ground up, so if you set this to 500, your dome wud go from 0 (ground level) upto 500 meters in the sky

    so your final position would look like

    position[]={1234.56,500,6543.21};
    X Z Y

Gorsy"

 

Make sure you move yourself after you have the CO-ORDS though.. i've killed myself a couple of times not thinking about this

 

At least this is how I find a specific spot to put a marker down for something

Edited by Bags2247

Share this post


Link to post
Share on other sites
  • 0

Very nice, thanks for this, I was able to create my own custom trader with no problem.

 

Two small things:

 

First; you dont need to set a cone for veh spawn location anymore.

 

Second; the mission.sqf file is now located in the dayz_code pbo, so pull that out of there, and put it in your Chernarus11 pbo root, or custom folder if u like, then in your init file, edit this line

_nil = [] execVM "\z\addons\dayz_server\missions\DayZ_Epoch_11.Chernarus\mission.sqf";

and replace with

_nil = [] execVM "mission.sqf";

Share this post


Link to post
Share on other sites
  • 0

how would i do this with a dayz.st server.  ive followed the step by step thing previously posted in this thread and it worked on my dayzpriv server, but when i do it on my dayz.st server it breaks all the traders where i get no trade menu. any help here would be great as this is the most requested thing from my players

Share this post


Link to post
Share on other sites
  • 0

how would i do this with a dayz.st server.  ive followed the step by step thing previously posted in this thread and it worked on my dayzpriv server, but when i do it on my dayz.st server it breaks all the traders where i get no trade menu. any help here would be great as this is the most requested thing from my players

i figured it out. i was missing adding the "skin" to the list of server traders at the top like line 2 in the server_traders.sqf

Share this post


Link to post
Share on other sites
  • 0

Hello there, I have this working, but I shot the trader and he died, I could still access the trader menu but i was wondering if there is any way of stopping this happening please

 

many thanks

 

 

robbie

i use this so no one can "shoot" or get into others gear

http://opendayz.net/threads/epoch-safe-zone-commander-god-anti-backpack-stealing-no-shooting-no-vehicle-weapons.14877/

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By Vitor99
      Hi everyone, i would like to know if there is any torrent links for Epoch and Overpoch, if you know some send me the link here
    • By MysteryGamersElite
      [EU/UK] SDF Epoch|Wiped April 1st|FPS++|WAI & DZMS|SSD|Coins|Hourly Paycheck|Custom Loot| AND MORE....
      BRAND NEW DATABASE + SERVER 1st APRIL 2020!
      Server IP: 172.111.186.46:2302
      Discord: https://discord.gg/rvbX3JB
      We offer 24 hour support via discord for any questions or issues with your game!
      Top Server Feature List:
      - Modded DZMS and WAI Mission Systems
      - Custom High Loot Tables and Improved Dynamic Vehicle Spawns
      - Paycheck Every Hour
      - Coin Based Currency with Storage Banking only
      - Deploy Bike & Mozzie
      - Locate Vehicle
      - Snap Build Pro
      - Group Management
      - Repair, Refuel and Rearm at Service Stations
      - Vehicle Key Changer
      - infiSTAR AntiHack
      - Virtual Garage
      - Change View Distance with Binoculars
      - 3 Hour Restarts starting from Midnight GMT
      - Garage Door Opener
      - Take Clothes
       
    • By Reaper5150
      Simple but fun little script I put together awhile ago.
      What it does? It is bound to a object in this case "ItemObsidian" as a right click, but can be changed to whatever you want. It then will sends out a message to the players on the server and marks the player with red smoke and a marker on the map.
      The player will then get 2 mins of god mod acting like the amour. Once the amour takes damage (All it is is a countdown timer really) The god mode is then disabled so they can be killed.
      I'm still working on this and will update it when it is done. If any of you better scriptwriters then myself ( I'm still a noob lol) have any ideas on how to improve this? contact me so I can give you credit in the update :)
      Known bugs:
      marker sometimes stays on map Credits to : @Schalldampfer  For helping me understand map markers
      Install: Place this in your scripts folder name it something like Jugg.sqf
      //========================================================
      //========= Juggernaut script-Written by Reaper5150 ===========
      //=======================================================
      sleep 2;
      [nil,nil,rTitleText,"THERE IS A JUGGERNAUT,FIND HIM AND KILL HIM IF YOU CAN!!!","PLAIN",3] call RE;
      sleep 1;
      [nil, player, rSAY, "YOURSOUND.OGG", 100] call RE; //Add your custom sound here when Juggernaut spawns 
      [] spawn {
      player removeMagazine 'ItemObsidian';//Add whatever object you want and bound to your right click function
      sleep 5;
      [nil,nil,rTitleText,"THE JUGGERNAUT HAS BODY ARMOR,WE CAN'T KILL HIM...HELP!!!","PLAIN",3] call RE;
      ////////Set marker/////////////////////////////////////////////////////////////////////
      [] execVM "scripts\marker.sqf";
      //Start Smoke Marker//////////////////////////////////////////////////////////////////////////
      sleep 5;
      PJ_grenade = "SmokeShellRed" createVehicle position player;
      PJ_grenade attachto [vehicle player,[0.1,0,0]];
      sleep 2;
      [nil,nil,rTitleText,"THE JUGGERNAUT (PLAYER) HAS BEEN MARKED WITH SMOKE AND ON THE MAP!!!","PLAIN",3] call RE;
       
      //Temp Godmode for 2 mins////////////////////////////////////////////////////
      (vehicle player) removeAllEventHandlers "handleDamage";
      (vehicle player) addEventHandler ["handleDamage", { false }];    
      (vehicle player) allowDamage false;
       
      //Acts like a countdown timer//////////////////////////////////////////////////////////////////
      sleep 90;
      [nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 30% DAMAGE","PLAIN",3] call RE;
      sleep 100;
      [nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 50% DAMAGE","PLAIN",3] call RE;
      sleep 110;
      [nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 90% DAMAGE","PLAIN",3] call RE;
      uiSleep 120;
      [nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR IS WEAK...TAKE HIM OUT NOW!!!","PLAIN",3] call RE;
      sleep 2;
       
      //Start ending Juggernaut///////////////////////////////////
      (vehicle player) addEventHandler ["handleDamage", { true }];    
      (vehicle player) removeAllEventHandlers "handleDamage";
      (vehicle player) allowDamage true;
      uiSleep 240;
      deleteVehicle PJ_grenade;
      END;
      Call it from your right click
      ["ItemObsidian","JUGGERNAUT","execVM 'scripts\Jugg.sqf';","true"], 
      marker.sqf:
      _unit = player;
      _nameP = name _unit;
      _markerobjp = createMarker [_namep,[0,0]];
      _markerobjp setMarkerShape "ICON";
      _markerobjp setMarkerType "mil_dot";
      _markerobjp setMarkerColor "ColorRed";
      _markerobjp setMarkerText _nameP;
      _markerobjp setMarkerSize [1,1];

      while {alive _unit} do {
      _markerobjp setmarkerdir (getdir _unit);
      _markerobjp setMarkerPos (getPos _unit);
      _markerobjp setMarkerText _nameP;
      sleep 5;
      };
      ////////////////////////////////////////////
      uiSleep 240;
      deleteMarker _markerobjp;
       
    • By Vladick
      BSBS Server IP: 216.244.93.103:7802
      Website: https://bsbsepoch.000webhostapp.com/
      Discord: https://discord.gg/PVn8PvG
      Server Features:
      PvPvE Database wiped 1/5/18 ESS V3 spawn selection Coins and Global Banking WAI missions and Roaming DZAI Bandits Customized map additions Skalisky Bridge Skalisky Island Bandit Camp with high loot (fun mission!) Garage Door Opener Virtual Garage Deploy bike Refuel, Repair, Rearm Take clothes Bury Body Butcher Body Locate vehicle with keys and GPS One plot poll per player Indestructible bases Trader Safe Zones Day/Night Schedule 4-hour restarts
    • By FG_Trap
      Made this in my free time awhile ago thought id make it public.
      Right Alt is the key to open the menu.
      Install instructions are inside the download.
      https://github.com/NWDZ-Trapxxgods/traps-menu
       
       
      here is a picture of the server menu
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...