Issues Spawning Ammo Crate

Posts 1–10 of 10 · Page 1 of 1
Issues Spawning Ammo Crate
I am having issues spawning an ammo crate. I am very confident that I am doing everything right. I have a folder in my Arma 2 OA directory called scripts, in which is a file called ammo.sqf. In Cheat Engine, I click on the Arma 2 OA exe file. I search for this:
private ["_dummy"]; _dummy = [_this,"onload"] execVM "\ca\ui\scripts\dedicatedServerInterface.sqf";
and replace it with this:
private ["_dummy"]; _dummy = [_this,"onload"] execVM "\ca\ui\scripts\ammo.sqf";
. Check the 'Active' box and close Cheat Engine. Go back to Arma 2, join a good server for doing this, but nothing happens.

Am I doing something wrong?
Quote Originally Posted by idunc View Post
\ca\ui\
Remove what I have quoted. And can you post the code inside of your ammo.sqf?
Are you sure your scripts are called ammo.sqf and not crate.sqf?? I'd just double check them. What servers you doing this on?
Quote Originally Posted by adz120 View Post
Are you sure your scripts are called ammo.sqf and not crate.sqf?? I'd just double check them. What servers you doing this on?
The server he uses it on is irrelevant. As far as the first part of your post could be a legit problem.
Quote Originally Posted by n1kko View Post
Remove what I have quoted. And can you post the code inside of your ammo.sqf?
Okay I'll give that a shot. I deleted my ammo.sqf code though, out of frustration haha.

Quote Originally Posted by adz120 View Post
Are you sure your scripts are called ammo.sqf and not crate.sqf?? I'd just double check them. What servers you doing this on?
Yes, it was ammo.sqf.
Try using this. Copy and paste it and name it ammo.sqf.

The number at the bottom (180) is how many seconds the box will be there before it vanishes. Feel free to change it.

Code:
_className = "USBasicWeaponsBox";
_mypos = getposATL player;
_dir = getdir player;
_mypos = [(_mypos select 0)+2*sin(_dir),(_mypos select 1)+2*cos(_dir), (_mypos select 2)];
_magicbox = createVehicle [_className, _mypos, [], 0, "CAN_COLLIDE"];
_magicbox setDir _dir;
_magicbox setposATL _mypos;

_weapons = [
    "ItemHatchet",
    "Colt1911",
    "Makarov",
    "M9",
    "M9SD",
    "revolver_EP1",
    "glock17_EP1",
    "UZI_EP1",
    "Crossbow",
    "M240",
    "M249",
    "Mk_48",
    "M1014",
    "Remington870_lamp",
    "Winchester1866",
    "MR43",
    "bizon_silenced",
    "MP5A5",
    "MP5SD",
    "AK_74",
    "AK_47_M",
    "AKS_74_kobra",
    "AKS_74_U",
    "FN_FAL",
    "FN_FAL_ANPVS4",
    "BAF_L85A2_RIS_CWS",
    "LeeEnfield",
    "M4A1",
    "M4A1_Aim",
    "M4A1_AIM_SD_camo",
    "M4A1_HWS_GL_camo",
    "M4A3_CCO_EP1",
    "M40A3",
    "M16A2",
    "M16A2GL",
    "M16A4_ACG",
    "BAF_AS50_scoped",
    "BAF_AS50_TWS",
    "Huntingrifle",
    "DMR",
    "M14_EP1",
    "M24",
    "M107_DZ",
    "SVD_CAMO",
    "ItemCompass",
    "ItemEtool",
    "ItemFlashlight",
    "ItemGPS",
    "ItemKnife",
    "ItemMap",
    "ItemMatchbox",
    "ItemFlashlightRed",
    "ItemToolbox",
    "ItemWatch",
    "NVGoggles",
    "Binocular_Vector"
];

_magazine = [
    "7Rnd_45ACP_1911",
    "15Rnd_9x19_M9",
    "15Rnd_9x19_M9SD",
    "8Rnd_9x18_Makarov",
    "6Rnd_45ACP",
    "17Rnd_9x19_glock17",
    "30Rnd_9x19_UZI_SD",
    "30Rnd_9x19_UZI",
    "BoltSteel",
    "100Rnd_762x51_M240",
    "200Rnd_556x45_M249",
    "8Rnd_B_Beneli_74Slug",
    "8Rnd_B_Beneli_Pellets",
    "15Rnd_W1866_Slug",
    "15Rnd_W1866_Pellet",
    "2Rnd_shotgun_74Slug",
    "2Rnd_shotgun_74Pellets",
    "64Rnd_9x19_SD_Bizon",
    "30Rnd_9x19_MP5",
    "30Rnd_9x19_MP5SD",
    "30Rnd_545x39_AK",
    "30Rnd_762x39_AK47",
    "20Rnd_762x51_FNFAL",
    "10x_303",
    "30Rnd_556x45_Stanag",
    "30Rnd_556x45_StanagSD",
    "10Rnd_127x99_m107",
    "5x_22_LR_17_HMR",
    "20Rnd_762x51_DMR",
    "5Rnd_762x51_M24",
    "10Rnd_762x54_SVD",
    "FoodSteakRaw",
    "FoodSteakCooked",
    "FoodCanBakedBeans",
    "FoodCanSardines",
    "FoodCanPasta",
    "ItemSodaCoke",
    "ItemSodaPepsi",
    "ItemWaterbottle",
    "ItemAntibiotic",
    "ItemBandage",
    "ItemBloodbag",
    "ItemEpinephrine",
    "ItemHeatPack",
    "ItemMorphine",
    "ItemPainkiller",
    "HandChemGreen",
    "HandChemBlue",
    "HandChemRed",
    "HandGrenade_west",
    "HandRoadFlare",
    "PartWoodPile",
    "Skin_Soldier1_DZ",
    "Skin_Survivor2_DZ",
    "Skin_Camo1_DZ",
    "Skin_Sniper1_DZ",
    "ItemSandbag",
    "ItemTankTrap",
    "ItemTent",
    "ItemWire",
    "TrapBear",
    "PartEngine",
    "ItemJerrycan",
    "PartFueltank",
    "PartVRotor",
    "PartGeneric",
    "PartWheel",
    "PartGlass",
    "1Rnd_HE_M203",
    "FlareWhite_M203",
    "FlareGreen_M203",
    "1Rnd_Smoke_M203",
    "PipeBomb"
];

_backpack = [
    "DZ_Backpack_EP1"
];

clearWeaponCargoGlobal _magicbox;
clearMagazineCargoGlobal _magicbox;
clearBackpackCargoGlobal _magicbox;

{_magicbox addWeaponCargoGlobal [_x, 50];} forEach _weapons;
{_magicbox addMagazineCargoGlobal [_x, 50];} forEach _magazine;
{_magicbox addBackpackCargoGlobal [_x, 1];} forEach _backpack;

sleep 180;
deleteVehicle _magicbox;
if (true) exitWith {};
Quote Originally Posted by n1kko View Post
Try using this. Copy and paste it and name it ammo.sqf.

The number at the bottom (180) is how many seconds the box will be there before it vanishes. Feel free to change it.

Code:
_className = "USBasicWeaponsBox";
_mypos = getposATL player;
_dir = getdir player;
_mypos = [(_mypos select 0)+2*sin(_dir),(_mypos select 1)+2*cos(_dir), (_mypos select 2)];
_magicbox = createVehicle [_className, _mypos, [], 0, "CAN_COLLIDE"];
_magicbox setDir _dir;
_magicbox setposATL _mypos;

_weapons = [
    "ItemHatchet",
    "Colt1911",
    "Makarov",
    "M9",
    "M9SD",
    "revolver_EP1",
    "glock17_EP1",
    "UZI_EP1",
    "Crossbow",
    "M240",
    "M249",
    "Mk_48",
    "M1014",
    "Remington870_lamp",
    "Winchester1866",
    "MR43",
    "bizon_silenced",
    "MP5A5",
    "MP5SD",
    "AK_74",
    "AK_47_M",
    "AKS_74_kobra",
    "AKS_74_U",
    "FN_FAL",
    "FN_FAL_ANPVS4",
    "BAF_L85A2_RIS_CWS",
    "LeeEnfield",
    "M4A1",
    "M4A1_Aim",
    "M4A1_AIM_SD_camo",
    "M4A1_HWS_GL_camo",
    "M4A3_CCO_EP1",
    "M40A3",
    "M16A2",
    "M16A2GL",
    "M16A4_ACG",
    "BAF_AS50_scoped",
    "BAF_AS50_TWS",
    "Huntingrifle",
    "DMR",
    "M14_EP1",
    "M24",
    "M107_DZ",
    "SVD_CAMO",
    "ItemCompass",
    "ItemEtool",
    "ItemFlashlight",
    "ItemGPS",
    "ItemKnife",
    "ItemMap",
    "ItemMatchbox",
    "ItemFlashlightRed",
    "ItemToolbox",
    "ItemWatch",
    "NVGoggles",
    "Binocular_Vector"
];

_magazine = [
    "7Rnd_45ACP_1911",
    "15Rnd_9x19_M9",
    "15Rnd_9x19_M9SD",
    "8Rnd_9x18_Makarov",
    "6Rnd_45ACP",
    "17Rnd_9x19_glock17",
    "30Rnd_9x19_UZI_SD",
    "30Rnd_9x19_UZI",
    "BoltSteel",
    "100Rnd_762x51_M240",
    "200Rnd_556x45_M249",
    "8Rnd_B_Beneli_74Slug",
    "8Rnd_B_Beneli_Pellets",
    "15Rnd_W1866_Slug",
    "15Rnd_W1866_Pellet",
    "2Rnd_shotgun_74Slug",
    "2Rnd_shotgun_74Pellets",
    "64Rnd_9x19_SD_Bizon",
    "30Rnd_9x19_MP5",
    "30Rnd_9x19_MP5SD",
    "30Rnd_545x39_AK",
    "30Rnd_762x39_AK47",
    "20Rnd_762x51_FNFAL",
    "10x_303",
    "30Rnd_556x45_Stanag",
    "30Rnd_556x45_StanagSD",
    "10Rnd_127x99_m107",
    "5x_22_LR_17_HMR",
    "20Rnd_762x51_DMR",
    "5Rnd_762x51_M24",
    "10Rnd_762x54_SVD",
    "FoodSteakRaw",
    "FoodSteakCooked",
    "FoodCanBakedBeans",
    "FoodCanSardines",
    "FoodCanPasta",
    "ItemSodaCoke",
    "ItemSodaPepsi",
    "ItemWaterbottle",
    "ItemAntibiotic",
    "ItemBandage",
    "ItemBloodbag",
    "ItemEpinephrine",
    "ItemHeatPack",
    "ItemMorphine",
    "ItemPainkiller",
    "HandChemGreen",
    "HandChemBlue",
    "HandChemRed",
    "HandGrenade_west",
    "HandRoadFlare",
    "PartWoodPile",
    "Skin_Soldier1_DZ",
    "Skin_Survivor2_DZ",
    "Skin_Camo1_DZ",
    "Skin_Sniper1_DZ",
    "ItemSandbag",
    "ItemTankTrap",
    "ItemTent",
    "ItemWire",
    "TrapBear",
    "PartEngine",
    "ItemJerrycan",
    "PartFueltank",
    "PartVRotor",
    "PartGeneric",
    "PartWheel",
    "PartGlass",
    "1Rnd_HE_M203",
    "FlareWhite_M203",
    "FlareGreen_M203",
    "1Rnd_Smoke_M203",
    "PipeBomb"
];

_backpack = [
    "DZ_Backpack_EP1"
];

clearWeaponCargoGlobal _magicbox;
clearMagazineCargoGlobal _magicbox;
clearBackpackCargoGlobal _magicbox;

{_magicbox addWeaponCargoGlobal [_x, 50];} forEach _weapons;
{_magicbox addMagazineCargoGlobal [_x, 50];} forEach _magazine;
{_magicbox addBackpackCargoGlobal [_x, 1];} forEach _backpack;

sleep 180;
deleteVehicle _magicbox;
if (true) exitWith {};
If I executed this without using a bypass is it an instant ban, or do I not need a bypass for this with cheatengine?
it depends how long it takes... but surely you will be banned.
Quote Originally Posted by adz120 View Post
If I executed this without using a bypass is it an instant ban, or do I not need a bypass for this with cheatengine?
I've been using it for a few weeks now, now ban as of yet, and I don't use a bypass.
I got it to work. Thanks to n1kko for all the help!
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us