Jump to content
Drunken Cheetah

Dynamic Airdrop 100% working 5.0

Recommended Posts

4 minutes ago, imthatguyhere said:

Those warnings have nothing to do with this. You are either running mods with incorrect configs or you need to re-verify your Arma files.

You are wrong, every weapon in these errors is part of the airdrop and I have never seen these before I add this script. Also sure 101% that I won't see them again if I remove it.

Share this post


Link to post
Share on other sites
3 minutes ago, Leo65 said:

You are wrong, every weapon in these errors is part of the airdrop and I have never seen these before I add this script. Also sure 101% that I won't see them again if I remove it.

Apologies, it sounds like a mess-up in the box filling code with a mag in with "addWeaponCargoGlobal" instead of "addMagazineCargoGlobal". It looks like it's like that multiple times too.

Share this post


Link to post
Share on other sites
9 minutes ago, imthatguyhere said:

Apologies, it sounds like a mess-up in the box filling code with a mag in with "addWeaponCargoGlobal" instead of "addMagazineCargoGlobal". It looks like it's like that multiple times too.

Np, do you mean I need to change every "addWeaponCargoGlobal" into "addMagazineCargoGlobal" ?

Nvm, got it. Just the magazines.

Edited by Leo65

Share this post


Link to post
Share on other sites
7 hours ago, Leo65 said:

You have a bunch of magazines and attachments using "addWeaponCargoGlobal" so that's likely your error. I believe you can just use "addItemCargoGlobal" for all three, but if that doesn't work, swap all the magazine lines to "addMagazineCargoGlobal", the weapons are fine as "addWeaponCargoGlobal", and use "addItemCargoGlobal" for the attachments/optics.

Share this post


Link to post
Share on other sites

For those of you who have issues, I am revising this script, and adding extra features. Not yet completed, but you can stay upto date on my portfolio web. It will be posted there before here.

https://altislife-scripting.com/wp/2018/26/95/airdrop-v2/altis-life-v5-0/drunken-cheetah/

(Admin/Mod delete link if not allowed)

Edited by Pril-

Share this post


Link to post
Share on other sites
//Y Inventory
_Cargo SVAR ["trunk_in_use",false,true];
_Cargo SVAR ["opened",false,true];
_Cargo SVAR ["opened",true,true];

looty_loot_array = [["VIRTUAL_ITEM_NAME",AMOUNT],[VIRTUAL_ITEM_NAME,AMOUNT],[VIRTUAL_ITEM_NAME,AMOUNT],[VIRTUAL_ITEM_NAME,AMOUNT],[VIRTUAL_ITEM_NAME,AMOUNT],[VIRTUAL_ITEM_NAME,AMOUNT]];
looty_loot_amount = 1;

_lootAmount = looty_loot_amount;
_lootArray = looty_loot_array;
_lootTempToAdd = [];
_lootArrayFinal = [];
_val = round(random 100000);

while {_lootAmount>0} do {
	_lootAmount = _lootAmount - 1;
	_loot_inArr = count _lootArray;
	_inArr = floor(random _loot_inArr);
	_lootTempToAdd = _lootArray select _inArr;
	_lootArrayFinal = _lootArrayFinal + [_lootTempToAdd];
};

_Cargo SVAR["Trunk",[_lootArrayFinal,500],true];
_Cargo SVAR["unique",_val,true];

 

 

NOTE: This is how I do it, it might not work for your version, or it might. Add the above line of code above the airdrop script (life_server) where it says something like

clearItemCargoGlobal _Cargo;
clearWeaponCargoGlobal _Cargo;
clearMagazineCargoGlobal _Cargo;

  • Thanks 1

Share this post


Link to post
Share on other sites
On 4/16/2019 at 1:59 PM, Drunken Cheetah said:
//Y Inventory
_Cargo SVAR ["trunk_in_use",false,true];
_Cargo SVAR ["opened",false,true];
_Cargo SVAR ["opened",true,true];

looty_loot_array = [["VIRTUAL_ITEM_NAME",AMOUNT],[VIRTUAL_ITEM_NAME,AMOUNT],[VIRTUAL_ITEM_NAME,AMOUNT],[VIRTUAL_ITEM_NAME,AMOUNT],[VIRTUAL_ITEM_NAME,AMOUNT],[VIRTUAL_ITEM_NAME,AMOUNT]];
looty_loot_amount = 1;

_lootAmount = looty_loot_amount;
_lootArray = looty_loot_array;
_lootTempToAdd = [];
_lootArrayFinal = [];
_val = round(random 100000);

while {_lootAmount>0} do {
	_lootAmount = _lootAmount - 1;
	_loot_inArr = count _lootArray;
	_inArr = floor(random _loot_inArr);
	_lootTempToAdd = _lootArray select _inArr;
	_lootArrayFinal = _lootArrayFinal + [_lootTempToAdd];
};

_Cargo SVAR["Trunk",[_lootArrayFinal,500],true];
_Cargo SVAR["unique",_val,true];

 

 

NOTE: This is how I do it, it might not work for your version, or it might. Add the above line of code above the airdrop script (life_server) where it says something like

clearItemCargoGlobal _Cargo;
clearWeaponCargoGlobal _Cargo;
clearMagazineCargoGlobal _Cargo;

Hello, I come back to you to ask you two questions:
What is the "open" variable for? I guess it's to send if the checkout is open or not, but using a "trunk_in_use" is not enough?
What does the "unique" varialbe do here?
> _Cargo SVAR ["unique", _ val, true];
thank you very much for your help

 

EDIT:

I added to the config_vehicle the name of the safe and its max capacity, but when I press T, the inventory of the vehicle is not displayed.

_box setVariable["Trunk",["apple", 12],true];
 


_box setVariable["Trunk",["apple", 12],true];

 

Edited by Erwannc
UPDATE

Share this post


Link to post
Share on other sites
18 hours ago, Erwannc said:

Hello, I come back to you to ask you two questions:
What is the "open" variable for? I guess it's to send if the checkout is open or not, but using a "trunk_in_use" is not enough?
What does the "unique" varialbe do here?
> _Cargo SVAR ["unique", _ val, true];
thank you very much for your help

 

EDIT:

I added to the config_vehicle the name of the safe and its max capacity, but when I press T, the inventory of the vehicle is not displayed.

_box setVariable["Trunk",["apple", 12],true];
 


_box setVariable["Trunk",["apple", 12],true];

 

If it doesn't work I cant be of much help. You could have any version, this version I use works fine for me. 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   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.


×
×
  • Create New...