Jump to content
Zupa

[Release] Advanced Trading 2.1 !UPDATED!

Recommended Posts

Is it possible to show current trader stock in an itemised list, a la Arma 3 Epoch? Your UI reminds me of the A3E one and it'd be great to have a system similar to that, where upon having a natural economy, you can also see directly what is in stock, rather than categories, lists and having to click Buy on each item to see whether it is in stock. Guessing it's possibly an Arma 2 limitation also?

 

This might not be anything like what you're actually trying to achieve here, so ignore this if deemed unsuitable.

Share this post


Link to post
Share on other sites

Is it possible to show current trader stock in an itemised list, a la Arma 3 Epoch? Your UI reminds me of the A3E one and it'd be great to have a system similar to that, where upon having a natural economy, you can also see directly what is in stock, rather than categories, lists and having to click Buy on each item to see whether it is in stock. Guessing it's possibly an Arma 2 limitation also?

 

This might not be anything like what you're actually trying to achieve here, so ignore this if deemed unsuitable.

Correct me if I'm wrong Zupa, but with Single Currency there is no inventory. Items are for sale, or they're not. Single Currency does not use the SQL database for looking up prices or inventory. It's all stored in the trader files.

Share this post


Link to post
Share on other sites

Correct me if I'm wrong Zupa, but with Single Currency there is no inventory. Items are for sale, or they're not. Single Currency does not use the SQL database for looking up prices or inventory. It's all stored in the trader files.

 

Indeed, First version will def not support that.

 

Some updated screenshots

 

7xKeniR.jpg

 

PUoRqYz.jpg

Share this post


Link to post
Share on other sites

I would absolutely love this on my server but i'm not using the single currency.

Any plans on making a non-single currency one?

 

Yes. He stated early in the post, that it will support non single currency, just not the first release. :D

Share this post


Link to post
Share on other sites

Hey Zupa, you've been quiet for the last 2 days. No updates / releases. This thread made it back to the 2nd page. Bumping it back to the first.

 

Any updates?

Sorry m8es, i fell sick for the weekend so i wasn't able to work on it in the weekend

Share this post


Link to post
Share on other sites

Sounds good Zupa, if you need anything just let us know! Good luck and thank you for your contributions. I just got door management running and it's awesome!

Just a thought for your advanced trading. Maybe you can implement something similar for interactions between players? Maybe something similar to World of Warcraft where both players can place an item in the trade menu and both click accept to make the trade happen? Not sure if that's possible but it's an idea!

Thanks again!

Share this post


Link to post
Share on other sites

Zupa,

 

How's this going to work for traders that have a large inventory of items? Like my weapons trader on my Overpoch server has almost 200 ACR's alone. In total, I'd say that the weapons trader has close to 300-350 items in total.

 

When trying to buy, is it going to just ignore categories and give a giant list? That will be really frustrating for players to sort through when trying to find the item they want to buy. If this is the case, maybe a "search" field so players can type in a few characters and see any items that match that.

 

Eg: Type in "HK417" and it shows all HK417 guns that trader sells.

Share this post


Link to post
Share on other sites

Zupa,

 

How's this going to work for traders that have a large inventory of items? Like my weapons trader on my Overpoch server has almost 200 ACR's alone. In total, I'd say that the weapons trader has close to 300-350 items in total.

 

When trying to buy, is it going to just ignore categories and give a giant list? That will be really frustrating for players to sort through when trying to find the item they want to buy. If this is the case, maybe a "search" field so players can type in a few characters and see any items that match that.

 

Eg: Type in "HK417" and it shows all HK417 guns that trader sells.

 

doable, but lets keep that for future versions of the script. 

Share this post


Link to post
Share on other sites

My version of trade from vehicle only picks up every weapon in the vehicle and sells it , no mess,no fuss. If its there its gone and money in my pocket :) For me thats good enough!

 

This is also buying, and again, it's not to contest that script.

 

This is en extra full optional trade window.

 

Mass buying,seling from gear, vehicle, backpacks.

 

 

 

 

 

There have been some setbacks that slowed down the dev process, i'll try to bring an release ASAP.

Share this post


Link to post
Share on other sites

Hi Zupa,

 

Good to see this is progressing nicely.

 

One thing I thought I would mention is a limitation with the Hiveext.dll. 

 

Scanning through the SQL in the hivesql code I noticed that the calls for buying or selling are hard coded for individual item updates to the trader inventories (i.e. buy 1x tin of beans and the code will make a call to the DB 1 time to deduct 1 from the traders inventory in the DB, buy 10x tin of beans and the code needs to make the call to the hive 10 times :wacko: ).  This is not so much of an issue when there is the animation cycle between single item purchases but if someone buys 10 cans of beans using the gui it may start firing 10 updates at the DB in quick succession.  This in itself should not be too much of an issue for a reasonible MySQL server install but may cause some issues later around server restarts or with lots of players buying and selling at the same time. 

 

Have a scan of the code here.  The function is fetchTraderObject at the bottom of the file which is part of the 398 call initiated from server_tradeObject.sqf

 

It would probably be pretty easy to update the hive code to change this to a variable rather than a hard coded number allowing each call to update stock levels in more than a single item increment (yep another custom hive version) unless you have already worked around this some other way.

 

I came across this when checking out the code for adding items to traders and how the hive gets the data.  Just thought you may like the heads up in case you were not aware (as I wasn't until I fell across it).

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