Apoc's Airdrop Assistance - v1.4 Release

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #165 posted: Jul 19, 2015, 08:46 AM »
hmm what exactly i'm having issues with is that the air drop function is not showing up in the scroll menu

got it working i had an extra " in the main init file  :-[

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #166 posted: Aug 03, 2015, 02:20 PM »
Hi Guys,

im playing around with this.

I want to make an case with diving equipment ....

I've tried some severall Items no success anyone got a hint witch lines of code do i have to add?

Thank you !

Regards
Sven

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #167 posted: Aug 03, 2015, 04:24 PM »
You can add this, or your own edited version, to server/functions/fn_refillbox.sqf. I put two wetsuits for each faction, because I dont know, or if, the code can written to fill the box with the appropriate gear the way the store does.

Code: [Select]

case "Diving_Gear": //diving equipment for squad of 2
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", "arifle_SDAR_F", 2],
["itm", "V_RebreatherB", 2],
["itm", "V_RebreatherIR", 2],
["itm", "V_RebreatherIA", 2],
["itm", "G_Diving", 2],
["itm", "U_B_Wetsuit", 2],
["itm", "U_O_Wetsuit", 2],
["itm", "U_I_Wetsuit", 2],
["itm", ["Chemlight_red", "Chemlight_green", "Chemlight_yellow", "Chemlight_blue"], RANDOM_BETWEEN(6,9)],
["mag", ["SmokeShell", "SmokeShellRed", "SmokeShellyellow", "SmokeShellgreen"], RANDOM_BETWEEN(5,9)]

];
};


and this to the airdrops config.sqf, again with your changes in pricing to fit your server

Code: [Select]
["Diving Gear", "Diving_Gear", 30000, "supply"],

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #168 posted: Aug 03, 2015, 07:36 PM »
You made my day !

Thanks you so munch Timberwolf !

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #169 posted: Aug 03, 2015, 07:57 PM »
doenst work - it only spawns a random crate - any ideas?

Copy exactly this code from you

You can add this, or your own edited version, to server/functions/fn_refillbox.sqf. I put two wetsuits for each faction, because I dont know, or if, the code can written to fill the box with the appropriate gear the way the store does.

Code: [Select]

case "Diving_Gear": //diving equipment for squad of 2
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", "arifle_SDAR_F", 2],
["itm", "V_RebreatherB", 2],
["itm", "V_RebreatherIR", 2],
["itm", "V_RebreatherIA", 2],
["itm", "G_Diving", 2],
["itm", "U_B_Wetsuit", 2],
["itm", "U_O_Wetsuit", 2],
["itm", "U_I_Wetsuit", 2],
["itm", ["Chemlight_red", "Chemlight_green", "Chemlight_yellow", "Chemlight_blue"], RANDOM_BETWEEN(6,9)],
["mag", ["SmokeShell", "SmokeShellRed", "SmokeShellyellow", "SmokeShellgreen"], RANDOM_BETWEEN(5,9)]

];
};


and this to the airdrops config.sqf, again with your changes in pricing to fit your server

Code: [Select]
["Diving Gear", "Diving_Gear", 30000, "supply"],

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #170 posted: Aug 03, 2015, 08:34 PM »
If you added it as the last box, make sure there are 3 closing brackets to close the block. Here is my entire refillbox file. Pay close attention to the brackets and commas.

Code: [Select]
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Version: 1.0
// @file Name: fn_refillbox.sqf  "fn_refillbox"
// @file Author: [404] Pulse , [404] Costlyy , [404] Deadbeat, AgentRev
// @file Created: 22/1/2012 00:00
// @file Args: [OBJECT (Weapons box that needs filling), STRING (Name of the fill to give to object)]

if (!isServer) exitWith {};

#define RANDOM_BETWEEN(START,END) (START + floor random ((END - START) + 1))

private ["_box", "_boxType", "_boxItems", "_item", "_qty", "_mag"];
_box = _this select 0;
_boxType = _this select 1;

_box allowDamage false; // No more fucking busted crates
_box setVariable ["A3W_inventoryLockR3F", true, true];

// Clear pre-existing cargo first
//clearBackpackCargoGlobal _box;
clearMagazineCargoGlobal _box;
clearWeaponCargoGlobal _box;
clearItemCargoGlobal _box;

if (_boxType == "mission_USSpecial2") then { _boxType = "mission_USSpecial" };

switch (_boxType) do
{
case "mission_USLaunchers":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", ["launch_RPG32_F", "launch_NLAW_F", "launch_Titan_short_F"], RANDOM_BETWEEN(3,4), RANDOM_BETWEEN(2,3)],
["wep", "launch_Titan_F", RANDOM_BETWEEN(1,2), RANDOM_BETWEEN(2,4)],
["mag", ["ClaymoreDirectionalMine_Remote_Mag", "SLAMDirectionalMine_Wire_Mag", "ATMine_Range_Mag", "DemoCharge_Remote_Mag", "SatchelCharge_Remote_Mag"], RANDOM_BETWEEN(5,8)]
];
};
    case "airdrop_USLaunchers":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", "launch_RPG32_F",  2],
["wep", "launch_NLAW_F", 2, RANDOM_BETWEEN(2,3)],
["mag", "Titan_AP", 6],
["mag", "Titan_AT", 4],
["mag", "Titan_AA", 4],
["wep", "launch_Titan_F", 2],
["mag", "RPG32_F", 4],
["mag", "RPG32_HE_F", 4],
["wep", "launch_Titan_short_F", 2],
["mag", ["ClaymoreDirectionalMine_Remote_Mag", "SLAMDirectionalMine_Wire_Mag", "ATMine_Range_Mag", "DemoCharge_Remote_Mag", "SatchelCharge_Remote_Mag"], RANDOM_BETWEEN(6,12)]
];
};
case "mission_USSpecial":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
//["itm", "NVGoggles", 5],
["wep", ["Binocular", "Rangefinder","Laserdesignator"], RANDOM_BETWEEN(1,5)],
["itm", "Medikit", RANDOM_BETWEEN(1,3)],
["itm", "Toolkit", RANDOM_BETWEEN(0,1)],
["itm", ["optic_MRCO", "optic_Arco", "optic_Hamr", "optic_SOS", "optic_DMS", "optic_AMS"], RANDOM_BETWEEN(2,3)],
            ["itm", ["optic_AMS", "optic_KHS_hex", "optic_Nightstalker"], RANDOM_BETWEEN(1,3)],
["itm", ["muzzle_snds_M", "muzzle_snds_H", "muzzle_snds_H_MG", "muzzle_snds_B", "muzzle_snds_acp"], RANDOM_BETWEEN(0,3)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(3,5)],
["itm", ["bipod_01_F_blk", "bipod_02_F_hex"], 4],
["wep", ["arifle_MXM_F", "srifle_EBR_F", "srifle_DMR_05_hex_F", "srifle_DMR_05_tan_f", "srifle_DMR_01_DMS_F"], RANDOM_BETWEEN(3,4), RANDOM_BETWEEN(4,6)],
["wep", ["LMG_Mk200_F", "LMG_Zafir_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(2,4)],
["mag", "30Rnd_556x45_Stanag", RANDOM_BETWEEN(4,8)],
["mag", "30Rnd_65x39_caseless_mag", RANDOM_BETWEEN(4,8)],
["mag", "30Rnd_65x39_caseless_green", RANDOM_BETWEEN(4,8)],
["mag", "9Rnd_45ACP_Mag", RANDOM_BETWEEN(1,5)]
];
};
    case "airdrop_USSpecial":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
//["itm", "NVGoggles", 5],
["wep", ["Binocular", "Rangefinder","Laserdesignator"], RANDOM_BETWEEN(1,5)],
["itm", "Medikit", RANDOM_BETWEEN(1,2)],
["itm", "Toolkit", RANDOM_BETWEEN(1,2)],
["itm", ["optic_MRCO", "optic_Arco", "optic_Hamr", "optic_SOS", "optic_DMS"], RANDOM_BETWEEN(3,5)],
            ["itm", ["optic_AMS", "optic_KHS_hex", "optic_Nightstalker"], RANDOM_BETWEEN(0,2)],
["itm", ["muzzle_snds_M", "muzzle_snds_H", "muzzle_snds_H_MG", "muzzle_snds_B", "muzzle_snds_acp"], RANDOM_BETWEEN(2,5)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(3,5)],
["itm", ["bipod_01_F_blk", "bipod_02_F_hex"], 4],
["wep", ["arifle_MXM_F", "arifle_MX_Black_F", "srifle_EBR_F", "srifle_DMR_05_hex_F", "srifle_DMR_05_tan_f", "srifle_DMR_01_DMS_F"], RANDOM_BETWEEN(2,3), RANDOM_BETWEEN(4,6)],
["wep", ["LMG_Mk200_F", "LMG_Zafir_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(2,4)],
["mag", "30Rnd_556x45_Stanag", RANDOM_BETWEEN(2,3)],
["mag", "30Rnd_65x39_caseless_mag", RANDOM_BETWEEN(2,3)],
["mag", "30Rnd_65x39_caseless_green", RANDOM_BETWEEN(2,3)],
["mag", "9Rnd_45ACP_Mag", RANDOM_BETWEEN(1,3)]
];
};
case "mission_Main_A3snipers":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", ["srifle_LRR_SOS_F", "srifle_LRR_camo_SOS_F", "srifle_GM6_SOS_F", "srifle_DMR_02_camo_F", "srifle_GM6_camo_SOS_F"], RANDOM_BETWEEN(2,3), RANDOM_BETWEEN(4,6)],
["wep", ["srifle_EBR_F", "srifle_DMR_01_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(4,6)],
["wep", ["Binocular", "Rangefinder","Laserdesignator"], RANDOM_BETWEEN(1,3)],
["itm", "optic_DMS", RANDOM_BETWEEN(1,2)]
];
};
case "airdrop_DLC_Rifles":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", ["srifle_DMR_03_multicam_F", "srifle_DMR_04_F", "srifle_DMR_02_sniper_F", "srifle_DMR_05_tan_f", "srifle_DMR_04_Tan_F"], RANDOM_BETWEEN(2,3), RANDOM_BETWEEN(5,6)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(4,5)],
["itm", ["V_PlateCarrierIAGL_dgtl", "V_TacVest_camo", "V_PlateCarrierGL_rgr"], RANDOM_BETWEEN(2,4)],
["bac", ["B_Carryall_mcamo", "B_Kitbag_mcamo"], RANDOM_BETWEEN(2,3)],
["itm", ["bipod_01_F_blk", "bipod_02_F_hex"], 4],
["itm", ["optic_DMS","optic_AMS","optic_tws","optic_Nightstalker","optic_KHS_blk", "optic_KHS_blk"], RANDOM_BETWEEN(5,5)],
["itm", ["muzzle_snds_B", "muzzle_snds_338_black", "muzzle_snds_338_sand", "muzzle_snds_93mmg"], RANDOM_BETWEEN(4,5)]
];
};
case "airdrop_DLC_LMGs":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", ["MMG_02_black_F", "MMG_02_camo_F","MMG_02_sand_F","MMG_01_hex_F","MMG_01_tan_F", "LMG_Mk200_F", "LMG_Zafir_F", "arifle_MX_SW_Black_F"], RANDOM_BETWEEN(2,4), RANDOM_BETWEEN(4,6)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(6,7)],
["itm", ["V_PlateCarrierIAGL_dgtl", "V_TacVest_camo", "V_PlateCarrierGL_rgr"], RANDOM_BETWEEN(2,4)],
["bac", ["B_Kitbag_mcamo", "B_Bergen_sgg", "B_FieldPack_khk", "B_Carryall_mcamo"], RANDOM_BETWEEN(3,5)],
["itm", ["bipod_01_F_blk", "bipod_02_F_hex"], 4],
["itm", ["optic_DMS","optic_AMS","optic_tws","optic_KHS_blk"], RANDOM_BETWEEN(3,5)],
            ["itm", ["optic_tws_mg"], RANDOM_BETWEEN(1,2)],
["itm", ["muzzle_snds_338_black", "muzzle_snds_338_sand", "muzzle_snds_93mmg", "muzzle_snds_H_MG"], RANDOM_BETWEEN(3,5)]
];
};
case "airdrop_Snipers":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", ["srifle_LRR_LRPS_F", "srifle_LRR_camo_LRPS_F", "srifle_GM6_LRPS_F", "srifle_GM6_camo_LRPS_F"], RANDOM_BETWEEN(1,2), RANDOM_BETWEEN(4,5)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(3,5)],
["wep", ["srifle_EBR_F", "srifle_DMR_01_F"], RANDOM_BETWEEN(2,3), RANDOM_BETWEEN(6,8)],
["wep", ["Binocular", "Rangefinder","Laserdesignator"], RANDOM_BETWEEN(1,3)],
["itm", ["bipod_01_F_blk", "bipod_02_F_hex"], RANDOM_BETWEEN(3,4)],
["itm", ["V_PlateCarrierIAGL_dgtl", "V_TacVest_camo", "V_PlateCarrierGL_rgr"], RANDOM_BETWEEN(2,4)],
["bac", ["B_Kitbag_mcamo", "B_Bergen_sgg", "B_FieldPack_khk", "B_Carryall_mcamo"], RANDOM_BETWEEN(3,5)],
            ["itm", ["optic_LRPS", "optic_Nightstalker"], RANDOM_BETWEEN(1,2)],
["itm", ["optic_DMS","optic_AMS","optic_tws","optic_KHS_blk"], RANDOM_BETWEEN(5,8)],
["mag", ["SmokeShell", "SmokeShellRed", "SmokeShellyellow", "SmokeShellgreen"], RANDOM_BETWEEN(5,9)]
];
};
case "Diving_Gear": //diving equipment for squad of 2
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", "arifle_SDAR_F", 2],
["itm", "V_RebreatherB", 2],
["itm", "V_RebreatherIR", 2],
["itm", "V_RebreatherIA", 2],
["itm", "G_Diving", 2],
["itm", "U_B_Wetsuit", 2],
["itm", "U_O_Wetsuit", 2],
["itm", "U_I_Wetsuit", 2],
["itm", ["Chemlight_red", "Chemlight_green", "Chemlight_yellow", "Chemlight_blue"], RANDOM_BETWEEN(6,9)],
["mag", ["SmokeShell", "SmokeShellRed", "SmokeShellyellow", "SmokeShellgreen"], RANDOM_BETWEEN(5,9)]
//["bac", ["B_Kitbag_mcamo", "B_Bergen_sgg", "B_FieldPack_khk", "B_Carryall_mcamo"], RANDOM_BETWEEN(3,5)],
];
};
case "General_supplies":
{
_boxitems =
[
//first aid, medkit, tookit, gps, rangefinder, etc
// Item type, Item class(es), # of items, # of magazines per weapon
["itm", "FirstAidKit", RANDOM_BETWEEN(5,6)],
["wep", ["Binocular", "Rangefinder"], RANDOM_BETWEEN(3,5)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(3,5)],
["itm", "Medikit", RANDOM_BETWEEN(2,3)],
["itm", "Toolkit", RANDOM_BETWEEN(2,3)],
["itm", "Laserbatteries", 4],
["itm", "a3w_spawnBeacon", 3],
["itm", "MineDetector", 3],
["bac", ["B_Kitbag_mcamo", "B_Bergen_sgg", "B_FieldPack_khk", "B_Carryall_mcamo"], RANDOM_BETWEEN(3,5)],
["itm", ["V_PlateCarrierIAGL_dgtl", "V_TacVest_camo", "V_PlateCarrierGL_rgr"], RANDOM_BETWEEN(2,4)],
["itm", ["Chemlight_red", "Chemlight_green", "Chemlight_yellow", "Chemlight_blue"], RANDOM_BETWEEN(6,9)],
//["itm", ["V_RebreatherB", "U_B_Wetsuit"], RANDOM_BETWEEN(3,6)],
["mag", ["SmokeShell", "SmokeShellRed", "SmokeShellyellow", "SmokeShellgreen"], RANDOM_BETWEEN(5,9)]
];
};
case "Ammo_Drop":
{
_boxitems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["mag", ["16Rnd_9x21_Mag", "30Rnd_9x21_Mag", "6Rnd_45ACP_Cylinder", "11Rnd_45ACP_Mag", "9Rnd_45ACP_Mag"], RANDOM_BETWEEN(15,20)],
["mag",["30Rnd_45ACP_MAG_SMG_01", "30Rnd_45ACP_Mag_SMG_01_tracer_green"], RANDOM_BETWEEN(10,15)],
["mag",["20Rnd_556x45_UW_mag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag_Tracer_Green"], RANDOM_BETWEEN(10,11)],
["mag",["30Rnd_556x45_Stanag_Tracer_Yellow","30Rnd_556x45_Stanag_Tracer_Red"], RANDOM_BETWEEN(10,11)],
["mag",["30Rnd_65x39_caseless_mag", "30Rnd_65x39_caseless_mag_Tracer"], RANDOM_BETWEEN(10,15)],
["mag",["30Rnd_65x39_caseless_green", "30Rnd_65x39_caseless_green_mag_Tracer"], RANDOM_BETWEEN(10,15)],
["mag",["100Rnd_65x39_caseless_mag", "100Rnd_65x39_caseless_mag_Tracer"], RANDOM_BETWEEN(7,10)],
["mag",["200Rnd_65x39_cased_Box", "200Rnd_65x39_cased_Box_Tracer"], RANDOM_BETWEEN(7,10)],
["mag","10Rnd_762x54_Mag", 10],
["mag","20Rnd_762x51_Mag", 10],
["mag",["150Rnd_762x54_Box","150Rnd_762x54_Box_Tracer"], 10],
["mag","10Rnd_338_Mag", 10],
["mag","130Rnd_338_Mag", 10],
["mag","7Rnd_408_Mag", 10],
["mag","10Rnd_93x64_DMR_05_Mag", 10],
["mag","150Rnd_93x64_Mag", 10],
["mag","10Rnd_127x54_Mag", 10],
["mag",["5Rnd_127x108_Mag","5Rnd_127x108_APDS_Mag"], RANDOM_BETWEEN(10,15)],
["mag",["1Rnd_HE_Grenade_shell","1Rnd_Smoke_Grenade_shell","1Rnd_SmokePurple_Grenade_shell","1Rnd_SmokeBlue_Grenade_shell","1Rnd_SmokeGreen_Grenade_shell","1Rnd_SmokeYellow_Grenade_shell","1Rnd_SmokeOrange_Grenade_shell","1Rnd_SmokeRed_Grenade_shell"], RANDOM_BETWEEN(8,10)],
["mag",["3Rnd_HE_Grenade_shell","3Rnd_Smoke_Grenade_shell","3Rnd_SmokePurple_Grenade_shell","3Rnd_SmokeBlue_Grenade_shell", "3Rnd_SmokeGreen_Grenade_shell", "3Rnd_SmokeYellow_Grenade_shell","3Rnd_SmokeOrange_Grenade_shell","3Rnd_SmokeRed_Grenade_shell"], RANDOM_BETWEEN(8,10)],
["mag",["UGL_FlareWhite_F", "UGL_FlareGreen_F","UGL_FlareYellow_F","UGL_FlareRed_F","UGL_FlareCIR_F", "3Rnd_UGL_FlareWhite_F", "3Rnd_UGL_FlareGreen_F","3Rnd_UGL_FlareYellow_F", "3Rnd_UGL_FlareRed_F","3Rnd_UGL_FlareCIR_F"], RANDOM_BETWEEN(10,15)]

];
};
};

[_box, _boxItems] call processItems;

also here is my entire \addons\APOC_Airdrop_Assistance\config.sqf

Code: [Select]
//Configuration for Airdrop Assistance
//Author: Apoc

APOC_AA_coolDownTime = 900; //Expressed in sec

APOC_AA_VehOptions =
[ // ["Menu Text", ItemClassname, Price, "Drop Type"]
["Quadbike (Civilian)", "C_Quadbike_01_F", 5000, "vehicle"],
["SUV", "C_SUV_01_F", 15000, "vehicle"],
["Hummingbird",  "B_Heli_Light_01_F" , 50000, "vehicle"],
["Pawnee", "B_Heli_Light_01_armed_F", 70000, "vehicle"],
["Orca", "O_Heli_Light_02_F", 80000, "vehicle"],
["Offroad HMG", "B_G_Offroad_01_armed_F", 20000, "vehicle"],
//["Truck (Camo)", "B_G_Van_01_transport_F", 25000, "vehicle"],
["Strider HMG", "I_MRAP_03_F", 40000, "vehicle"],
//["Hunter HMG",    "B_MRAP_01_F", 40000, "vehicle"],
//["Bobcat", "B_APC_Tracked_01_CRV_F", 60000, "vehicle"],
["T-100 Varsuk", "O_MBT_02_cannon_F", 90000, "vehicle"],
["Zodiac", "I_Boat_Transport_01_F", 10000, "vehicle"],
["Assault Boat (HMG)", "O_Boat_Armed_01_hmg_F", 50000, "vehicle"],
//["Rescue Boat",  "C_Boat_Civil_01_rescue_F", 20000, "vehicle"],
["Submersible", "O_SDV_01_F", 45000, "vehicle"]

];

APOC_AA_SupOptions =
[// ["stringItemName", "Crate Type for fn_refillBox ,Price," drop type"]
["General Supplies", "General_supplies", 30000, "supply"],
["Launchers", "airdrop_USLaunchers", 60000, "supply"],
["Assault Rifle", "airdrop_USSpecial", 40000, "supply"],
["Sniper Rifles", "airdrop_Snipers", 60000, "supply"],
["DLC Rifles", "airdrop_DLC_Rifles", 60000, "supply"],
["DLC LMGs", "airdrop_DLC_LMGs", 50000, "supply"],
["Diving Gear", "Diving_Gear", 30000, "supply"],
["Ammo Drop", "Ammo_Drop", 60000, "supply"],

//"Menu Text", "Crate Type", "Cost", "drop type"
["Food", "Land_Sacks_goods_F", 10000, "picnic"],
["Water", "Land_BarrelWater_F", 10000, "picnic"]
];

make sure each lline hase a comma EXCEPT the last one in each section.  The commas tell the server to go to the next line. The lack of a comma on the last line tells the server it is the end of that section.
One missing comma, or a comma on the last line will cause the type of issue you are having, as it will either stop reading too soon, or keep looking for the next line that isnt there...since it doesn't know what to do, it gives you a default box

keep in mind that I am not a coder but this is my understanding of it. I use these files on my server with no issues

aqain, price these boxes according to your server. Our server has high starting $$ so everything in my files is priced higher than normal and is always a WIP

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #171 posted: Aug 05, 2015, 07:17 AM »
Great job on the script!

Here is my issue, everything seems to work.

You select what you wanted dropped, it takes your money, tells you the ETA and which direction it will be flying in from. However it never shows up.

I went on your Github and updated all my code to what you had shown and it still doesn't work. I'm not sure if my Weather settings just made it impossible for it fly to (is that even possible?). I swear it was Hurricane Amber season for a bit. Now that I say that let me turn it back on and try it again.

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #172 posted: Aug 05, 2015, 11:13 AM »
Great job on the script!

Here is my issue, everything seems to work.

You select what you wanted dropped, it takes your money, tells you the ETA and which direction it will be flying in from. However it never shows up.

I went on your Github and updated all my code to what you had shown and it still doesn't work. I'm not sure if my Weather settings just made it impossible for it fly to (is that even possible?). I swear it was Hurricane Amber season for a bit. Now that I say that let me turn it back on and try it again.

No worries, we'll get you sorted right quick.  Please upload your server RPT.  There are log entries that fire when the helo is generated which should tell us what's going on.  Based on previous experience, your AH exceptions are configured improperly.

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #173 posted: Aug 05, 2015, 11:32 AM »
So I confirmed and have been testing things (as I look at the clock and notice 2 hours before work .. where does the sleeping time go)

It does not take money from the bank.
It does check to see if you have the funds.

The whole script works, minus the heli dropping the goods, and it taking money from the bank.

Be home in 11 hours from work.

Thank you!

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #174 posted: Aug 05, 2015, 03:43 PM »
Great job on the script!

Here is my issue, everything seems to work.

You select what you wanted dropped, it takes your money, tells you the ETA and which direction it will be flying in from. However it never shows up.

I went on your Github and updated all my code to what you had shown and it still doesn't work. I'm not sure if my Weather settings just made it impossible for it fly to (is that even possible?). I swear it was Hurricane Amber season for a bit. Now that I say that let me turn it back on and try it again.


 Usually the reason for the missing chopper is the antihack preventing the chopper from spawning. You need to whitelist the Air Drop addon by adding ""APOC_srv_" to your server/antihack/filterExecAttempt.sqf file.

You will see a small group of whitelisted functions...add it to this list. Again, make sure all are followed by a comma except for the last one..


Code: [Select]
if (!_whitelisted) then
{
{
if (_function select [0, count _x] == _x) exitWith
{
_whitelisted = true;
};
}
forEach
[
"A3W_fnc_",
"mf_remote_",
"BIS_fnc_spawn",
"BH_fnc_",
"APOC_srv_"


Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #175 posted: Aug 05, 2015, 03:45 PM »
tried again - can confirm diving equipment doenst work - it spawn an random crate ....

If you added it as the last box, make sure there are 3 closing brackets to close the block. Here is my entire refillbox file. Pay close attention to the brackets and commas.

Code: [Select]
// ******************************************************************************************
// * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
// ******************************************************************************************
// @file Version: 1.0
// @file Name: fn_refillbox.sqf  "fn_refillbox"
// @file Author: [404] Pulse , [404] Costlyy , [404] Deadbeat, AgentRev
// @file Created: 22/1/2012 00:00
// @file Args: [OBJECT (Weapons box that needs filling), STRING (Name of the fill to give to object)]

if (!isServer) exitWith {};

#define RANDOM_BETWEEN(START,END) (START + floor random ((END - START) + 1))

private ["_box", "_boxType", "_boxItems", "_item", "_qty", "_mag"];
_box = _this select 0;
_boxType = _this select 1;

_box allowDamage false; // No more fucking busted crates
_box setVariable ["A3W_inventoryLockR3F", true, true];

// Clear pre-existing cargo first
//clearBackpackCargoGlobal _box;
clearMagazineCargoGlobal _box;
clearWeaponCargoGlobal _box;
clearItemCargoGlobal _box;

if (_boxType == "mission_USSpecial2") then { _boxType = "mission_USSpecial" };

switch (_boxType) do
{
case "mission_USLaunchers":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", ["launch_RPG32_F", "launch_NLAW_F", "launch_Titan_short_F"], RANDOM_BETWEEN(3,4), RANDOM_BETWEEN(2,3)],
["wep", "launch_Titan_F", RANDOM_BETWEEN(1,2), RANDOM_BETWEEN(2,4)],
["mag", ["ClaymoreDirectionalMine_Remote_Mag", "SLAMDirectionalMine_Wire_Mag", "ATMine_Range_Mag", "DemoCharge_Remote_Mag", "SatchelCharge_Remote_Mag"], RANDOM_BETWEEN(5,8)]
];
};
    case "airdrop_USLaunchers":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", "launch_RPG32_F",  2],
["wep", "launch_NLAW_F", 2, RANDOM_BETWEEN(2,3)],
["mag", "Titan_AP", 6],
["mag", "Titan_AT", 4],
["mag", "Titan_AA", 4],
["wep", "launch_Titan_F", 2],
["mag", "RPG32_F", 4],
["mag", "RPG32_HE_F", 4],
["wep", "launch_Titan_short_F", 2],
["mag", ["ClaymoreDirectionalMine_Remote_Mag", "SLAMDirectionalMine_Wire_Mag", "ATMine_Range_Mag", "DemoCharge_Remote_Mag", "SatchelCharge_Remote_Mag"], RANDOM_BETWEEN(6,12)]
];
};
case "mission_USSpecial":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
//["itm", "NVGoggles", 5],
["wep", ["Binocular", "Rangefinder","Laserdesignator"], RANDOM_BETWEEN(1,5)],
["itm", "Medikit", RANDOM_BETWEEN(1,3)],
["itm", "Toolkit", RANDOM_BETWEEN(0,1)],
["itm", ["optic_MRCO", "optic_Arco", "optic_Hamr", "optic_SOS", "optic_DMS", "optic_AMS"], RANDOM_BETWEEN(2,3)],
            ["itm", ["optic_AMS", "optic_KHS_hex", "optic_Nightstalker"], RANDOM_BETWEEN(1,3)],
["itm", ["muzzle_snds_M", "muzzle_snds_H", "muzzle_snds_H_MG", "muzzle_snds_B", "muzzle_snds_acp"], RANDOM_BETWEEN(0,3)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(3,5)],
["itm", ["bipod_01_F_blk", "bipod_02_F_hex"], 4],
["wep", ["arifle_MXM_F", "srifle_EBR_F", "srifle_DMR_05_hex_F", "srifle_DMR_05_tan_f", "srifle_DMR_01_DMS_F"], RANDOM_BETWEEN(3,4), RANDOM_BETWEEN(4,6)],
["wep", ["LMG_Mk200_F", "LMG_Zafir_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(2,4)],
["mag", "30Rnd_556x45_Stanag", RANDOM_BETWEEN(4,8)],
["mag", "30Rnd_65x39_caseless_mag", RANDOM_BETWEEN(4,8)],
["mag", "30Rnd_65x39_caseless_green", RANDOM_BETWEEN(4,8)],
["mag", "9Rnd_45ACP_Mag", RANDOM_BETWEEN(1,5)]
];
};
    case "airdrop_USSpecial":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
//["itm", "NVGoggles", 5],
["wep", ["Binocular", "Rangefinder","Laserdesignator"], RANDOM_BETWEEN(1,5)],
["itm", "Medikit", RANDOM_BETWEEN(1,2)],
["itm", "Toolkit", RANDOM_BETWEEN(1,2)],
["itm", ["optic_MRCO", "optic_Arco", "optic_Hamr", "optic_SOS", "optic_DMS"], RANDOM_BETWEEN(3,5)],
            ["itm", ["optic_AMS", "optic_KHS_hex", "optic_Nightstalker"], RANDOM_BETWEEN(0,2)],
["itm", ["muzzle_snds_M", "muzzle_snds_H", "muzzle_snds_H_MG", "muzzle_snds_B", "muzzle_snds_acp"], RANDOM_BETWEEN(2,5)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(3,5)],
["itm", ["bipod_01_F_blk", "bipod_02_F_hex"], 4],
["wep", ["arifle_MXM_F", "arifle_MX_Black_F", "srifle_EBR_F", "srifle_DMR_05_hex_F", "srifle_DMR_05_tan_f", "srifle_DMR_01_DMS_F"], RANDOM_BETWEEN(2,3), RANDOM_BETWEEN(4,6)],
["wep", ["LMG_Mk200_F", "LMG_Zafir_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(2,4)],
["mag", "30Rnd_556x45_Stanag", RANDOM_BETWEEN(2,3)],
["mag", "30Rnd_65x39_caseless_mag", RANDOM_BETWEEN(2,3)],
["mag", "30Rnd_65x39_caseless_green", RANDOM_BETWEEN(2,3)],
["mag", "9Rnd_45ACP_Mag", RANDOM_BETWEEN(1,3)]
];
};
case "mission_Main_A3snipers":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", ["srifle_LRR_SOS_F", "srifle_LRR_camo_SOS_F", "srifle_GM6_SOS_F", "srifle_DMR_02_camo_F", "srifle_GM6_camo_SOS_F"], RANDOM_BETWEEN(2,3), RANDOM_BETWEEN(4,6)],
["wep", ["srifle_EBR_F", "srifle_DMR_01_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(4,6)],
["wep", ["Binocular", "Rangefinder","Laserdesignator"], RANDOM_BETWEEN(1,3)],
["itm", "optic_DMS", RANDOM_BETWEEN(1,2)]
];
};
case "airdrop_DLC_Rifles":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", ["srifle_DMR_03_multicam_F", "srifle_DMR_04_F", "srifle_DMR_02_sniper_F", "srifle_DMR_05_tan_f", "srifle_DMR_04_Tan_F"], RANDOM_BETWEEN(2,3), RANDOM_BETWEEN(5,6)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(4,5)],
["itm", ["V_PlateCarrierIAGL_dgtl", "V_TacVest_camo", "V_PlateCarrierGL_rgr"], RANDOM_BETWEEN(2,4)],
["bac", ["B_Carryall_mcamo", "B_Kitbag_mcamo"], RANDOM_BETWEEN(2,3)],
["itm", ["bipod_01_F_blk", "bipod_02_F_hex"], 4],
["itm", ["optic_DMS","optic_AMS","optic_tws","optic_Nightstalker","optic_KHS_blk", "optic_KHS_blk"], RANDOM_BETWEEN(5,5)],
["itm", ["muzzle_snds_B", "muzzle_snds_338_black", "muzzle_snds_338_sand", "muzzle_snds_93mmg"], RANDOM_BETWEEN(4,5)]
];
};
case "airdrop_DLC_LMGs":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", ["MMG_02_black_F", "MMG_02_camo_F","MMG_02_sand_F","MMG_01_hex_F","MMG_01_tan_F", "LMG_Mk200_F", "LMG_Zafir_F", "arifle_MX_SW_Black_F"], RANDOM_BETWEEN(2,4), RANDOM_BETWEEN(4,6)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(6,7)],
["itm", ["V_PlateCarrierIAGL_dgtl", "V_TacVest_camo", "V_PlateCarrierGL_rgr"], RANDOM_BETWEEN(2,4)],
["bac", ["B_Kitbag_mcamo", "B_Bergen_sgg", "B_FieldPack_khk", "B_Carryall_mcamo"], RANDOM_BETWEEN(3,5)],
["itm", ["bipod_01_F_blk", "bipod_02_F_hex"], 4],
["itm", ["optic_DMS","optic_AMS","optic_tws","optic_KHS_blk"], RANDOM_BETWEEN(3,5)],
            ["itm", ["optic_tws_mg"], RANDOM_BETWEEN(1,2)],
["itm", ["muzzle_snds_338_black", "muzzle_snds_338_sand", "muzzle_snds_93mmg", "muzzle_snds_H_MG"], RANDOM_BETWEEN(3,5)]
];
};
case "airdrop_Snipers":
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", ["srifle_LRR_LRPS_F", "srifle_LRR_camo_LRPS_F", "srifle_GM6_LRPS_F", "srifle_GM6_camo_LRPS_F"], RANDOM_BETWEEN(1,2), RANDOM_BETWEEN(4,5)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(3,5)],
["wep", ["srifle_EBR_F", "srifle_DMR_01_F"], RANDOM_BETWEEN(2,3), RANDOM_BETWEEN(6,8)],
["wep", ["Binocular", "Rangefinder","Laserdesignator"], RANDOM_BETWEEN(1,3)],
["itm", ["bipod_01_F_blk", "bipod_02_F_hex"], RANDOM_BETWEEN(3,4)],
["itm", ["V_PlateCarrierIAGL_dgtl", "V_TacVest_camo", "V_PlateCarrierGL_rgr"], RANDOM_BETWEEN(2,4)],
["bac", ["B_Kitbag_mcamo", "B_Bergen_sgg", "B_FieldPack_khk", "B_Carryall_mcamo"], RANDOM_BETWEEN(3,5)],
            ["itm", ["optic_LRPS", "optic_Nightstalker"], RANDOM_BETWEEN(1,2)],
["itm", ["optic_DMS","optic_AMS","optic_tws","optic_KHS_blk"], RANDOM_BETWEEN(5,8)],
["mag", ["SmokeShell", "SmokeShellRed", "SmokeShellyellow", "SmokeShellgreen"], RANDOM_BETWEEN(5,9)]
];
};
case "Diving_Gear": //diving equipment for squad of 2
{
_boxItems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["wep", "arifle_SDAR_F", 2],
["itm", "V_RebreatherB", 2],
["itm", "V_RebreatherIR", 2],
["itm", "V_RebreatherIA", 2],
["itm", "G_Diving", 2],
["itm", "U_B_Wetsuit", 2],
["itm", "U_O_Wetsuit", 2],
["itm", "U_I_Wetsuit", 2],
["itm", ["Chemlight_red", "Chemlight_green", "Chemlight_yellow", "Chemlight_blue"], RANDOM_BETWEEN(6,9)],
["mag", ["SmokeShell", "SmokeShellRed", "SmokeShellyellow", "SmokeShellgreen"], RANDOM_BETWEEN(5,9)]
//["bac", ["B_Kitbag_mcamo", "B_Bergen_sgg", "B_FieldPack_khk", "B_Carryall_mcamo"], RANDOM_BETWEEN(3,5)],
];
};
case "General_supplies":
{
_boxitems =
[
//first aid, medkit, tookit, gps, rangefinder, etc
// Item type, Item class(es), # of items, # of magazines per weapon
["itm", "FirstAidKit", RANDOM_BETWEEN(5,6)],
["wep", ["Binocular", "Rangefinder"], RANDOM_BETWEEN(3,5)],
["wep", ["hgun_Pistol_heavy_01_F", "hgun_Pistol_heavy_01_MRD_F", "hgun_Pistol_heavy_02_F", "hgun_Pistol_heavy_02_Yorris_F"], RANDOM_BETWEEN(1,3), RANDOM_BETWEEN(3,5)],
["itm", "Medikit", RANDOM_BETWEEN(2,3)],
["itm", "Toolkit", RANDOM_BETWEEN(2,3)],
["itm", "Laserbatteries", 4],
["itm", "a3w_spawnBeacon", 3],
["itm", "MineDetector", 3],
["bac", ["B_Kitbag_mcamo", "B_Bergen_sgg", "B_FieldPack_khk", "B_Carryall_mcamo"], RANDOM_BETWEEN(3,5)],
["itm", ["V_PlateCarrierIAGL_dgtl", "V_TacVest_camo", "V_PlateCarrierGL_rgr"], RANDOM_BETWEEN(2,4)],
["itm", ["Chemlight_red", "Chemlight_green", "Chemlight_yellow", "Chemlight_blue"], RANDOM_BETWEEN(6,9)],
//["itm", ["V_RebreatherB", "U_B_Wetsuit"], RANDOM_BETWEEN(3,6)],
["mag", ["SmokeShell", "SmokeShellRed", "SmokeShellyellow", "SmokeShellgreen"], RANDOM_BETWEEN(5,9)]
];
};
case "Ammo_Drop":
{
_boxitems =
[
// Item type, Item class(es), # of items, # of magazines per weapon
["mag", ["16Rnd_9x21_Mag", "30Rnd_9x21_Mag", "6Rnd_45ACP_Cylinder", "11Rnd_45ACP_Mag", "9Rnd_45ACP_Mag"], RANDOM_BETWEEN(15,20)],
["mag",["30Rnd_45ACP_MAG_SMG_01", "30Rnd_45ACP_Mag_SMG_01_tracer_green"], RANDOM_BETWEEN(10,15)],
["mag",["20Rnd_556x45_UW_mag","30Rnd_556x45_Stanag","30Rnd_556x45_Stanag_Tracer_Green"], RANDOM_BETWEEN(10,11)],
["mag",["30Rnd_556x45_Stanag_Tracer_Yellow","30Rnd_556x45_Stanag_Tracer_Red"], RANDOM_BETWEEN(10,11)],
["mag",["30Rnd_65x39_caseless_mag", "30Rnd_65x39_caseless_mag_Tracer"], RANDOM_BETWEEN(10,15)],
["mag",["30Rnd_65x39_caseless_green", "30Rnd_65x39_caseless_green_mag_Tracer"], RANDOM_BETWEEN(10,15)],
["mag",["100Rnd_65x39_caseless_mag", "100Rnd_65x39_caseless_mag_Tracer"], RANDOM_BETWEEN(7,10)],
["mag",["200Rnd_65x39_cased_Box", "200Rnd_65x39_cased_Box_Tracer"], RANDOM_BETWEEN(7,10)],
["mag","10Rnd_762x54_Mag", 10],
["mag","20Rnd_762x51_Mag", 10],
["mag",["150Rnd_762x54_Box","150Rnd_762x54_Box_Tracer"], 10],
["mag","10Rnd_338_Mag", 10],
["mag","130Rnd_338_Mag", 10],
["mag","7Rnd_408_Mag", 10],
["mag","10Rnd_93x64_DMR_05_Mag", 10],
["mag","150Rnd_93x64_Mag", 10],
["mag","10Rnd_127x54_Mag", 10],
["mag",["5Rnd_127x108_Mag","5Rnd_127x108_APDS_Mag"], RANDOM_BETWEEN(10,15)],
["mag",["1Rnd_HE_Grenade_shell","1Rnd_Smoke_Grenade_shell","1Rnd_SmokePurple_Grenade_shell","1Rnd_SmokeBlue_Grenade_shell","1Rnd_SmokeGreen_Grenade_shell","1Rnd_SmokeYellow_Grenade_shell","1Rnd_SmokeOrange_Grenade_shell","1Rnd_SmokeRed_Grenade_shell"], RANDOM_BETWEEN(8,10)],
["mag",["3Rnd_HE_Grenade_shell","3Rnd_Smoke_Grenade_shell","3Rnd_SmokePurple_Grenade_shell","3Rnd_SmokeBlue_Grenade_shell", "3Rnd_SmokeGreen_Grenade_shell", "3Rnd_SmokeYellow_Grenade_shell","3Rnd_SmokeOrange_Grenade_shell","3Rnd_SmokeRed_Grenade_shell"], RANDOM_BETWEEN(8,10)],
["mag",["UGL_FlareWhite_F", "UGL_FlareGreen_F","UGL_FlareYellow_F","UGL_FlareRed_F","UGL_FlareCIR_F", "3Rnd_UGL_FlareWhite_F", "3Rnd_UGL_FlareGreen_F","3Rnd_UGL_FlareYellow_F", "3Rnd_UGL_FlareRed_F","3Rnd_UGL_FlareCIR_F"], RANDOM_BETWEEN(10,15)]

];
};
};

[_box, _boxItems] call processItems;

also here is my entire \addons\APOC_Airdrop_Assistance\config.sqf

Code: [Select]
//Configuration for Airdrop Assistance
//Author: Apoc

APOC_AA_coolDownTime = 900; //Expressed in sec

APOC_AA_VehOptions =
[ // ["Menu Text", ItemClassname, Price, "Drop Type"]
["Quadbike (Civilian)", "C_Quadbike_01_F", 5000, "vehicle"],
["SUV", "C_SUV_01_F", 15000, "vehicle"],
["Hummingbird",  "B_Heli_Light_01_F" , 50000, "vehicle"],
["Pawnee", "B_Heli_Light_01_armed_F", 70000, "vehicle"],
["Orca", "O_Heli_Light_02_F", 80000, "vehicle"],
["Offroad HMG", "B_G_Offroad_01_armed_F", 20000, "vehicle"],
//["Truck (Camo)", "B_G_Van_01_transport_F", 25000, "vehicle"],
["Strider HMG", "I_MRAP_03_F", 40000, "vehicle"],
//["Hunter HMG",    "B_MRAP_01_F", 40000, "vehicle"],
//["Bobcat", "B_APC_Tracked_01_CRV_F", 60000, "vehicle"],
["T-100 Varsuk", "O_MBT_02_cannon_F", 90000, "vehicle"],
["Zodiac", "I_Boat_Transport_01_F", 10000, "vehicle"],
["Assault Boat (HMG)", "O_Boat_Armed_01_hmg_F", 50000, "vehicle"],
//["Rescue Boat",  "C_Boat_Civil_01_rescue_F", 20000, "vehicle"],
["Submersible", "O_SDV_01_F", 45000, "vehicle"]

];

APOC_AA_SupOptions =
[// ["stringItemName", "Crate Type for fn_refillBox ,Price," drop type"]
["General Supplies", "General_supplies", 30000, "supply"],
["Launchers", "airdrop_USLaunchers", 60000, "supply"],
["Assault Rifle", "airdrop_USSpecial", 40000, "supply"],
["Sniper Rifles", "airdrop_Snipers", 60000, "supply"],
["DLC Rifles", "airdrop_DLC_Rifles", 60000, "supply"],
["DLC LMGs", "airdrop_DLC_LMGs", 50000, "supply"],
["Diving Gear", "Diving_Gear", 30000, "supply"],
["Ammo Drop", "Ammo_Drop", 60000, "supply"],

//"Menu Text", "Crate Type", "Cost", "drop type"
["Food", "Land_Sacks_goods_F", 10000, "picnic"],
["Water", "Land_BarrelWater_F", 10000, "picnic"]
];

make sure each lline hase a comma EXCEPT the last one in each section.  The commas tell the server to go to the next line. The lack of a comma on the last line tells the server it is the end of that section.
One missing comma, or a comma on the last line will cause the type of issue you are having, as it will either stop reading too soon, or keep looking for the next line that isnt there...since it doesn't know what to do, it gives you a default box

keep in mind that I am not a coder but this is my understanding of it. I use these files on my server with no issues

aqain, price these boxes according to your server. Our server has high starting $$ so everything in my files is priced higher than normal and is always a WIP

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #176 posted: Aug 05, 2015, 10:18 PM »
This is the section of my FilterExecAttempt.SQF files

if (!_whitelisted) then
      {
         {
            if (_function select [0, count _x] == _x) exitWith
            {
               _whitelisted = true;
            };
         }
         forEach
         [
            "A3W_fnc_",
            "mf_remote_",
            "BIS_fnc_spawn",
            "BH_fnc_",
            "APOC_srv_"
         ];
      };

I it is weird, you hear the script running, it goes through all the motions, minus taking the money out and sending the Heli with your goods.

Again, thank you to everyone that is kind enough to help us less experienced out.

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #177 posted: Aug 05, 2015, 10:35 PM »
tried again - can confirm diving equipment doenst work - it spawn an random crate ....
Is it only the diving crate or all crates? Can you attach your fn_refillbox and config file? I'd like to take a look, I'm betting its a missing, or extra comma or bracket
  • Offline LouD
  • Silent but deadly ;)
  • Moderator
  • Veteran
  • ******
  • Posts: 1415

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #178 posted: Aug 05, 2015, 11:20 PM »
You must have done something wrong. Works fine for me :)

Re: Apoc's Airdrop Assistance - v1.4 Release

« Reply #179 posted: Aug 06, 2015, 07:19 PM »
Hey mate i realy want this in my Stratis wasteland server i did all steps correct i think but the menu wont show up when i scroll, even the normal default player menu option is not working anymore now
what did i do wrong ?