mirror of
https://github.com/EpochModTeam/DayZ-Epoch.git
synced 2025-12-14 12:12:34 +03:00
Updated Categories
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
class Category_517 {
|
||||
class AN2_DZ {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {4,"ItemGoldBar10oz"};
|
||||
sell[] = {2,"ItemGoldBar10oz"};
|
||||
};
|
||||
class C130J_US_EP1 {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {4,"ItemBriefcase100oz"};
|
||||
sell[] = {2,"ItemBriefcase100oz"};
|
||||
};
|
||||
class MV22_DZ {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {5,"ItemBriefcase100oz"};
|
||||
sell[] = {2,"ItemBriefcase100oz"};
|
||||
};
|
||||
class GNT_C185U {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {4,"ItemGoldBar10oz"};
|
||||
sell[] = {2,"ItemGoldBar10oz"};
|
||||
};
|
||||
class GNT_C185 {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {4,"ItemGoldBar10oz"};
|
||||
sell[] = {2,"ItemGoldBar10oz"};
|
||||
};
|
||||
class GNT_C185R {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {4,"ItemGoldBar10oz"};
|
||||
sell[] = {2,"ItemGoldBar10oz"};
|
||||
};
|
||||
class GNT_C185C {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {4,"ItemGoldBar10oz"};
|
||||
sell[] = {2,"ItemGoldBar10oz"};
|
||||
};
|
||||
};
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_485 {
|
||||
class Category_615 {
|
||||
class G36A_camo {
|
||||
type = "trade_weapons";
|
||||
buy[] = {6,"ItemGoldBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_538 {
|
||||
class Category_688 {
|
||||
class DZ_Patrol_Pack_EP1 {
|
||||
type = "trade_backpacks";
|
||||
buy[] = {2,"ItemSilverBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_628 {
|
||||
class Category_689 {
|
||||
class Skin_Rocker2_DZ {
|
||||
type = "trade_items";
|
||||
buy[] = {2,"ItemGoldBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_630 {
|
||||
class Category_690 {
|
||||
class FoodbaconCooked {
|
||||
type = "trade_items";
|
||||
buy[] = {4,"ItemSilverBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_601 {
|
||||
class Category_691 {
|
||||
class ItemSodaCoke {
|
||||
type = "trade_items";
|
||||
buy[] = {2,"ItemSilverBar"};
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
class Category_519 {
|
||||
class Mi17_Civilian_DZ {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {4,"ItemGoldBar10oz"};
|
||||
sell[] = {2,"ItemGoldBar10oz"};
|
||||
};
|
||||
class AH6X_DZ {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {6,"ItemGoldBar10oz"};
|
||||
sell[] = {3,"ItemGoldBar10oz"};
|
||||
};
|
||||
class MH6J_DZ {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar10oz"};
|
||||
sell[] = {4,"ItemGoldBar10oz"};
|
||||
};
|
||||
class CSJ_GyroC {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {4,"ItemGoldBar"};
|
||||
sell[] = {2,"ItemGoldBar"};
|
||||
};
|
||||
class CSJ_GyroCover {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {4,"ItemGoldBar"};
|
||||
sell[] = {2,"ItemGoldBar"};
|
||||
};
|
||||
class CSJ_GyroP {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {5,"ItemGoldBar"};
|
||||
sell[] = {3,"ItemGoldBar"};
|
||||
};
|
||||
};
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_486 {
|
||||
class Category_616 {
|
||||
class M249_EP1_DZ {
|
||||
type = "trade_weapons";
|
||||
buy[] = {1,"ItemGoldBar10oz"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_629 {
|
||||
class Category_692 {
|
||||
class FoodCanBakedBeans {
|
||||
type = "trade_items";
|
||||
buy[] = {2,"ItemSilverBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_489 {
|
||||
class Category_617 {
|
||||
class M9SD {
|
||||
type = "trade_weapons";
|
||||
buy[] = {2,"ItemGoldBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_574 {
|
||||
class Category_620 {
|
||||
class Winchester1866 {
|
||||
type = "trade_weapons";
|
||||
buy[] = {2,"ItemSilverBar10oz"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_487 {
|
||||
class Category_619 {
|
||||
class SVD_CAMO {
|
||||
type = "trade_weapons";
|
||||
buy[] = {1,"ItemGoldBar10oz"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_488 {
|
||||
class Category_618 {
|
||||
class bizon_silenced {
|
||||
type = "trade_weapons";
|
||||
buy[] = {1,"ItemGoldBar10oz"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_650 {
|
||||
class Category_587 {
|
||||
class MMT_Civ {
|
||||
type = "trade_any_bicycle";
|
||||
buy[] = {4,"ItemSilverBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_588 {
|
||||
class Category_558 {
|
||||
class RHIB {
|
||||
type = "trade_any_boat";
|
||||
buy[] = {4,"ItemGoldBar10oz"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_662 {
|
||||
class Category_508 {
|
||||
class ItemSandbag {
|
||||
type = "trade_items";
|
||||
buy[] = {4,"ItemGoldBar"};
|
||||
@@ -24,6 +24,16 @@ class Category_662 {
|
||||
buy[] = {6,"ItemGoldBar10oz"};
|
||||
sell[] = {6,"ItemGoldBar10oz"};
|
||||
};
|
||||
class ItemCorrugated {
|
||||
type = "trade_items";
|
||||
buy[] = {2,"ItemGoldBar"};
|
||||
sell[] = {1,"ItemGoldBar"};
|
||||
};
|
||||
class ItemPole {
|
||||
type = "trade_items";
|
||||
buy[] = {1,"ItemSilverBar10oz"};
|
||||
sell[] = {5,"ItemSilverBar"};
|
||||
};
|
||||
class ItemVault {
|
||||
type = "trade_items";
|
||||
buy[] = {1,"ItemBriefcase100oz"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_651 {
|
||||
class Category_588 {
|
||||
class Ikarus {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {2,"ItemGoldBar10oz"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_653 {
|
||||
class Category_586 {
|
||||
class Ural_CDF {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {2,"ItemGoldBar10oz"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_666 {
|
||||
class Category_669 {
|
||||
class HandChemBlue {
|
||||
type = "trade_items";
|
||||
buy[] = {2,"ItemSilverBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_655 {
|
||||
class Category_589 {
|
||||
class KamazRefuel_DZ {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {7,"ItemGoldBar10oz"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_665 {
|
||||
class Category_670 {
|
||||
class ItemAntibiotic {
|
||||
type = "trade_items";
|
||||
buy[] = {1,"ItemGoldBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_658 {
|
||||
class Category_598 {
|
||||
class HMMWV_M1035_DES_EP1 {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {4,"ItemGoldBar10oz"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_668 {
|
||||
class Category_671 {
|
||||
class SmokeShell {
|
||||
type = "trade_items";
|
||||
buy[] = {2,"ItemSilverBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_663 {
|
||||
class Category_510 {
|
||||
class ItemCompass {
|
||||
type = "trade_weapons";
|
||||
buy[] = {6,"ItemSilverBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_659 {
|
||||
class Category_590 {
|
||||
class hilux1_civil_3_open_EP1 {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {8,"ItemGoldBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_660 {
|
||||
class Category_520 {
|
||||
class Skoda {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {2,"ItemGoldBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_661 {
|
||||
class Category_591 {
|
||||
class SUV_TK_CIV_EP1 {
|
||||
type = "trade_any_vehicle";
|
||||
buy[] = {2,"ItemGoldBar10oz"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_664 {
|
||||
class Category_509 {
|
||||
class ItemJerrycan {
|
||||
type = "trade_items";
|
||||
buy[] = {4,"ItemSilverBar"};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
class Category_636 {
|
||||
class Category_555 {
|
||||
class bulk_15Rnd_9x19_M9SD {
|
||||
type = "trade_items";
|
||||
buy[] = {2,"ItemGoldBar"};
|
||||
@@ -29,11 +29,6 @@ class Category_636 {
|
||||
buy[] = {1,"ItemGoldBar"};
|
||||
sell[] = {1,"ItemGoldBar"};
|
||||
};
|
||||
class bulk_ItemWire {
|
||||
type = "trade_items";
|
||||
buy[] = {3,"ItemSilverBar10oz"};
|
||||
sell[] = {3,"ItemSilverBar10oz"};
|
||||
};
|
||||
class bulk_PartGeneric {
|
||||
type = "trade_items";
|
||||
buy[] = {6,"ItemSilverBar10oz"};
|
||||
@@ -59,4 +54,9 @@ class Category_636 {
|
||||
buy[] = {1,"ItemSilverBar10oz"};
|
||||
sell[] = {5,"ItemSilverBar"};
|
||||
};
|
||||
class bulk_ItemWire {
|
||||
type = "trade_items";
|
||||
buy[] = {3,"ItemSilverBar10oz"};
|
||||
sell[] = {3,"ItemSilverBar10oz"};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -5,9 +5,9 @@ use DBI;
|
||||
use JSON;
|
||||
use Data::Dumper;
|
||||
|
||||
my $pathServerTradersSQF = '..\..\Server Files\MPMissions\DayZ_Epoch_11.Chernarus\server_traders.sqf';
|
||||
my $pathServerTradersSQF = '..\..\Server Files\MPMissions\DayZ_Epoch_17.Chernarus\server_traders.sqf';
|
||||
my $pathServerTradersCfg = '..\..\SQF\dayz_code\Configs\CfgServerTrader\\';
|
||||
my $pathServerTraderCategoriesCfg = '..\..\SQF\dayz_code\Configs\CfgServerTraderCategories\\';
|
||||
my $pathServerTraderCategoriesCfg = '..\..\SQF\dayz_code\Configs\CfgServerTrader\Category\\';
|
||||
my $MySQL = DBI->connect('DBI:mysql:host=localhost;database=test2', 'root', 'root');
|
||||
|
||||
open(TRADERSQF, '<', $pathServerTradersSQF) or die $!;
|
||||
@@ -100,7 +100,7 @@ foreach my $traderhuman (keys $traderHumanity) {
|
||||
foreach my $traderCategory (keys $traderCategories) {
|
||||
my $cfg = '';
|
||||
|
||||
$cfg .= "class ".$traderCategory." {\n";
|
||||
$cfg .= "class Category_".$traderCategories->{$traderCategory}." {\n";
|
||||
#$cfg .= "\ttid = ".$traderCategories->{$traderCategory}.";\n";
|
||||
my $sth = $MySQL->prepare(q~
|
||||
SELECT
|
||||
@@ -119,9 +119,9 @@ foreach my $traderCategory (keys $traderCategories) {
|
||||
$row->{Item} = $1;
|
||||
}
|
||||
else {next;}
|
||||
if ($row->{Buy} =~ s/^\[(\d+),"([^"]+)",(\d+)\]$/{$1,"$2",$3}/) {}
|
||||
if ($row->{Buy} =~ s/^\[(\d+),"([^"]+)",(\d+)\]$/{$1,"$2"}/) {}
|
||||
else {next;}
|
||||
if ($row->{Sell} =~ s/^\[(\d+),"([^"]+)",(\d+)\]$/{$1,"$2",$3}/) {}
|
||||
if ($row->{Sell} =~ s/^\[(\d+),"([^"]+)",(\d+)\]$/{$1,"$2"}/) {}
|
||||
else {next;}
|
||||
|
||||
$cfg .= "\tclass ".$row->{Item}." {\n";
|
||||
|
||||
Reference in New Issue
Block a user