Jump to content
  • 0

Add item trader


Assomnia

Question

Plop all !

new problem .... 

i want to add the pipebomb to the hero and the bandit traders. Therefore I made a new category banditexplosives.hpp and heroexplosives.sqf

new number of the category is new and fine  

I include the new category to the traders

basically I can see the category in game. I can buy the items via trader or advanced trading. But I can't sell the pipebomb and only this one, from the inventory. I can sell them from the backpack tho... 

someone can help ?

i use epoch 1051 and the coins system and advanced trading from @Zupa, who else ?! ;)

thanks folks

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0
  On 12/8/2016 at 9:17 PM, Assomnia said:

Plop all !

new problem .... 

i want to add the pipebomb to the hero and the bandit traders. Therefore I made a new category banditexplosives.hpp and heroexplosives.sqf

new number of the category is new and fine  

I include the new category to the traders

basically I can see the category in game. I can buy the items via trader or advanced trading. But I can't sell the pipebomb and only this one, from the inventory. I can sell them from the backpack tho... 

someone can help ?

i use epoch 1051 and the coins system and advanced trading from @Zupa, who else ?! ;)

thanks folks

 

Expand  

you only need open your \MPMissions\DayZ_Epoch_11.Chernarus\ZSC\config\Category\

BanditWeapons.hpp  and HeroWeapons.hpp and add

class PipeBomb {
		type = "trade_items";
		buy[] ={200000,"Coins"};
		sell[] ={100000,"Coins"};
	};

in this two. no needs new categories if ure not using another new AI trader

Link to comment
Share on other sites

  • 0

Hello Juan 

just for the trial I put the pipebomb without new category in the heroammunition. The problem was the same. Can't sell it from inventory but from backpack ok. The buying is not a problem. Can it come from the fact that the pipebomb is a 2 slots inventory item ?

Link to comment
Share on other sites

  • 0
  On 12/9/2016 at 10:43 AM, oldmatechoc said:
Expand  

 

 

Hello there,

Thanks for the link. I saw it already actually and made the change. Unfortunately this is a fix for a DB selling with the traders using Gold to exchange. As I'm using the Coins system the DB is not involved anymore. Therefore I have 2 files : trade_items.sqf and trade_items_wo_db.sqf. The fix can be added in the trade_items_wo_db.sqf but I don't find the way I can fix that in the trade_items.sqf.

Where can I place this fix in the Trade_items.sqf :

  Reveal hidden contents

 

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
  • Discord

×
×
  • Create New...