Example for #824

This commit is contained in:
Skaronator
2014-02-02 23:15:56 +01:00
parent 5c38e0b9c2
commit 4001f30d0d
2 changed files with 68 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
#include "TraderCategory.hpp"
class CfgServerTrader {
//Hero Trader for Example
class RU_Functionary1 { //Classname of the person
humanity = "hero"; //If Hero, normal or bandit
category[] = { //{"DisplayName","LinkedCategory"}
{"Ammunition","ammunition_1"},
{"Clothes","clothes_1"},
{"Helicopter Armed","heliarmed_1"},
{"Military Armed","militaryarmed_1"},
{"Trucks Armed","truckarmed_1"},
{"Weapons","weapons_1"}
};
};
};

View File

@@ -0,0 +1,51 @@
class CfgTraderCategory {
class ammunition_1 {
type = "trade_items";
class 30Rnd_556x45_Stanag {
buy[] = {"ItemSilverBar",4};
sell[] = {"ItemSilverBar",2};
};
class 5Rnd_86x70_L115A1 {
buy[] = {"ItemGoldBar",5};
sell[] = {"ItemSilverBar",2};
};
//AND SO ON....
};
class clothes_1 {
type = "trade_items";
class Skin_Sniper1_DZ {
buy[] = {"ItemGoldBar",2};
sell[] = {"ItemGoldBar",1};
};
};
class heliarmed_1 {
type = "trade_any_vehicle";
class CH_47F_EP1_DZE {
buy[] = {"ItemBriefcase100oz",2};
sell[] = {"ItemBriefcase100oz",1};
};
};
class militaryarmed_1 {
type = "trade_any_vehicles";
class HMMWV_M1035_DES_EP1 {
buy[] = {"ItemGoldBar10oz",8};
sell[] = {"ItemGoldBar10oz",4};
};
};
class truckarmed_1 {
type = "trade_any_vehicles";
class Pickup_PK_GUE_DZE {
buy[] = {"ItemGoldBar10oz",1};
sell[] = {"ItemGoldBar",5};
};
};
class weapons_1 {
type = "trade_weapons";
class M4SPR {
buy[] = {"ItemGoldBar10oz",1};
sell[] = {"ItemGoldBar",6};
};
};
};