Jump to content
Zupa

[Release] Advanced Trading 2.1 !UPDATED!

Recommended Posts

Version 2.1 Released.

Alternative selling/buying system. ( Run default & this one next to each other ).

Supported:

  • Config traders
  • Single Currency & Default Currency
  • Selling/Buying everything from and to Gear/Vehicle/Backpack

Not supported

  •  No database traders (database traders make your server slow)
  •  No ability to buy or sell vehicles.
What was added to 2.0 
  • Default Currency Supported
  • Item Filter
  • Info display of selected Item
  • Buying to gear and backpack
What was added to 2.1
  • Fixed content display of vehicles and backpacks.

Description

Sell directly from backpack, gear or the vehicle ( close) where you were driver from. Decide which items you sell. Traders will only make it possible to trade the items they accept ( goes fully automatic, so only items they accept will be listed on the left).

You push items to the right to sell, only the items on the right willl get sold.

Safety measurements

  • Double checks what was deleted from backpacks/vehicles so that people can not cheat.
  • Can only sell from your backpack and the vehicle were u was the last driver from ( in 30m radius)

 

Update 1.0 - 2.0 instructions
  1.  Delete your old 'zupa' folder
  2.  Paste the new 'zupa' folder
  3.  Edit the config.sqf to match your server
  4.  Done
 
Items only show for admins when using infiSTAR AH & Admintools ?!
  1. Update infiSTAR to latest version.
  2. edit config.sqf to reflect your server correctly.
 

Installation instructions

Code:

https://github.com/DevZupa/AdvancedTrading/releases/tag/v2.1

Install Instructions

0. Drop the zupa folder in your mission file
 

1. In your fn_selfactions.sqf

Place:

_buyV = player addAction ["<t color='#0059FF'>Advanced Trading</t>", "zupa\advancedTrading\init.sqf",(_traderMenu select 0), 999, true, false, "",""];
s_player_parts set [count s_player_parts,_buyV];

above

// Database menu
_buy = player addAction [localize "STR_EPOCH_PLAYER_289", "\z\addons\dayz_code\actions\show_dialog.sqf",(_traderMenu select 0), 999, true, false, "",""];
s_player_parts set [count s_player_parts,_buy];

2. in description.ext, add the following on the bottom

#include "zupa\advancedTrading\ZSCdefines.hpp" // if u don't have it from ZSC
#include "zupa\advancedTrading\advancedTrading.hpp"

3. Add the following exceptions to your antihack if needed

AdvancedTrading
711197

4. Edit the config.sqf to match your server.

 

Screenshots:

 
 dH1V6hH.jpg

 5xa90aA.jpg

Edited by Zupa
Explenation for infiSTAR advanced trading fix.

Share this post


Link to post
Share on other sites

Looks really promising! Looking forward to it already. :)

Did the epoch trader system inspire you on that?

 

Edit: I mean the A3 Epoch trade system. Sorry :)

 

Actually no, (well maybe a bit cus of the user experience) ^^ i just wanted to a gui for trading from vehicle, so i looked at the code of that, but it was messy and not optimised, so i just made it all from scratch ^^)

 

I'm sorry Csus , i know u were working on something simular  ( without the gui i think).

Share this post


Link to post
Share on other sites

Awesome work there. Cant wait for the first release. 

 

How do you always come up with all these ideas? :D

 

Would it also be possible to buy more items with only one animation, e.g. you want to buy cinder blocks ând have the option to buy "50" with only one animation.

Share this post


Link to post
Share on other sites

Awesome work there. Cant wait for the first release. 

 

How do you always come up with all these ideas? :D

 

Would it also be possible to buy more items with only one animation, e.g. you want to buy cinder blocks ând have the option to buy "50" with only one animation.

qty would be awesome. this is how I do qty trader

 

// North Wholesaler
menu_RUS_Commander = [
[["Wholesale",555]],
[
["CinderBlocks","ItemBriefcase100oz",20,1,"buy","Briefcase 100oz","Cinder Blocks",101], // Add a comma on the end if you have more entries (array)
["MortarBucket","ItemBriefcase100oz",10,1,"buy","Briefcase 100oz","MortarBucket",101], // Add a comma on the end if you have more entries (array)
["PartWoodLumber","ItemGoldBar10oz",10,1,"buy","ItemGoldBar10oz","PartWoodLumber",101], // Add a comma on the end if you have more entries (array)
["PartPlankPack","ItemGoldBar10oz",10,1,"buy","ItemGoldBar10oz","PartPlankPack",101], // Add a comma on the end if you have more entries (array)
["ItemPole","ItemGoldBar10oz",10,5,"buy","ItemGoldBar10oz","ItemPole",101], // Add a comma on the end if you have more entries (array)
["EvMoney","ItemGoldBar10oz",1,1,"buy","ItemGoldBar10oz","EvMoney",101] // Add a comma on the end if you have more entries (array)
],
"neutral"
];

Share this post


Link to post
Share on other sites

 

qty would be awesome. this is how I do qty trader

 

// North Wholesaler
menu_RUS_Commander = [
[["Wholesale",555]],
[
["CinderBlocks","ItemBriefcase100oz",20,1,"buy","Briefcase 100oz","Cinder Blocks",101], // Add a comma on the end if you have more entries (array)
["MortarBucket","ItemBriefcase100oz",10,1,"buy","Briefcase 100oz","MortarBucket",101], // Add a comma on the end if you have more entries (array)
["PartWoodLumber","ItemGoldBar10oz",10,1,"buy","ItemGoldBar10oz","PartWoodLumber",101], // Add a comma on the end if you have more entries (array)
["PartPlankPack","ItemGoldBar10oz",10,1,"buy","ItemGoldBar10oz","PartPlankPack",101], // Add a comma on the end if you have more entries (array)
["ItemPole","ItemGoldBar10oz",10,5,"buy","ItemGoldBar10oz","ItemPole",101], // Add a comma on the end if you have more entries (array)
["EvMoney","ItemGoldBar10oz",1,1,"buy","ItemGoldBar10oz","EvMoney",101] // Add a comma on the end if you have more entries (array)
],
"neutral"
];

 

 

Dont worry, the buying will be almost the same but the >> button will be a text field where u can put in the quantity of the item selected on the left.

Also when you are buying, the items listed on left stay there because it will be the trader his item ofcourse ^^ 

 

On the right side it will say then -> 10x  30Rnd 5.1

Share this post


Link to post
Share on other sites

Awesome work there. Cant wait for the first release. 

 

How do you always come up with all these ideas? :D

 

Would it also be possible to buy more items with only one animation, e.g. you want to buy cinder blocks ând have the option to buy "50" with only one animation.

 

Whatever you buy or sell in not matter what quantity, it will only do 1 loop ( the loop is for executing the script in the right way) , this will not be interruptable to ensure the big process running behind it.

Share this post


Link to post
Share on other sites

idk if its good to release that now, cuz there will be  trader overhaul in 1.0.6.

 

Can you collaborate the changes? ^^

 

Cus the current changes are like nihil:

 

https://github.com/vbawol/DayZ-Epoch/blob/master/SQF/dayz_code/compile/player_traderMenuConfig.sqf

 

+ , i go a feeling epoch 2 will only continue on merge requests and whenever VBAWOL feels like doing something on it ( don't blame him tho, would be 10 times the more fun to work on epoch 3

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.

Loading...

  • Similar Content

    • By Vladick
      BSBS Server IP: 216.244.93.103:7802
      Website: https://bsbsepoch.000webhostapp.com/
      Discord: https://discord.gg/PVn8PvG
      Server Features:
      PvPvE Database wiped 1/5/18 ESS V3 spawn selection Coins and Global Banking WAI missions and Roaming DZAI Bandits Customized map additions Skalisky Bridge Skalisky Island Bandit Camp with high loot (fun mission!) Garage Door Opener Virtual Garage Deploy bike Refuel, Repair, Rearm Take clothes Bury Body Butcher Body Locate vehicle with keys and GPS One plot poll per player Indestructible bases Trader Safe Zones Day/Night Schedule 4-hour restarts
    • By Brian Soanes
      To unlock vehicles left in your traders over a server restart, open your epoch_server.pbo

      In epoch_server\compile\epoch_vehicle\EPOCH_load_vehicles.sqf
      Find
      if (_allowDamage) then { Just above that, add this
      A3E_SafeZonePosArray = [ [[18451.9,14278.1,0]], //Altis East trader [[13333.5,14494.3,0]], //Altis Central trader [[6192.46,16834,0]] //Altis West trader ]; { if (_vehicle distance (_x select 0) < 200) then { _vehicle lock false; diag_log format["Vehicle %1 left in trader unlocked @ %2", _class, mapGridPosition _vehicle]; }; } forEach A3E_SafeZonePosArray; Pack pbo and you're good to go
    • By JakeQue
      Hi, me again.
       
      For some reason when i spawn in and collect coins or loadout the next time i disconnect and come back it puts me back into spawn and money is all disappeared. 

      There's no hive errors.
      The only error in the Server RPT is :
      And I have 2 errors in my client RPT. Looks like they relate to zsc but I have reinstalled it from scratch and still the same.
      and 
       
      Sorry to be such a noob with this one!!
    • By Thug
      In the file server_spawnTraders.sqf
      private "_trader"; { _trader = createAgent [_x select 0,_x select 1,[],0,"CAN_COLLIDE"]; {_trader removeMagazine _x;} count magazines _trader; removeAllItems _trader; // removeAllWeapons _trader;//this is commented out so traders have weapons removeBackpack _trader; _trader switchMove ""; _trader setDir (_x select 2); _trader setVehicleInit "this disableAI 'ANIM'; this disableAI 'AUTOTARGET'; this disableAI 'FSM'; this disableAI 'MOVE'; this disableAI 'TARGET'; this setBehaviour 'CARELESS'; this forceSpeed 0; this allowDamage false;"; _trader setUnitAbility 0.6; _trader disableAI "ANIM"; _trader disableAI "AUTOTARGET"; _trader disableAI "FSM"; _trader disableAI "MOVE"; _trader disableAI "TARGET"; _trader setBehaviour "CARELESS"; _trader forceSpeed 0; _trader allowDamage false; _trader enableSimulation false; } count _this; processInitCommands; What would I have to do to get the Traders to move like they did in v1.0.5.1
      I have tried but can not get it to work.
    • By Thug
      I have an overpoch Sauerland server. The vehicle traders are not spawning when you buy. The SOB takes your money and gives you a key, but no vehicle.  The arrow comes up for about 12 seconds.  After the restart, they are there, all on top of each other.
      NO, I do not have infistar installed.  It brakes the server. No admin tools at all.
      Here are my server and client RPTs. Can someone please take a look for me?
      Client
      Server
      All other traders work.
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...