[Help] Where can i find "bulk_items" / Trader

Timmih

New Member
Hi guys.

in first sry for my english but i try my best that u know what i will... ;)


ok...
I will add an new Trader for Gems to change to Specil Weapons/Magaines/Vehicle.

I add first the Trader and the Skin in the server_traders.sqf

Code:
// description
menu_hooker2 = [
   [["Change Ore",999],["Change Gems",998]],
   [],
   "neutral"
];

Next stepp i have add 2 new .hpp files (SpecialOre.hpp/SpecialGems.hpp)
Code:
class Category_999 {
   class ItemGoldBar {
     type = "trade_items";
     buy[] = {1,"PartOreGold"};
     sell[] = {1,"PartOreGold"};
   };
   class ItemSilverBar {
     type = "trade_items";
     buy[] = {1,"PartOreSilver"};
     sell[] = {1,"PartOreSilver"};
   };
   class PartOre {
     type = "trade_items";
     buy[] = {1,"PartGeneric"};
     sell[] = {1,"PartGeneric"};
   };
};

That are working.

Now comes the dificult part for me.... ;)

I will that u can buy ( for example ) for a Ruby 3 Magazines for the M107 or what ever. Who ca i realize that?
for example:
Code:
   class 10Rnd_127x99_m107 {
     type = "trade_items";
     buy[] = {1,"ItemRuby"};
     sell[] = {1,"ItemRuby"};
   };
here can i buy 1 magazine but i will that i get 3.. who can i realized this?

I found in the WHoleSaler.hpp they stay "bulk_mp9sd" for example... where can i find the file who stays how many items are in the bulk? While i think this where a solution of the problem or not?


I hope u know what i will to try ;)


Timmih
 
Back
Top