Suppe Posted April 22, 2015 Report Share Posted April 22, 2015 /* HS Blackmarket by Halv & Suppe */ The HS Blackmarket is a 'new' Trader-system for A3 Epoch, it was created in collaboration with Halv, Halv wrote the main part of the script, he is the true genius.Features: - Trader with Custom Dialog (Menu) - Trader with unlimited supply - You control how many Trader will spawn - Trader will spawn random over the Map - Trader will spawn in 5 different "Camps" - With persistent Vehicles or not persistent Vehicles - Easily edit/add Prices, Items, Vehicles, Weapons - Easily Blacklist Items, Vehicles, Weapons - Easily control about Vehicleammo - Vehicleammo count over restart (10 bullets left for the restart = 10 bullets left after restart) - Static and Random Traders - Work with stock Epoch AH and infistar - Work without emod ! - Work on every Map Pictures: Reveal hidden contents Download:https://github.com/GBR-Suppe/a3_epoch_HSBlackmarket Install: - Copy the "trader" Folder and the Stringtable.xml in your epoch.Mission - Add to your init: [] execVM "trader\init.sqf"; [] execVM "trader\resetvehicleammo.sqf"; [] execVM "trader\HALV_takegive_crypto_init.sqf"; - Add to your description.ext ( on the very top and if you use Halv's spawn script as well, you need only 1x the Halv_defines.hpp) #include "trader\Halv_defines.hpp" #include "trader\tradedialog.hpp" #include "trader\HSPricing.hpp" - (optional) Open epoch.Mission/trader/init.sqf to configurate the HS Blackmarket - (optional) Open epoch.Mission/trader/settings.sqf and resetvehicleammo.sqf to configurate the Vehicleammo - (optional) Open epoch.Mission/trader/HSPricing.hpp to configurate prices, or to add Items, Vehicles, Weapons and so on - (optional) Remove 1 Epoch Trader for every Blackmarket Trader you added (remove Epoch Trader: \Arma 3\@epochhive\epochconfig.hpp ,search for NPCSlotsLimit) - (optional) To get all messages of the traders (like the vehicleworldlimit check) you need: Edit your BE Filter: Reveal hidden contents createvehicle.txt Line 1 add: !="M_AT" !="SmokeLauncherAmmo" !="B_AssaultPack_cbr" !="B_AssaultPack_dgtl" !="B_AssaultPack_khk" !="B_AssaultPack_mcamo" !="B_AssaultPack_ocamo" !="B_AssaultPack_rgr" !="B_AssaultPack_sgg" !="B_Carryall_cbr" !="B_Carryall_khk" !="B_Carryall_mcamo" !="B_Carryall_ocamo" !="B_Carryall_oli" !="B_Carryall_oucamo" !="B_FieldPack_blk" !="B_FieldPack_cbr" !="B_FieldPack_khk" !="B_FieldPack_ocamo" !="B_FieldPack_oli" !="B_FieldPack_oucamo" !="B_Kitbag_cbr" !="B_Kitbag_mcamo" !="B_Kitbag_rgr" !="B_Kitbag_sgg" !="B_Parachute" !="B_TacticalPack_blk" !="B_TacticalPack_mcamo" !="B_TacticalPack_ocamo" !="B_TacticalPack_oli" !="B_TacticalPack_rgr" createvehicle.txt Line 2 add: !="smallbackpack_red_epoch" !="smallbackpack_green_epoch" !="smallbackpack_teal_epoch" !="smallbackpack_pink_epoch" publicvariable.txt Line 1 add: !="BIS_fnc_objectVar_obj2_1288" !="HALV_takegive" !="HSPV_traderrequest" setvariable.txt Line 1 add: !="bis_fnc_objectvar_var" = "BIS_fnc_objectVar_obj2_1280" scripts.txt 7 createDialog add: !="createDialog "HS_trader_dialog";" scripts.txt 7 addMagazine add: !="if !(player canAdd (_x select 0)) exitWith {};\nplayer addMagazine[_x select 0, _x select 1];" scripts.txt 7 setVelocity add: !="_smokeg setVelocity _Gvel;" scripts.txt 7 addItem add: !="_this call HS_additemtolb;false" scripts.txt 7 exec add: !="trader\init.sqf";" For infistar Server: Reveal hidden contents add these: 9999,9980 to the allowedDialogs. like this: _allowedDialogs = [-1,602,7777,7778,9999,9980]; and /* Remove Actions Plr and /* Remove Actions Objs ^ must both be false. for Halv for Suppe Copyright © 2015 Halvhjearne & Suppe This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/. Ghostrider-GRG, Richie, irok and 14 others 17 Link to comment Share on other sites More sharing options...
sparrow8332 Posted April 22, 2015 Report Share Posted April 22, 2015 Nice Release :-) Link to comment Share on other sites More sharing options...
Suppe Posted April 22, 2015 Author Report Share Posted April 22, 2015 On 4/22/2015 at 7:18 PM, sparrow8332 said: Nice Release :-) Thanks :D Have fun :D I have published more, after approval from a moderator..... sparrow8332 1 Link to comment Share on other sites More sharing options...
Richie Posted April 22, 2015 Report Share Posted April 22, 2015 Very nice release Link to comment Share on other sites More sharing options...
DirtySanchez Posted April 22, 2015 Report Share Posted April 22, 2015 Sweet sunshine on a cold day! Link to comment Share on other sites More sharing options...
pr0dukt Posted April 23, 2015 Report Share Posted April 23, 2015 hah Can bring back the bandit and hero traders with something like this, but i do like lack of persistence for armored/armed vehicles. Link to comment Share on other sites More sharing options...
Metalfoundry Posted April 23, 2015 Report Share Posted April 23, 2015 Great, thnx dude! Will try it today! Metal Link to comment Share on other sites More sharing options...
Rocko_MB Posted April 23, 2015 Report Share Posted April 23, 2015 Is there a way of making it persistent? I was thinking of adding not special/armoured vehicles, but bringing back the Vehicle Trader like A2. Thus removing the massive amounts of wild spawn vehicles all over the map, and giving the playuer base something to spend their cash on instead of stock piling Krypto and hoarding items in storage. R. ZENITHOVMAN 1 Link to comment Share on other sites More sharing options...
Suppe Posted April 23, 2015 Author Report Share Posted April 23, 2015 On 4/23/2015 at 9:22 AM, Rocko_MB said: Is there a way of making it persistent? I was thinking of adding not special/armoured vehicles, but bringing back the Vehicle Trader like A2. Thus removing the massive amounts of wild spawn vehicles all over the map, and giving the playuer base something to spend their cash on instead of stock piling Krypto and hoarding items in storage. R. hey, not possible without changing the epoch code, so, no..... unless someone has a solution yet, but I do not think so. Link to comment Share on other sites More sharing options...
Suppe Posted April 23, 2015 Author Report Share Posted April 23, 2015 gladly..... a lot of fun with it .... @produkt yes :D its possible with that :D rpg and so on work to with the script :D Link to comment Share on other sites More sharing options...
DirtySanchez Posted April 23, 2015 Report Share Posted April 23, 2015 found this last night is some of my old notes.call EPOCH_server_save_vehiclemight work if added to the script, haven't tested it yet.Add it below the vtoken and slot increase code.You also might want to include some checks for !vehicleplayer and add in a cancellation count based on movement.Ive already incorporated those last two and gone crazy with additions.I think im upto 25 server side variables and 40 uses in the mission side...Thanks for all the extra work when I felt I was so close to finishing up my new vision rebuild!call EPOCH_server_save_vehicle Link to comment Share on other sites More sharing options...
DirtySanchez Posted April 23, 2015 Report Share Posted April 23, 2015 On 4/23/2015 at 11:34 AM, Suppe said: gladly..... a lot of fun with it .... @produktyes :D its possible with that :D rpg and so on work to with the script :DNo need for the call like this for those items. They will work with just the scripting.This is what you need to have craftable bikes too surprised no one has mentioned that yetJust combine this and your favorite or custom menu. add in craftable bike, use any of those scripts out there and modify them to call the server side file you setup to spawn in the ebike. Link to comment Share on other sites More sharing options...
hakimos00 Posted April 24, 2015 Report Share Posted April 24, 2015 Hi Suppe, when you buy the vehicle from trader he takes the krypto but if you go after to normal trader & Buy something you retrieves the money you have paid for the vehicle :( then you got a free vehicle any idea how to fix that ? Link to comment Share on other sites More sharing options...
Suppe Posted April 24, 2015 Author Report Share Posted April 24, 2015 On 4/24/2015 at 6:24 PM, hakimos00 said: Hi Suppe, when you buy the vehicle from trader he takes the krypto but if you go after to normal trader & Buy something you retrieves the money you have paid for the vehicle :( then you got a free vehicle any idea how to fix that ? really ? this is new.... i test it this weekend....... Link to comment Share on other sites More sharing options...
hakimos00 Posted April 24, 2015 Report Share Posted April 24, 2015 On 4/24/2015 at 7:55 PM, Suppe said: really ? this is new.... i test it this weekend....... yes really :) Link to comment Share on other sites More sharing options...
hakimos00 Posted April 26, 2015 Report Share Posted April 26, 2015 On 4/24/2015 at 7:55 PM, Suppe said: really ? this is new.... i test it this weekend....... hi, Suppe have you found a solution ? Link to comment Share on other sites More sharing options...
Schrubbdiwupp Posted April 26, 2015 Report Share Posted April 26, 2015 Hi! Very nice Script! :D But is there a way to set custom vehicleskins for the trader?? Link to comment Share on other sites More sharing options...
no1stumper Posted April 29, 2015 Report Share Posted April 29, 2015 where is zivilist init? Link to comment Share on other sites More sharing options...
Metalfoundry Posted April 29, 2015 Report Share Posted April 29, 2015 On 4/29/2015 at 12:34 AM, no1stumper said: where is zivilist init? Add it with the Arma Editor.. Link to comment Share on other sites More sharing options...
no1stumper Posted April 30, 2015 Report Share Posted April 30, 2015 On 4/29/2015 at 5:57 AM, Metalfoundry said: Add it with the Arma Editor.. mmmk. So I am adding a init to the mission pbo? Link to comment Share on other sites More sharing options...
hakimos00 Posted May 1, 2015 Report Share Posted May 1, 2015 Hi Suppe, still nothing about this problem ? On 4/24/2015 at 6:24 PM, hakimos00 said: Hi Suppe, when you buy the vehicle from trader he takes the krypto but if you go after to normal trader & Buy something you retrieves the money you have paid for the vehicle :( then you got a free vehicle any idea how to fix that ? Thx Link to comment Share on other sites More sharing options...
Suppe Posted May 1, 2015 Author Report Share Posted May 1, 2015 sorry, please be patient .... miss the time currently... but please be patient... i work on it in the next 7 days..... hakimos00 1 Link to comment Share on other sites More sharing options...
VAKE Posted May 1, 2015 Report Share Posted May 1, 2015 I currently use this script on my server and it is great. One thing I've noticed though, is that even though the script removes the Krypto and requires the correct amount of Krypto to purchase vehicles, the Krypto seems to come back once the player relogs/adds funds. It's as though the script removes the Krypto from the display, but not actually from the player's wallet (or whatever code controls the amount of Krypto they have on them). Link to comment Share on other sites More sharing options...
hakimos00 Posted May 1, 2015 Report Share Posted May 1, 2015 On 5/1/2015 at 8:14 PM, Suppe said: sorry, please be patient .... miss the time currently... but please be patient... i work on it in the next 7 days..... nice nice take ur time :) Link to comment Share on other sites More sharing options...
Suppe Posted May 6, 2015 Author Report Share Posted May 6, 2015 I tested hours on end. I find no solution at the moment. :( I'll try to get help. or someone has a solution ? I have looked through the entire epoch data, or I have looked at, for example ZCP, the there is also crypto rewards, but somehow I do not understand it... I understand just nothing more on the subject :huh: it may only work with the emod ?!? I'll think about it, I think about something, could now but take a long time. but the basic idea is cool, and would fit so well with Epoch :angry: maybe a epoch dev can help ?!? :blink: or a mega mega scripting pro ?!? scripting ninja :ph34r: ? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now