Jump to content

1.0.6.1 Trader ID's, Define trader Category


gle353

Recommended Posts

Hello,

well, i get a server for bugfixing, so its not my own server, and i did not install the scripts. But i should fix the bugs from my predecessor.

So he installed the "CFG Traders" with this instructions.

 

Spoiler

MAKE CUSTOM TRADERS ITEMS/PRICES


 1-Open your server_Traders.sqf  located in Mpmissions\instance_chernarus_11\

change your line by this:


#include "custom\CfgServerTrader\chernarus11.sqf"

2-Open your description.ext located in Mpmissions\instance_chernarus_11\

find "CfgServerTrader.hpp"  and Change your line by this:


#include "custom\CfgServerTrader\CfgServerTrader.hpp"

3-Open \@DayZ_Epoch\addons\dayz_code\Configs\  

and Drop "CfgServerTrader" folder into  Mpmissions\instance_chernarus_11\custom\

4-Open \@DayZ_Epoch\addons\dayz_code\system\mission\server_traders\

And Drop chernarus11.sqf into custom\CfgServerTrader\

5-  into : \MPMissions\DayZ_Epoch_11.Chernarus\custom\CfgServerTrader\Category\ 

you will see a lot of .hpp files.. modify from here your prices and items to sell and bought. 

Thanks to Collaborator for this

So, the problem is now, i dont know where to set the trader categorys. At Epoch 1.0.5.1 there was a file with all traders, locations, behavior, categorys and tid's. Now there is only a reference for the traderclasses and where they spawn. 

Spoiler


Servertraders SQF:
#include "\z\addons\dayz_code\system\mission\server_traders\napf.sqf"

Napf.SQF

[
    ["Soldier_MG_PKM_PMC",[8264.54,15495.9,3.55006],56.1028],
    ["GUE_Woodlander3",[8266.67,15482.2,0.123269],218.236],
    ["GUE_Woodlander2",[8254.95,15509.6,0.250067],189.353],
    ["GUE_Worker2",[8262.31,15499.4,3.55006],55.1128],
    ["Damsel3",[8262.27,15499.9,0.250063],228.636],
    ["Soldier_GL_PMC",[8243.29,15505.4,0.250062],134.795],
    ["GUE_Villager3",[12421.7,5051.93,0.220291],6.03454],
    ["Dr_Annie_Baker_EP1",[12401.6,5045.47,0.894516],324.168],
    ["CIV_EuroWoman01_EP1",[12392.7,5053.99,0.520996],172.955],
    ["US_Delta_Force_AR_EP1",[12427.5,5058.27,3.47403],281.345],
    ["Graves",[12425.6,5054.96,3.49786],321.034],
    ["GUE_Commander",[12421.8,5058.99,0.225952],24.8034],
    ["Ins_Soldier_AR",[15507.7,13226.1,0],28.4826],
    ["Ins_Lopotev",[15503.2,13227.2,0],9.45836],
    ["Ins_Woodlander3",[15518.8,13226.5,0],339.319],
    ["Ins_Worker2",[15473.2,13187.7,0],34.3503],
    ["Dr_Hladik_EP1",[15520,13250.7,0.294226],328.894],
    ["Tanny_PMC",[5154.02,4855.44,0],266.032],
    ["Ins_Woodlander2",[16864.951,5273.5635,1.3620883],180],
    ["TK_Special_Forces_EP1",[6773.4,16950.3,1.79731],328.118],
    ["RUS_Commander",[5372.98,16095.3,0],246.024],
    ["TK_Special_Forces_MG_EP1",[2128.3,7807.78,6.99081],260.566],
    ["RUS_Soldier2",[10395.6,8270.34,0],214.982],
    ["Drake_Light",[15128.7,16420.9,0.0772419],134.335],
    ["Damsel5",[15536.5,13224.5,0],0],
    ["pook_Doc_Bell47",[8269.49,15490.6,0.250063],255.248],
    ["Soldier_GL_PMC",[12424.4,5053.17,3.50717],340.471]
] call server_spawnTraders;

Another reference...

Spoiler

private "_trader";
{
    _trader = createAgent [_x select 0,_x select 1,[],0,"CAN_COLLIDE"]; 
    {_trader removeMagazine _x;} count magazines _trader;
    removeAllItems _trader;
    removeAllWeapons _trader;
    removeBackpack _trader;
    _trader switchMove "";
    _trader setDir (_x select 2);
    _trader setVehicleInit "this disableAI 'AUTOTARGET'; this disableAI 'MOVE'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; this allowDamage false;";
    _trader setUnitAbility 0.6;
    _trader disableAI "AUTOTARGET";
    _trader disableAI "MOVE";
    _trader disableAI "TARGET";
    _trader setBehaviour "CARELESS";
    _trader forceSpeed 0;
    _trader allowDamage false;
    _trader enableSimulation false;
} count _this;

processInitCommands;


....... that is all.... But where is the place for the TID's? How can i set the categorys for the traders?


Need more Informations? Just Ask ;D Greets

Gle353

Link to comment
Share on other sites

First of all you have the category folder, in there (with all the .hpp files) these are the categories.
When you want to create a new category, you have to create a new .hpp file in there with the name of the catogory for example "drugs.hpp".

After that is done you have to initialize this .hpp file. Therefore you have to go into the cfgServerTrader.hpp and put an include line for this file into that so like

#include "category\hero\drugs.hpp"

Link to comment
Share on other sites

Well ....

long story short ..... i am moron

I was in the false folder. There was a file with the same name and folderstructure in the server.pbo.
After i search for the original file, i find and replace the one in the mission file. My predecessor did create its own which get the items for the categorys from the database.  A little bit complicated.
So i delete the shit he build and replace it with the simple one.

Thanks for the help.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...