ebayShopper e1b6125761 Fix Javelin selling and _HasKey check again
@oiad Add the Javelin magazine as trade_items to a trader which only
sells magazines (like FriendlyAssaultRifleAmmo) and the Javelin weapon
as trade_weapons to a trader which only sells weapons (like
FriendlyAssaultRifle), then test your changes from f8a230e with both in
your gear. You will see it allows you to sell all the magazines and the
weapon at both traders. This is because the only condition to add the
item to the sellable array is that it exists as an entry in the
category. It never checks the entry type. This commit will check to make
sure the type matches in the config and the player's inventory.

I changed your static "trade_any_vehicle" to find the type in the
config, because it could also be "trade_any_boat/bicycle/vehicle_free".
Boats are handled differently for the hitpoints check in sellItems.sqf.

Also I noticed that both the _HasKey check and your new _y == _myVehType
check were not working for upgraded vehicles _DZE[1-4] because they had
been swapped out to  _baseVehicle. I forgot to account for that when I
added that feature.

This should resolve both problems. I tested both and everything looks
good. It can do with some more thorough testing though. Note
DZE_SaleRequiresKey is false by default.
2017-11-07 16:53:33 -05:00
2017-03-10 13:50:33 -05:00
2017-11-04 16:14:16 -04:00
2014-07-27 23:17:00 -05:00
0.1
2012-11-04 20:28:50 -06:00
2014-02-11 20:46:39 +01:00
2017-04-21 13:04:36 -04:00

DayZ Epoch

Experimental DayZ mod

http://dayzepoch.com

Based on DayZ Mod Community edition

https://github.com/DayZMod/DayZ/blob/1.8.8/Documentation/Credits.md http://dayzmod.com


Included Custom Addons


Included Custom Islands


Initial Developers


GitHub Collaborators (In order of most commits)


GitHub Contributors (In order of most commits)


Special thanks

Description
Experimental DayZ Mod for Arma 2
Readme 2 GiB
Languages
C++ 50.6%
SQF 48.9%
PHP 0.3%
Batchfile 0.1%