Jump to content

Custom Trade Antena 4 Broadcast Signal


juandayz

Recommended Posts

A Custom Trade, that simulates a radio emergency broadcast signal. Called "Antena 4"

Thers 2 IA traders and you can choose what kind of things sold.

Arm_A2_OA_2016_02_13_18_22_06_54.png

well.

-------------------------------------------------------------------------------------------------------------------------------------------------

ONE: Download the folder whit .sqf BUILDINGS and IA TRADERS and paste into "MPMISSIONS/Chernarus_11/          

Download:http://www.mediafire.com/download/od5i42e53ennt73/customtrade.zip

---------------------------------------------------------------------------------------------------------------------------------------------------

TWO: Open your init.sqf and go to botton to add this:  (change if ure using other path)

[] execVM "customtrade\Radio.sqf";
[] execVM "customtrade\Radioia.sqf";

----------------------------------------------------------------------------------------------------------------------------------------------------
THREE:  Open your mission.sqm and find this: (adding markers at map)


class Markers
    {
        items=24;
        class Item0

***Look at items numbers, you need to add one more.

Example if u have Items=8 then change by Items=9 or in this case items=24 by items=25


---------------------------------------------------------------------------------------------------------------------------------------------------

FOUR: at the end of Class Markers add this:

class Item17
        {
            position[]={4894.3384, -0.29563946, 5687.3564};
            name="Radio";
            text="ANTENA 4 Broadcast Signal";
            type="mil_circle";
            colorName="ColorGreen";
        };

***note: the number of class item must be below the previous.

example:

class Item16
        {
            position[]={12944.227,210.19823,12766.889};
            name="HeroTrader";
            text="Campamento Veteranos";
            type="mil_dot";
            colorName="ColorBlue";
        };
        class Item17
        {
            position[]={4894.3384, -0.29563946, 5687.3564};
            name="Radio";
            text="ANTENA 4 Broadcast Signal";
            type="mil_circle";
            colorName="ColorGreen";
        };

 };

-------------------------------------------------------------------------------------------------------------------------------------------------------

FIVE: (adding the new trade like a safe zone)

in mission.sqm find :

class Sensors
    {
        items=11;

***add two more number to items=;  example:  items=11; change in items=13;

***Now find :

class Item2
        {
            position[]={6325.6772,304.99033,7807.7412};
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zonestary";
            expCond="(player distance zonestary) < 75;";
            expActiv="TitleText[""Entrando al ULTIMO Y GRAN PUEBLO de STARY"",""PLAIN DOWN""]; canbuild = false;";
            expDesactiv="TitleText[""Que tengas un buen viaje"",""PLAIN DOWN""]; canbuild = true;";
            class Effects
            {
                
            };
        };

AND  ADD THIS BELOW:

class Item3
        {
            position[]={4894.3384, -0.29563946, 5687.3564};
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zoneradio";
            expCond="(player distance zoneradio) < 75;";
            expActiv="TitleText[""Welcom To The Broadcast Signal"",""PLAIN DOWN""]; canbuild = false;";
            expDesactiv="TitleText[""See Ya later alligator"",""PLAIN DOWN""]; canbuild = true;";
            class Effects
            {
                
            };
        };   

***Note: Class Item must contain a counting up until the end of the class.

example: Class Item0 (Bash trade), Class Item1 (Stary Trade), Class Item2 (Klen Trade), Class Item3 (custom trade), Class Item4 (airfield) etc...

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

SIX:
in mission.sqm find :
 
class Item7
        {
            position[]={6325.6772,304.99033,7807.7412};
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zonestary_safezone";
            expCond="(player distance zonestary_safezone) < 150;";
            expActiv="inSafeZone = true;";
            expDesactiv="inSafeZone = false;";
            class Effects
            {
                
            };
        };
 
***ADD BELOW:
class Item8
        {
            position[]={4894.3384, -0.29563946, 5687.3564};
            activationBy="ANY";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zoneradio_safezone";
            expCond="(player distance zoneradio_safezone) < 150;";
            expActiv="inSafeZone = true;";
            expDesactiv="inSafeZone = false;";
            class Effects
            {
            };
        };   

 

***Remember the progresive count whit class items***

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

SEVEN: adding the new IA like a traders

***if ure using ZUPA´S COINS find "server_traders_cherno_11.sqf" in MPMISSION folder.***

***if ure using the standard gold system find "server_traders.sqf" in MPMISSION folder.***

open whit note ++ and in the first line add this at the end of the line:

,"ValentinaVictim","Assistant"

***EXAMPLE***:

serverTraders = ["US_Soldier_Pilot_EP1", "RU_Functionary1","RU_Citizen3","Rocker4","Profiteer4","Rita_Ensler_EP1","CIV_EuroMan01_EP1","CIV_EuroMan02_EP1","TK_GUE_Soldier_5_EP1","GUE_Soldier_MG","Worker2","Worker3","Soldier_GL_M16A2_PMC","Woodlander1","UN_CDF_Soldier_Pilot_EP1","RU_WorkWoman1","Dr_Annie_Baker_EP1","RU_Citizen4","RU_WorkWoman5","RU_Citizen1","RU_Villager3","TK_CIV_Takistani04_EP1","Pilot_EP1","RU_Profiteer4","Woodlander3","Dr_Hladik_EP1","Doctor","HouseWife1","GUE_Woodlander2","ValentinaVictim","Assistant"];

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

EIGHT: adding the stuff will be bought and sold by the new IAb

 

In the same file "server_traders.sqf" or "server_traders_cherno_11.sqf" at the botton add this:

// General Store 2
menu_ValentinaVictim = [
    [["Assault Rifle",637],["Light Machine Gun",638],["Pistols",674],["Shotguns and Single Shot",641],["Sniper Rifle",640],["Submachine Guns",642]],
    [["ItemTinBar","TrashJackDaniels",1,1,"buy","Empty Whiskey Bottle","Tin Bar",101]],
    "neutral"

];
// Medical Supplies
menu_Assistant = [
    [["Medical Supplies",670],["Toolbelt Items",510],["Drinks",498],["Packaged Food",579]],
    [["ItemGoldBar","ItemZombieParts",1,1,"buy","Zombie Parts","Gold Bar",101]],
    "neutral"
];

***Note: u can change that is sold or bought. Just look for anothers Ammo,Weapon,Drinks,clothes... categories and paste in Assistant menu or ValentinaVictim menu.

Or u can do your owns categories for the new IA traders.

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

***HOW TO ADD A NEW CATEGORY.***

1-Go to your Category Folder: Using Zupa Coins find in : ...\MPMissions\DayZ_Epoch_11.Chernarus\ZSC\config\Category

2- for example if u want to add a building supply category open:

"NeutralBuildingSupplies.hpp" file

3-go to the botton and add a new category.

Example:

class Category_204 {

};
         class ChainSawR {
        type = "trade_weapons";
        buy[] ={20000,"Coins"};
        sell[] ={10000,"Coins"};
    };
     class ItemMixOil {
        type = "trade_items";
        buy[] ={5000,"Coins"};
        sell[] ={2500,"Coins"};
    };
};

class Category_2004 {
    class ItemMixOil {
        type = "trade_items";
        buy[] ={4000,"Coins"};
        sell[] ={2500,"Coins"};
    };
    class ItemTentOld {
        type = "trade_items";
        buy[] ={1000,"Coins"};
        sell[] ={600,"Coins"};
    };
    class ChainSawR {
        type = "trade_weapons";
        buy[] ={15000,"Coins"};
        sell[] ={10000,"Coins"};
    };
    class ItemComboLock {
        type = "trade_items";
        buy[] ={9000,"Coins"};
        sell[] ={5000,"Coins"};
    };  
     class ItemLockbox {
            type = "trade_items";
        buy[] ={40000,"Coins"};
        sell[] ={20000,"Coins"};
    };
    class ItemVault {
        type = "trade_items";
        buy[] ={100000,"Coins"};
        sell[] ={100000,"Coins"};
    };
    class 30m_plot_kit {
        type = "trade_items";
        buy[] ={90000,"Coins"};
        sell[] ={60000,"Coins"};
    };
    class fuel_pump_kit {
    type = "trade_items";
        buy[] ={30000,"Coins"};
        sell[] ={10000,"Coins"};
    };
    class wood_ramp_kit {
    buy[] ={3000,"Coins"};
    sell[] ={900,"Coins"};    
    };    
    class ItemOilBarrel {
    buy[] ={3000,"Coins"};
    sell[] ={900,"Coins"};    
    };    
};   

***class category number must be high number to not replace an existing one.***

DONE.
 

 
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
  • Discord

×
×
  • Create New...