Jump to content
  • 0

Server Limit of Purchased Helicopters?


raincloud

Question

5 answers to this question

Recommended Posts

  • 0

Greetings,

 

So in order for a NPC trader to sell an item/vehicle, they first have to be sold this when they are saying they are temporarily out of stock?

 

I thought it might be something like that...now I have to figure out how this works?  Land the helo at the NEA in front of the vendor and click sell?  Hope he can "see" the helo....same goes for the vehicles....there are some decent vehicles spawned on my server which I have never seen before (MTVR Refueler, Vodnisk something or other -looks like a BTR with 2 PKM type machine guns on top).  

 

So it would give a 1:1 return then only?  You sell 1, someone else can only but 1...then its out again?  Oh does giving 1 helo/car/etc to an NPC at one particular city, give every trader that vehicle until its bought again or only that ONE TRADER in that one city?

Link to comment
Share on other sites

  • 0

You can also edit the traders stock levels through the database. :)

 

 

this requires access to the DB and the use of the servertraders.sqf in your mission file.

 

simply put:

in DB access traders_data

click inline and enter :  "SELECT * FROM `Traders_DATA` where tid = 493"

click GO

then edit the quantity directly.

 

alternatively 

 

How to add stock for a specific item:

In "Traders_DATA" table use SQL editor to filter by column "item" then "contains" then "Itemvault" then change the "qty" column to add more stock and save. Any changes to the qty will be live to the server instantly.

Or execute this SQL:

 

UPDATE `Traders_DATA` SET qty=10 WHERE `item` LIKE '%ItemVault%' AND qty=0;

 

We recommend running this code daily to ensure that traders have some stock except vehicles and boats since they should normally spawn dynamically and are already sold for profit.

 

UPDATE `Traders_DATA` SET qty=10 WHERE qty=0 AND afile<>'trade_any_vehicle' AND afile<>'trade_any_boat';

 

 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...