Jump to content

Arma 3 Zargabad Life

Welcome back to Zargabad. Go back in time and relive the glory days of the fast-paced environment of Zargabad. With minimal rules you chose how you play.

Connect today using CUP mods (except CWA) - play as a civilian or as a UN peacekeeper.

Arma 3 DayZ Exile

It is the year 2018; the world has just experienced a devastating zombie apocalypse. It is the result of an intense American invasion of the Russian territory of Napf.

Two years earlier, you were exiled to the island after committing crimes against the Russian Government. Because of this, you were freed by the Americans from state prison after the invasion. The fallout from the war has mutated and irradiated most people beyond recognition... You must attempt to rebuild and restore old world values. Good luck survivor.

  • ZKB1325
    ZKB1325
    Sign in to follow this  

    Shops

    The Shops.sqf file found in "Configs\Shops.sqf" is where you can find everything needed to set up shops.

     

    Near the top of the file you will notice variables like the one below, this is to help organize the items in shops.

    _StationShop =
    	[
    	"Bread",
    	"SiphonFuelKit",
    	"RefuelCan",
    	"RepairKit"
    	];
        
    [Station1Shop, "STR_Shop_Station1Shop", objNull, objNull, _StationShop, _StationShop, true, "true", _StationShop apply {-1}, _StationShop apply {-1}, true, 0],

    You might also notice (_StationShop apply {-1}) This is to quickly set the stock of each item in the shop. What it's doing is for every item in the _StationShop array it's setting it to a -1. So it will end up with [-1,-1,-1,-1]

     

     

    //Array of shops
    ZKB_ShopDefines = 
    [
    [shop_Object, "Shop Name", Box_For_Gear_To_Spawn, GameLogic_For_Vehicles_To_Spawn, [buyables array], [sellables array], CheckForLicense, "allowed to use condition", [array of starting stock], [array of max stock], ExportTo, stockBleedRate]
    ];
    
    shop_Object: The map object for the shop
    "Shop Name": The name of the shop
    Box_For_Gear_To_Spawn: The gear box gear will go into when gear is bought use objNull for no gear box
    GameLogic_For_Vehicles_To_Spawn: The location a bought vehicle will spawn use objNull for no vehicle spawn
    [buyables array]: List of buyable items that are defined in the Item_Config.hpp
    [sellables array]: List of sellable items that are defined in the Item_Config.hpp
    CheckForLicense: True or False if buying an item from the shop requires any licenses
    "allowed to use condition": Condition in order to access shop, should at least be "true"
    [array of starting stock]: Array of numbers defining the starting stock for the shop items, MUST be a number for each item that is in the buy array use -1 for unlimited stock. If there is no items to buy then sell array is used.
    [array of max stock]: Array of numbers defining the max stock an item can have in the shop, MUST be a number for each item that is in the buy array use -1 for unlimited stock. If there is no items to buy then sell array is used.
    ExportTo: True/False If the player is allowed to export items from a factory to the shop
    stockBleedRate: How often in minutes 1 stock is removed from each item in the shop if item has limited stock. 0 = no bleed

     

    Below where you set up the shop data you will find an array of shops that will not be affected by Taxes. This is mainly used for gang and terror shops.

    //Array of shops that wont have tax calculated when buying an item
    ZKB_NonTaxedShops = [GangArea1,GangArea2,GangArea3,TerrorGearShop,TerrorVehicleShop];

     

    At the very bottom of the file is where the markers are created for each shop. There you can add exceptions for markers to not be created for a shop or the marker color.

    //Put shop objects in array to not auto create marker
    if !((_x select 0) in [MainBank,CopShop,CopPatrolShop,CopResponseShop,CopSobrShop,GangArea1,GangArea2,GangArea3,TerrorGearShop,TerrorVehicleShop]) then
    //Red marker color
    if ((_x select 0) in [CocaineShop,MarijuanaShop,LSDShop,HeroinShop]) then

     


    Sign in to follow this  


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    You are commenting as a guest. If you have an account, please sign in.
    Add a comment...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


Our Logo

Welcome to the International Gamers Federation! We are a growing community of gamers coming together from all over the globe. Founded in 2018, IGF Gaming prides itself on openness, transparency, providing an unparalleled experience, and most importantly, putting our players first.

×