1. Dashboard
  2. Forum
    1. Unerledigte Themen
  3. Downloads
  4. Galerie
    1. Alben
  5. Toolbox
    1. Passwort Generator
    2. Portchecker
  6. Mitglieder
    1. Mitgliedersuche
    2. Benutzer online
    3. Trophäen
    4. Team
Fr: 23 Mai 2025
  • Anmelden oder registrieren
  • Suche
Dieses Thema
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Forum
  • Dateien
  • Seiten
  • Bilder
  • Erweiterte Suche

Schön, dass du den Weg zu NodeZone.net gefunden hast! Aktuell bist du nicht angemeldet und kannst deshalb nur eingeschränkt auf unsere Community zugreifen. Um alle Funktionen freizuschalten, spannende Inhalte zu entdecken und dich aktiv einzubringen, registriere dich jetzt kostenlos oder melde dich mit deinem Account an.

Anmelden oder registrieren
    1. Nodezone.net Community
    2. Forum
    3. Gameserver & Hosting
    4. ArmA Series - ArmA 3 / Reforger
    5. Hilfeforum

    Accessory Store Not Working

      • Altis Life
    • Frenzy
    • 10. Mai 2021 um 00:29
    • Erledigt
    • Frenzy
      Schüler
      Reaktionen
      1
      Trophäen
      5
      Beiträge
      124
      • 10. Mai 2021 um 00:29
      • #1

      Hello,

      I had to add all attachments to my weapon shop itself because the accessories tab stopped working. Also, when someone dies and gets revived all the attachments get deleted. I studied these two scripts but could not find the problem.

      Code
      #include "..\..\script_macros.hpp"
      /*
          File: fn_weaponShopAccs.sqf
          Author: Daniel Stuart
      
          Description:
          Set Weapon Shop in accessories mode
      */
      disableSerialization;
      
      if ((uiNamespace getVariable ["Weapon_Accessories",0]) isEqualTo 0) then {
          private ["_weapon","_slotArray","_weaponArray"];
          _weapon = lbData[38403,lbCurSel (38403)];
          _slotArray = [];
          _weaponArray = [];
      
          if (isArray (configFile >> "CfgWeapons" >> _weapon >> "WeaponSlotsInfo" >> "CowsSlot" >> "compatibleItems")) then {
              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_weapon,"WeaponSlotsInfo","CowsSlot","compatibleItems");
              {
                  _weaponArray pushBack _x;
              } forEach _slotArray;
          };
          if (isArray (configFile >> "CfgWeapons" >> _weapon >> "WeaponSlotsInfo" >> "MuzzleSlot" >> "compatibleItems")) then {
              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_weapon,"WeaponSlotsInfo","MuzzleSlot","compatibleItems");
              {
                  _weaponArray pushBack _x;
              } forEach _slotArray;
          };
          if (isArray (configFile >> "CfgWeapons" >> _weapon >> "WeaponSlotsInfo" >> "PointerSlot" >> "compatibleItems")) then {
              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_weapon,"WeaponSlotsInfo","PointerSlot","compatibleItems");
              {
                  _weaponArray pushBack _x;
              } forEach _slotArray;
          };
          if (isArray (configFile >> "CfgWeapons" >> _weapon >> "WeaponSlotsInfo" >> "UnderBarrelSlot" >> "compatibleItems")) then {
              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_weapon,"WeaponSlotsInfo","UnderBarrelSlot","compatibleItems");
              {
                  _weaponArray pushBack _x;
              } forEach _slotArray;
          };
          uiNamespace setVariable ["Accessories_Array",_weaponArray];
          uiNamespace setVariable ["Weapon_Accessories",1];
      } else {
          uiNamespace setVariable ["Weapon_Accessories",0];
      };
      Alles anzeigen
      Code
      #include "..\..\script_macros.hpp"
      /*
          File: fn_weaponShopSelection.sqf
          Author: Bryan "Tonic" Boardwine
      
          Description:
          Checks the weapon & adds the price tag.
      */
      private ["_control","_index","_shop","_priceTag","_price","_item","_itemArray","_bool"];
      _control = [_this,0,controlNull,[controlNull]] call BIS_fnc_param;
      _index = [_this,1,-1,[0]] call BIS_fnc_param;
      _shop = uiNamespace getVariable ["Weapon_Shop",""];
      if (isNull _control) exitWith {closeDialog 0;}; //Bad data
      if (_index isEqualTo -1) exitWith {}; //Nothing selected
      
      _priceTag = CONTROL(38400,38404);
      
      if ((uiNamespace getVariable ["Weapon_Shop_Filter",0]) isEqualTo 1) then {
          _item = CONTROL_DATAI(_control,_index);
          _itemArray = M_CONFIG(getArray,"WeaponShops",_shop,"items");
          _item = [_item,_itemArray] call TON_fnc_index;
          _price = ((_itemArray select _item) select 3);
          _priceTag ctrlSetStructuredText parseText format ["<t size='0.8'>Price: <t color='#8cff9b'>$%1</t></t>",[(_price)] call life_fnc_numberText];
          _control lbSetValue[_index,_price];
      } else {
          _price = _control lbValue _index;
          _item = CONTROL_DATAI(_control,_index);
          if (_price > CASH) then {
              _priceTag ctrlSetStructuredText parseText format ["<t size='0.8'>Price: <t color='#ff0000'>$%1</t><br/>You lack: <t color='#8cff9b'>$%2</t></t>",[(_price)] call life_fnc_numberText,[(_price - CASH)] call life_fnc_numberText];
          } else {
              _priceTag ctrlSetStructuredText parseText format ["<t size='0.8'>Price: <t color='#8cff9b'>$%1</t></t>",[(_price)] call life_fnc_numberText];
          };
          if ((uiNamespace getVariable ["Weapon_Magazine",0]) isEqualTo 0 && (uiNamespace getVariable ["Weapon_Accessories",0]) isEqualTo 0) then {
                  if (isClass (configFile >> "CfgWeapons" >> _item)) then {
                      //Magazines menu
                      if (isArray (configFile >> "CfgWeapons" >> _item >> "magazines")) then {
                          _itemArray = FETCH_CONFIG2(getArray,"CfgWeapons",_item,"magazines");
                          _bool = false;
                          {
                              _var = _x select 0;
                              _count = {_x == _var} count _itemArray;
                              if (_count > 0) exitWith {_bool = true};
                          } forEach M_CONFIG(getArray,"WeaponShops",_shop,"mags");
                          if (_bool) then {
                              ((findDisplay 38400) displayCtrl 38406) ctrlEnable true;
                          } else {
                              ((findDisplay 38400) displayCtrl 38406) ctrlEnable false;
                          };
                      } else {
                          ((findDisplay 38400) displayCtrl 38406) ctrlEnable false;
                      };
      
                      //Accessories Menu
                      if (isClass (configFile >> "CfgWeapons" >> _item >> "WeaponSlotsInfo")) then {
                          private ["_slotArray"];
                          _itemArray = [];
                          if (isArray (configFile >> "CfgWeapons" >> _item >> "WeaponSlotsInfo" >> "CowsSlot" >> "compatibleItems")) then {
                              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_item,"WeaponSlotsInfo","CowsSlot","compatibleItems");
                              {
                                  _itemArray pushBack _x;
                              } forEach _slotArray;
                          };
                          if (isArray (configFile >> "CfgWeapons" >> _item >> "WeaponSlotsInfo" >> "MuzzleSlot" >> "compatibleItems")) then {
                              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_item,"WeaponSlotsInfo","MuzzleSlot","compatibleItems");
                              {
                                  _itemArray pushBack _x;
                              } forEach _slotArray;
                          };
                          if (isArray (configFile >> "CfgWeapons" >> _item >> "WeaponSlotsInfo" >> "PointerSlot" >> "compatibleItems")) then {
                              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_item,"WeaponSlotsInfo","PointerSlot","compatibleItems");
                              {
                                  _itemArray pushBack _x;
                              } forEach _slotArray;
                          };
                          if (isArray (configFile >> "CfgWeapons" >> _item >> "WeaponSlotsInfo" >> "UnderBarrelSlot" >> "compatibleItems")) then {
                              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_item,"WeaponSlotsInfo","UnderBarrelSlot","compatibleItems");
                              {
                                  _itemArray pushBack _x;
                              } forEach _slotArray;
                          };
      
                          _bool = false;
                          {
                              _var = _x select 0;
                              _count = {_x == _var} count _itemArray;
                              if (_count > 0) exitWith {_bool = true};
                          } forEach M_CONFIG(getArray,"WeaponShops",_shop,"accs");
                          if (_bool) then {
                              ((findDisplay 38400) displayCtrl 38407) ctrlEnable true;
                          } else {
                              ((findDisplay 38400) displayCtrl 38407) ctrlEnable false;
                          };
                      } else {
                          ((findDisplay 38400) displayCtrl 38407) ctrlEnable false;
                      };
                  } else {
                  ((findDisplay 38400) displayCtrl 38406) ctrlEnable false;
                  ((findDisplay 38400) displayCtrl 38407) ctrlEnable false;
              };
          };
      };
      Alles anzeigen

      Bilder

      • ddd.jpg
        • 88,94 kB
        • 370 × 769
        • 259
    • badidas
      Anfänger
      Reaktionen
      21
      Trophäen
      7
      Beiträge
      80
      • 10. Mai 2021 um 10:39
      • #2

      what version of A3L do you use? the fn_weaponShopAccs.sqf is different on the default 5.0.0 framework. (As seen here)

      also, send your weapons config (config_weapons.hpp)

      9402615135.png

    • TaktischerSpeck
      Profi
      Reaktionen
      292
      Trophäen
      9
      Beiträge
      1.211
      Dateien
      6
      Bilder
      35
      • 10. Mai 2021 um 11:02
      • #3
      Zitat von Frenzy

      Also, when someone dies and gets revived all the attachments get deleted. I studied these two scripts but could not find the problem.

      https://github.com/AsYetUntitled/…Killed.sqf#L116

      https://github.com/AsYetUntitled/…tchDeadGear.sqf

      should be saved, maybe you have an old version of the framework?

      Mit freundlichen Grüßen

      TaktischerSpeck - Vincent

      2945262602.gif

      Leidenschaftlicher Analphabet mit leichtem Drang zum Sabbern.

      2945262602.gif
      Welcome to Arma, a game where Physics don't give a f*ck.

      2945262602.gif
      If (ArmA == Bullshit) exitWith {[] call f*uckThisShit};

      2945262602.gif

      Kontaktmöglichkeiten

      Twitch

      Youtube

      Steam

      TLG (Einfach nur TLG ins IP Feld (trust me its gonna work))

      --alternativ--

      Ts.TheLastGamer.de

      Website

      Forum

      E-Mail: [email protected]

      Twitch

      Youtube

      Steam

      TLG (Einfach nur TLG ins IP Feld (trust me its gonna work))

      --alternativ--

      Ts.TheLastGamer.de

      Website

      Forum

      E-Mail: [email protected]

    • Frenzy
      Schüler
      Reaktionen
      1
      Trophäen
      5
      Beiträge
      124
      • 10. Mai 2021 um 11:27
      • #4
      Zitat von badidas

      what version of A3L do you use? the fn_weaponShopAccs.sqf is different on the default 5.0.0 framework. (As seen here)

      also, send your weapons config (config_weapons.hpp)

      fn_weaponShopSelection.sqf < line 83

      _itemArray = [_item] call BIS_fnc_compatibleItems;

      İ have added this code and the accesory section is working. Also, some weapons not work in the magazine.

      Code
      #include "..\..\script_macros.hpp"
      /*
          File: fn_weaponShopSelection.sqf
          Author: Bryan "Tonic" Boardwine
      
          Description:
          Checks the weapon & adds the price tag.
      */
      private ["_control","_index","_shop","_priceTag","_price","_item","_itemArray","_bool"];
      _control = [_this,0,controlNull,[controlNull]] call BIS_fnc_param;
      _index = [_this,1,-1,[0]] call BIS_fnc_param;
      _shop = uiNamespace getVariable ["Weapon_Shop",""];
      if (isNull _control) exitWith {closeDialog 0;}; //Bad data
      if (_index isEqualTo -1) exitWith {}; //Nothing selected
      
      _priceTag = CONTROL(38400,38404);
      
      if ((uiNamespace getVariable ["Weapon_Shop_Filter",0]) isEqualTo 1) then {
          _item = CONTROL_DATAI(_control,_index);
          _itemArray = M_CONFIG(getArray,"WeaponShops",_shop,"items");
          _itemArray append M_CONFIG(getArray,"WeaponShops",_shop,"mags");
          _itemArray append M_CONFIG(getArray,"WeaponShops",_shop,"accs");
          _item = [_item,_itemArray] call TON_fnc_index;
          _price = ((_itemArray select _item) select 3);
          _priceTag ctrlSetStructuredText parseText format ["<t size='0.8'>Price: <t color='#8cff9b'>$%1</t></t>",[(_price)] call life_fnc_numberText];
          _control lbSetValue[_index,_price];
      } else {
          _price = _control lbValue _index;
          _item = CONTROL_DATAI(_control,_index);
          if (_price > CASH) then {
              _priceTag ctrlSetStructuredText parseText format ["<t size='0.8'>Price: <t color='#ff0000'>$%1</t><br/>You lack: <t color='#8cff9b'>$%2</t></t>",[(_price)] call life_fnc_numberText,[(_price - CASH)] call life_fnc_numberText];
          } else {
              _priceTag ctrlSetStructuredText parseText format ["<t size='0.8'>Price: <t color='#8cff9b'>$%1</t></t>",[(_price)] call life_fnc_numberText];
          };
          if ((uiNamespace getVariable ["Weapon_Magazine",0]) isEqualTo 0 && (uiNamespace getVariable ["Weapon_Accessories",0]) isEqualTo 0) then {
                  if (isClass (configFile >> "CfgWeapons" >> _item)) then {
                      //Magazines menu
                      if (isArray (configFile >> "CfgWeapons" >> _item >> "magazines")) then {
                          _itemArray = FETCH_CONFIG2(getArray,"CfgWeapons",_item,"magazines");
                          _bool = false;
                          {
                              _var = _x select 0;
                              _count = {_x == _var} count _itemArray;
                              if (_count > 0) exitWith {_bool = true};
                          } forEach M_CONFIG(getArray,"WeaponShops",_shop,"mags");
                          if (_bool) then {
                              ((findDisplay 38400) displayCtrl 38406) ctrlEnable true;
                          } else {
                              ((findDisplay 38400) displayCtrl 38406) ctrlEnable false;
                          };
                      } else {
                          ((findDisplay 38400) displayCtrl 38406) ctrlEnable false;
                      };
      
                      //Accessories Menu
                      if (isClass (configFile >> "CfgWeapons" >> _item >> "WeaponSlotsInfo")) then {
                          private ["_slotArray"];
                          _itemArray = [];
                          if (isArray (configFile >> "CfgWeapons" >> _item >> "WeaponSlotsInfo" >> "CowsSlot" >> "compatibleItems")) then {
                              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_item,"WeaponSlotsInfo","CowsSlot","compatibleItems");
                              {
                                  _itemArray pushBack _x;
                              } forEach _slotArray;
                          };
                          if (isArray (configFile >> "CfgWeapons" >> _item >> "WeaponSlotsInfo" >> "MuzzleSlot" >> "compatibleItems")) then {
                              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_item,"WeaponSlotsInfo","MuzzleSlot","compatibleItems");
                              {
                                  _itemArray pushBack _x;
                              } forEach _slotArray;
                          };
                          if (isArray (configFile >> "CfgWeapons" >> _item >> "WeaponSlotsInfo" >> "PointerSlot" >> "compatibleItems")) then {
                              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_item,"WeaponSlotsInfo","PointerSlot","compatibleItems");
                              {
                                  _itemArray pushBack _x;
                              } forEach _slotArray;
                          };
                          if (isArray (configFile >> "CfgWeapons" >> _item >> "WeaponSlotsInfo" >> "UnderBarrelSlot" >> "compatibleItems")) then {
                              _slotArray = FETCH_CONFIG3(getArray,"CfgWeapons",_item,"WeaponSlotsInfo","UnderBarrelSlot","compatibleItems");
                              {
                                  _itemArray pushBack _x;
                              } forEach _slotArray;
                          };
                          _itemArray = [_item] call BIS_fnc_compatibleItems;
      
                          _bool = false;
                          {
                              _var = _x select 0;
                              _count = {_x == _var} count _itemArray;
                              if (_count > 0) exitWith {_bool = true};
                          } forEach M_CONFIG(getArray,"WeaponShops",_shop,"accs");
                          if (_bool) then {
                              ((findDisplay 38400) displayCtrl 38407) ctrlEnable true;
                          } else {
                              ((findDisplay 38400) displayCtrl 38407) ctrlEnable false;
                          };
                      } else {
                          ((findDisplay 38400) displayCtrl 38407) ctrlEnable false;
                      };
                  } else {
                  ((findDisplay 38400) displayCtrl 38406) ctrlEnable false;
                  ((findDisplay 38400) displayCtrl 38407) ctrlEnable false;
              };
          };
      };
      Alles anzeigen
      Code
      #include "..\..\script_macros.hpp"
      /*
          File: fn_weaponShopAccs.sqf
          Author: Daniel Stuart
      
          Description:
          Set Weapon Shop in accessories mode
      */
      disableSerialization;
      
      if ((uiNamespace getVariable ["Weapon_Accessories", 0]) isEqualTo 0) then {
          private _weapon = lbData [38403, lbCurSel (38403)];
          private _compatibleItems = _weapon call BIS_fnc_compatibleItems; //Fetch all compatible Items for the weapons.
          uiNamespace setVariable ["Accessories_Array", _compatibleItems];
          uiNamespace setVariable ["Weapon_Accessories", 1];
      } else {
          uiNamespace setVariable ["Weapon_Accessories", 0];
      };
      Alles anzeigen
      Code
      /*
      *    FORMAT:
      *        STRING (Conditions) - Must return boolean :
      *            String can contain any amount of conditions, aslong as the entire
      *            string returns a boolean. This allows you to check any levels, licenses etc,
      *            in any combination. For example:
      *                "call life_coplevel && license_civ_someLicense"
      *            This will also let you call any other function.
      *            
      *
      *    ARRAY FORMAT:
      *        0: STRING (Classname): Item Classname
      *        1: STRING (Nickname): Nickname that will appear purely in the shop dialog
      *        2: SCALAR (Buy price)
      *        3: SCALAR (Sell price): To disable selling, this should be -1
      *        4: STRING (Conditions): Same as above conditions string
      *
      *    Weapon classnames can be found here: https://community.bistudio.com/wiki/Arma_3_CfgWeapons_Weapons
      *    Item classnames can be found here: https://community.bistudio.com/wiki/Arma_3_CfgWeapons_Items
      *
      */
      class WeaponShops {
          //Armory Shops
          class gun {
              name = "Billy Joe's Firearms";
              side = "civ";
              conditions = "license_civ_gun";
              items[] = {
                  { "hgun_Rook40_F", "", 6500, 3250, "" },
                  { "hgun_Pistol_01_F", "", 7000, 3500, "" }, //Apex DLC
                  { "hgun_Pistol_heavy_02_F", "", 9850, 4925, "" },
                  { "hgun_ACPC2_F", "", 11500, 5750, "" },
                  { "SMG_05_F", "", 18000, 9000, "" }, //Apex DLC
                  { "hgun_PDW2000_F", "", 20000, 10000, "" }
              };
              mags[] = {
                  { "16Rnd_9x21_Mag", "", 125, 60, "" },
                  { "6Rnd_45ACP_Cylinder", "", 150, 75, "" },
                  { "9Rnd_45ACP_Mag", "", 200, 100, "" },
                  { "30Rnd_9x21_Mag", "", 250, 125, "" },
                  { "30Rnd_9x21_Mag_SMG_02", "", 250, 125, "" }, //Apex DLC
                  { "10Rnd_9x21_Mag", "", 250, 125, "" } //Apex DLC
              };
              accs[] = {
                  { "optic_ACO_grn_smg", "", 2500, 1250, "" }
              };
          };
      
          class rebel {
              name = "Mohammed's Jihadi Shop";
              side = "civ";
              conditions = "license_civ_rebel";
              items[] = {
                  { "arifle_TRG20_F", "", 25000, 12500, "" },
                  { "arifle_Katiba_F", "", 30000, 15000, "" },
                  { "srifle_DMR_01_F", "", 50000, 25000, "" },
                  { "arifle_SDAR_F", "", 20000, 10000, "" },
                  { "arifle_AK12_F", "", 22000, 11000, "" }, //Apex DLC
                  { "arifle_AKS_F", "", 22000, 11000, "" }, //Apex DLC
                  { "arifle_AKM_F", "", 22000, 11000, "" }, //Apex DLC
                  { "arifle_ARX_blk_F", "", 22000, 11000, "" }, //Apex DLC
                  { "arifle_SPAR_01_blk_F", "", 33000, 16500, "" }, //Apex DLC
                  { "arifle_CTAR_blk_F", "", 30000, 15000, "" } //Apex DLC
              };
              mags[] = {
                  { "30Rnd_556x45_Stanag", "", 300, 150, "" },
                  { "30Rnd_762x39_Mag_F", "", 300, 150, "" }, //Apex DLC
                  { "30Rnd_545x39_Mag_F", "", 300, 150, "" }, //Apex DLC
                  { "30Rnd_65x39_caseless_green", "", 275, 140, "" },
                  { "10Rnd_762x54_Mag", "", 500, 250, "" },
                  { "20Rnd_556x45_UW_mag", "", 125, 60, "" },
                  { "30Rnd_580x42_Mag_F", "", 125, 60, "" } //Apex DLC
              };
              accs[] = {
                  { "optic_ACO_grn", "", 3500, 1750, "" },
                  { "optic_Holosight", "", 3600, 1800, "" },
                  { "optic_Hamr", "", 7500, 3750, "" },
                  { "acc_flashlight", "", 1000, 500, "" }
              };
          };
      
          class gang {
              name = "Hideout Armament";
              side = "civ";
              conditions = "";
              items[] = {
                  { "hgun_Rook40_F", "", 1500, 750, "" },
                  { "hgun_Pistol_heavy_02_F", "", 2500, 1250, "" },
                  { "hgun_ACPC2_F", "", 4500, 2250, "" },
                  { "hgun_PDW2000_F", "", 9500, 4750, "" }
              };
              mags[] = {
                  { "16Rnd_9x21_Mag", "", 125, 60, "" },
                  { "6Rnd_45ACP_Cylinder", "", 150, 75, "" },
                  { "9Rnd_45ACP_Mag", "", 200, 100, "" },
                  { "30Rnd_9x21_Mag", "", 250, 125, "" }
              };
              accs[] = {
                  { "optic_ACO_grn_smg", "", 950, 475, "" }
              };
          };
      
          //Basic Shops
          class genstore {
              name = "Altis General Store";
              side = "civ";
              conditions = "";
              items[] = {
                  { "Binocular", "", 150, 75, "" },
                  { "ItemGPS", "", 100, 50, "" },
                  { "ItemMap", "", 50, 25, "" },
                  { "ItemCompass", "", 50, 25, "" },
                  { "ItemWatch", "", 50, 25, "" },
                  { "FirstAidKit", "", 150, 75, "" },
                  { "NVGoggles", "", 2000, 1000, "" },
                  { "Chemlight_red", "", 300, 150, "" },
                  { "Chemlight_yellow", "", 300, 150, "" },
                  { "Chemlight_green", "", 300, 150, "" },
                  { "Chemlight_blue", "", 300, 150, "" }
              };
              mags[] = {};
              accs[] = {};
          };
      
          class f_station_store {
              name = "Altis Fuel Station Store";
              side = "";
              conditions = "";
              items[] = {
                  { "Binocular", "", 750, 75, "" },
                  { "ItemGPS", "", 500, 50, "" },
                  { "ItemMap", "", 250, 25, "" },
                  { "ItemCompass", "", 250, 25, "" },
                  { "ItemWatch", "", 250, 25, "" },
                  { "FirstAidKit", "", 750, 75, "" },
                  { "NVGoggles", "", 10000, 1000, "" },
                  { "Chemlight_red", "", 1500, 150, "" },
                  { "Chemlight_yellow", "", 1500, 150, "" },
                  { "Chemlight_green", "", 1500, 150, "" },
                  { "Chemlight_blue", "", 1500, 150, "" }
              };
              mags[] = {};
              accs[] = {};
          };
      
          //Cop Shops
          class cop_basic {
              name = "Altis Cop Shop";
              side = "cop";
              conditions = "";
              items[] = {
                  { "Binocular", "", 150, 75, "" },
                  { "ItemGPS", "", 100, 50, "" },
                  { "FirstAidKit", "", 150, 75, "" },
                  { "NVGoggles", "", 2000, 1000, "" },
                  { "HandGrenade_Stone", $STR_W_items_Flashbang, 1700, 850, "" },
                  { "hgun_P07_snds_F", $STR_W_items_StunPistol, 2000, 1000, "" },
                  { "arifle_SDAR_F", $STR_W_items_TaserRifle, 20000, 10000, "" },
                  { "hgun_P07_F", "", 7500, 3750, "" },
                  { "hgun_P07_khk_F", "", 7500, 3750, "" }, //Apex DLC
                  { "hgun_Pistol_heavy_01_F", "", 9500, 4750, "call life_coplevel >= 1" },
                  { "SMG_02_ACO_F", "", 30000, 15000, "call life_coplevel >= 2" },
                  { "arifle_MX_F", "", 35000, 17500, "call life_coplevel >= 2" },
                  { "hgun_ACPC2_F", "", 17500, 8750, "call life_coplevel >= 3" },
                  { "arifle_MXC_F", "", 30000, 15000, "call life_coplevel >= 3" },
                  { "srifle_DMR_07_blk_F", "", 32000, 16000, "call life_coplevel >= 3" } //Apex DLC Sniper
              };
              mags[] = {
                  { "16Rnd_9x21_Mag", "", 125, 60, "" },
                  { "20Rnd_556x45_UW_mag", $STR_W_mags_TaserRifle, 125, 60, "" },
                  { "11Rnd_45ACP_Mag", "", 130, 65, "call life_coplevel >= 1" },
                  { "30Rnd_65x39_caseless_mag", "", 130, 65, "call life_coplevel >= 2" },
                  { "30Rnd_9x21_Mag", "", 250, 125, "call life_coplevel >= 2" },
                  { "9Rnd_45ACP_Mag", "", 200, 100, "call life_coplevel >= 3" },
                  { "20Rnd_650x39_Cased_Mag_F", "", 200, 100, "call life_coplevel >= 3" } //Apex DLC
              };
              accs[] = {
                  { "muzzle_snds_L", "", 650, 325, "" },
                  { "optic_MRD", "", 2750, 1375, "call life_coplevel >= 1" },
                  { "acc_flashlight", "", 750, 375, "call life_coplevel >= 2" },
                  { "optic_Holosight", "", 1200, 600, "call life_coplevel >= 2" },
                  { "optic_Arco", "", 2500, 1250, "call life_coplevel >= 2" },
                  { "muzzle_snds_H", "", 2750, 1375, "call life_coplevel >= 2" }
              };
          };
      
          //Medic Shops
          class med_basic {
              name = "store";
              side = "med";
              conditions = "";
              items[] = {
                  { "ItemGPS", "", 100, 50, "" },
                  { "Binocular", "", 150, 75, "" },
                  { "FirstAidKit", "", 150, 75, "" },
                  { "NVGoggles", "", 1200, 600, "" }
              };
              mags[] = {};
              accs[] = {};
          };
      };
      Alles anzeigen

      The magazines and accessories of some weapons are still not working.

      config_weapons.hpp

      Code
      /*
      *    FORMAT:
      *        STRING (Conditions) - Must return boolean :
      *            String can contain any amount of conditions, aslong as the entire
      *            string returns a boolean. This allows you to check any levels, licenses etc,
      *            in any combination. For example:
      *                "call life_coplevel && license_civ_someLicense"
      *            This will also let you call any other function.
      *            
      *
      *    ARRAY FORMAT:
      *        0: STRING (Classname): Item Classname
      *        1: STRING (Nickname): Nickname that will appear purely in the shop dialog
      *        2: SCALAR (Buy price)
      *        3: SCALAR (Sell price): To disable selling, this should be -1
      *        4: STRING (Conditions): Same as above conditions string
      *
      *    Weapon classnames can be found here: https://community.bistudio.com/wiki/Arma_3_CfgWeapons_Weapons
      *    Item classnames can be found here: https://community.bistudio.com/wiki/Arma_3_CfgWeapons_Items
      *
      */
      class WeaponShops {
          //Armory Shops
          class gun {
              name = "Billy Joe's Firearms";
              side = "civ";
              conditions = "license_civ_gun";
              items[] = {
                  { "hgun_Rook40_F", "", 6500, 3250, "" },
                  { "hgun_Pistol_01_F", "", 7000, 3500, "" }, //Apex DLC
                  { "hgun_Pistol_heavy_02_F", "", 9850, 4925, "" },
                  { "hgun_ACPC2_F", "", 11500, 5750, "" },
                  { "SMG_05_F", "", 18000, 9000, "" }, //Apex DLC
                  { "hgun_PDW2000_F", "", 20000, 10000, "" }
              };
              mags[] = {
                  { "16Rnd_9x21_Mag", "", 125, 60, "" },
                  { "6Rnd_45ACP_Cylinder", "", 150, 75, "" },
                  { "9Rnd_45ACP_Mag", "", 200, 100, "" },
                  { "30Rnd_9x21_Mag", "", 250, 125, "" },
                  { "30Rnd_9x21_Mag_SMG_02", "", 250, 125, "" }, //Apex DLC
                  { "10Rnd_9x21_Mag", "", 250, 125, "" } //Apex DLC
              };
              accs[] = {
                  { "optic_ACO_grn_smg", "", 2500, 1250, "" }
              };
          };
      
          class rebel {
              name = "Mohammed's Jihadi Shop";
              side = "civ";
              conditions = "license_civ_rebel";
              items[] = {
                  { "arifle_TRG20_F", "", 25000, 12500, "" },
                  { "arifle_Katiba_F", "", 30000, 15000, "" },
                  { "srifle_DMR_01_F", "", 50000, 25000, "" },
                  { "arifle_SDAR_F", "", 20000, 10000, "" },
                  { "arifle_AK12_F", "", 22000, 11000, "" }, //Apex DLC
                  { "arifle_AKS_F", "", 22000, 11000, "" }, //Apex DLC
                  { "arifle_AKM_F", "", 22000, 11000, "" }, //Apex DLC
                  { "arifle_ARX_blk_F", "", 22000, 11000, "" }, //Apex DLC
                  { "arifle_SPAR_01_blk_F", "", 33000, 16500, "" }, //Apex DLC
                  { "arifle_CTAR_blk_F", "", 30000, 15000, "" } //Apex DLC
              };
              mags[] = {
                  { "30Rnd_556x45_Stanag", "", 300, 150, "" },
                  { "30Rnd_762x39_Mag_F", "", 300, 150, "" }, //Apex DLC
                  { "30Rnd_545x39_Mag_F", "", 300, 150, "" }, //Apex DLC
                  { "30Rnd_65x39_caseless_green", "", 275, 140, "" },
                  { "10Rnd_762x54_Mag", "", 500, 250, "" },
                  { "20Rnd_556x45_UW_mag", "", 125, 60, "" },
                  { "30Rnd_580x42_Mag_F", "", 125, 60, "" } //Apex DLC
              };
              accs[] = {
                  { "optic_ACO_grn", "", 3500, 1750, "" },
                  { "optic_Holosight", "", 3600, 1800, "" },
                  { "optic_Hamr", "", 7500, 3750, "" },
                  { "acc_flashlight", "", 1000, 500, "" }
              };
          };
      
          class gang {
              name = "Hideout Armament";
              side = "civ";
              conditions = "";
              items[] = {
                  { "hgun_Rook40_F", "", 1500, 750, "" },
                  { "hgun_Pistol_heavy_02_F", "", 2500, 1250, "" },
                  { "hgun_ACPC2_F", "", 4500, 2250, "" },
                  { "hgun_PDW2000_F", "", 9500, 4750, "" }
              };
              mags[] = {
                  { "16Rnd_9x21_Mag", "", 125, 60, "" },
                  { "6Rnd_45ACP_Cylinder", "", 150, 75, "" },
                  { "9Rnd_45ACP_Mag", "", 200, 100, "" },
                  { "30Rnd_9x21_Mag", "", 250, 125, "" }
              };
              accs[] = {
                  { "optic_ACO_grn_smg", "", 950, 475, "" }
              };
          };
      
          //Basic Shops
          class genstore {
              name = "Altis General Store";
              side = "civ";
              conditions = "";
              items[] = {
                  { "Binocular", "", 150, 75, "" },
                  { "ItemGPS", "", 100, 50, "" },
                  { "ItemMap", "", 50, 25, "" },
                  { "ItemCompass", "", 50, 25, "" },
                  { "ItemWatch", "", 50, 25, "" },
                  { "FirstAidKit", "", 150, 75, "" },
                  { "NVGoggles", "", 2000, 1000, "" },
                  { "Chemlight_red", "", 300, 150, "" },
                  { "Chemlight_yellow", "", 300, 150, "" },
                  { "Chemlight_green", "", 300, 150, "" },
                  { "Chemlight_blue", "", 300, 150, "" }
              };
              mags[] = {};
              accs[] = {};
          };
      
          class f_station_store {
              name = "Altis Fuel Station Store";
              side = "";
              conditions = "";
              items[] = {
                  { "Binocular", "", 750, 75, "" },
                  { "ItemGPS", "", 500, 50, "" },
                  { "ItemMap", "", 250, 25, "" },
                  { "ItemCompass", "", 250, 25, "" },
                  { "ItemWatch", "", 250, 25, "" },
                  { "FirstAidKit", "", 750, 75, "" },
                  { "NVGoggles", "", 10000, 1000, "" },
                  { "Chemlight_red", "", 1500, 150, "" },
                  { "Chemlight_yellow", "", 1500, 150, "" },
                  { "Chemlight_green", "", 1500, 150, "" },
                  { "Chemlight_blue", "", 1500, 150, "" }
              };
              mags[] = {};
              accs[] = {};
          };
      
          //Cop Shops
          class cop_basic {
              name = "Altis Cop Shop";
              side = "cop";
              conditions = "";
              items[] = {
                  { "Binocular", "", 150, 75, "" },
                  { "ItemGPS", "", 100, 50, "" },
                  { "FirstAidKit", "", 150, 75, "" },
                  { "NVGoggles", "", 2000, 1000, "" },
                  { "HandGrenade_Stone", $STR_W_items_Flashbang, 1700, 850, "" },
                  { "hgun_P07_snds_F", $STR_W_items_StunPistol, 2000, 1000, "" },
                  { "arifle_SDAR_F", $STR_W_items_TaserRifle, 20000, 10000, "" },
                  { "hgun_P07_F", "", 7500, 3750, "" },
                  { "hgun_P07_khk_F", "", 7500, 3750, "" }, //Apex DLC
                  { "hgun_Pistol_heavy_01_F", "", 9500, 4750, "call life_coplevel >= 1" },
                  { "SMG_02_ACO_F", "", 30000, 15000, "call life_coplevel >= 2" },
                  { "arifle_MX_F", "", 35000, 17500, "call life_coplevel >= 2" },
                  { "hgun_ACPC2_F", "", 17500, 8750, "call life_coplevel >= 3" },
                  { "arifle_MXC_F", "", 30000, 15000, "call life_coplevel >= 3" },
                  { "srifle_DMR_07_blk_F", "", 32000, 16000, "call life_coplevel >= 3" } //Apex DLC Sniper
              };
              mags[] = {
                  { "16Rnd_9x21_Mag", "", 125, 60, "" },
                  { "20Rnd_556x45_UW_mag", $STR_W_mags_TaserRifle, 125, 60, "" },
                  { "11Rnd_45ACP_Mag", "", 130, 65, "call life_coplevel >= 1" },
                  { "30Rnd_65x39_caseless_mag", "", 130, 65, "call life_coplevel >= 2" },
                  { "30Rnd_9x21_Mag", "", 250, 125, "call life_coplevel >= 2" },
                  { "9Rnd_45ACP_Mag", "", 200, 100, "call life_coplevel >= 3" },
                  { "20Rnd_650x39_Cased_Mag_F", "", 200, 100, "call life_coplevel >= 3" } //Apex DLC
              };
              accs[] = {
                  { "muzzle_snds_L", "", 650, 325, "" },
                  { "optic_MRD", "", 2750, 1375, "call life_coplevel >= 1" },
                  { "acc_flashlight", "", 750, 375, "call life_coplevel >= 2" },
                  { "optic_Holosight", "", 1200, 600, "call life_coplevel >= 2" },
                  { "optic_Arco", "", 2500, 1250, "call life_coplevel >= 2" },
                  { "muzzle_snds_H", "", 2750, 1375, "call life_coplevel >= 2" }
              };
          };
      
          //Medic Shops
          class med_basic {
              name = "store";
              side = "med";
              conditions = "";
              items[] = {
                  { "ItemGPS", "", 100, 50, "" },
                  { "Binocular", "", 150, 75, "" },
                  { "FirstAidKit", "", 150, 75, "" },
                  { "NVGoggles", "", 1200, 600, "" }
              };
              mags[] = {};
              accs[] = {};
          };
      };
      Alles anzeigen

      3 Mal editiert, zuletzt von Frenzy (10. Mai 2021 um 23:38)

    • Frenzy
      Schüler
      Reaktionen
      1
      Trophäen
      5
      Beiträge
      124
      • 10. Mai 2021 um 11:29
      • #5
      Zitat von TaktischerSpeck

      https://github.com/AsYetUntitled/…Killed.sqf#L116

      https://github.com/AsYetUntitled/…tchDeadGear.sqf

      should be saved, maybe you have an old version of the framework?

      Where should I edit within these two scripts?

    • Frenzy
      Schüler
      Reaktionen
      1
      Trophäen
      5
      Beiträge
      124
      • 11. Mai 2021 um 14:06
      • #6

      Some guns' magazines and attachments do not work.

    Registrieren oder Einloggen

    Du bist noch kein Mitglied von NodeZone.net? Registriere dich kostenlos und werde Teil einer großartigen Community!

    Registrieren

    Benutzer online in diesem Thema

    • 1 Besucher

    Wichtige Links & Informationen

    Server & Hosting-Ressourcen

      Server Administration & Hosting Basics

      Windows Server Support & Guides

      Linux Server Configuration & Help

      Setting up TeamSpeak 3 & VoIP Servers

      Domains & Web Hosting for Beginners & Professionals

      Cloud Hosting, Docker & Kubernetes Tutorials

    Gameserver & Modding-Ressourcen

      ArmA 3 Tutorials & Script Collection

      Renting & Operating Gameservers

      DayZ Server Management & Help

      FiveM (GTA V) Server & Script Development

      Rust Server Modding & Administration

      Setting up & Optimizing ARK Survival Servers

    NodeZone.net – Deine Community für Gameserver, Server-Hosting & Modding

      NodeZone.net ist dein Forum für Gameserver-Hosting, Rootserver, vServer, Webhosting und Modding. Seit 2015 bietet unsere Community eine zentrale Anlaufstelle für Server-Admins, Gamer und Technikbegeisterte, die sich über Server-Management, Hosting-Lösungen und Spielemodding austauschen möchten.


      Ob Anleitungen für eigene Gameserver, Hilfe bei Root- und vServer-Konfigurationen oder Tipps zu Modding & Scripting – bei uns findest du fundiertes Wissen und praxisnahe Tutorials. Mit einer stetig wachsenden Community findest du hier Antworten auf deine Fragen, Projektpartner und Gleichgesinnte für deine Gaming- und Serverprojekte. Schließe dich NodeZone.net an und werde Teil einer aktiven Community rund um Server-Hosting, Gameserver-Management und Modding-Ressourcen.

    Wer jetzt nicht teilt ist selber Schuld:
    1. Nutzungsbestimmungen
    2. Datenschutzerklärung
    3. Impressum
    4. Urheberrechts- oder Lizenzverstoß melden
  • Trimax Design coded & layout by Gino Zantarelli 2023-2025©
    Community-Software: WoltLab Suite™