mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2026-02-27 10:11:51 +03:00
Remove DB traders
This commit is contained in:
@@ -953,14 +953,8 @@ if (!isNull _cursorTarget && {!_inVehicle} && {!_isPZombie} && {player distance
|
||||
_buy = player addAction [format["Trade %1 %2 for %3 %4",(_x select 3),(_x select 5),(_x select 2),(_x select 6)], "\z\addons\dayz_code\actions\trade_items_wo_db.sqf",[(_x select 0),(_x select 1),(_x select 2),(_x select 3),(_x select 4),(_x select 5),(_x select 6)], (_x select 7), true, true];
|
||||
s_player_parts set [count s_player_parts,_buy];
|
||||
} count (_traderMenu select 1);
|
||||
if (DZE_ConfigTrader) then {
|
||||
_buyV = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\AdvancedTrading\init.sqf",(_traderMenu select 0), 999, true, false];
|
||||
s_player_parts set [count s_player_parts,_buyV];
|
||||
} else {
|
||||
// Database menu
|
||||
_buy = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\show_dialog.sqf",(_traderMenu select 0), 999, true, false];
|
||||
s_player_parts set [count s_player_parts,_buy];
|
||||
};
|
||||
_buyV = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\AdvancedTrading\init.sqf",(_traderMenu select 0), 999, true, false];
|
||||
s_player_parts set [count s_player_parts,_buyV];
|
||||
};
|
||||
s_player_parts_crtl = 1;
|
||||
};
|
||||
|
||||
@@ -63,7 +63,6 @@ DZE_HaloSpawnHeight = 2000; // This is the altitude fresh spawn players start at
|
||||
DZE_HaloJump = true; // Enable halo jumping out of air vehicles above 400m
|
||||
|
||||
// Trader Menu
|
||||
DZE_ConfigTrader = true; // Use config files for traders instead of database. Loads faster and uses less network traffic. False enables database traders with legacy trader menu.
|
||||
DZE_serverLogTrades = true; // Log trades to server RPT (sent with publicVariableServer on every trade)
|
||||
DZE_GemOccurance = [["ItemTopaz",10], ["ItemObsidian",8], ["ItemSapphire",6], ["ItemAmethyst",4], ["ItemEmerald",3], ["ItemCitrine",2], ["ItemRuby",1]]; //Sets how rare each gem is in the order shown when mining (whole numbers only)
|
||||
DZE_GemWorthArray = [["ItemTopaz",15000], ["ItemObsidian",20000], ["ItemSapphire",25000], ["ItemAmethyst",30000], ["ItemEmerald",35000], ["ItemCitrine",40000], ["ItemRuby",45000]]; // Array of gem prices, only works with config traders. Set DZE_GemWorthArray=[]; to disable return change in gems.
|
||||
|
||||
@@ -608,8 +608,6 @@ if (!isDedicated) then {
|
||||
|
||||
dayz_originalPlayer = player;
|
||||
|
||||
// database trader menu
|
||||
if (!DZE_ConfigTrader) then {call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_hiveTrading.sqf";};
|
||||
// recent murders menu
|
||||
call compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\player_murderBoard.sqf";
|
||||
|
||||
|
||||
@@ -96,9 +96,6 @@ if (isServer) then {
|
||||
"PVDZE_veh_Publish2" addPublicVariableEventHandler {(_this select 1) call server_publishVeh2}; //Used to purchase vehicles at traders
|
||||
"PVDZE_veh_Upgrade" addPublicVariableEventHandler {(_this select 1) call server_publishVeh3}; //Used for car upgrades
|
||||
"PVDZE_obj_Trade" addPublicVariableEventHandler {(_this select 1) spawn server_tradeObj};
|
||||
if (!DZE_ConfigTrader) then {
|
||||
"PVDZE_plr_TradeMenu" addPublicVariableEventHandler {(_this select 1) spawn server_traders};
|
||||
};
|
||||
"PVDZE_plr_DeathB" addPublicVariableEventHandler {(_this select 1) spawn server_deaths};
|
||||
"PVDZE_handleSafeGear" addPublicVariableEventHandler {(_this select 1) call server_handleSafeGear};
|
||||
if (dayz_groupSystem) then {
|
||||
|
||||
Reference in New Issue
Block a user