Jump to content

Lapua Magnum


Recommended Posts

The 'Private Hive Tools' posted in the Resources section here is a great way of adding new items. Not done it directly via Navicat personally, I'm a noob with it.

Once you have PHT installed under instance 11, change it to instance 17 within the 'Settings' tab and make any trader edits you wish.

Link to comment
Share on other sites

this will add it to the Black market vendor at Stary (using this one as I am adding the M32 to this trader)

 

 

INSERT INTO 'traders_data' ('item','qty','buy','sell','order','tid','afile') VALUES ('["baf_lrr_scoped",3]',10,'[5,"ItemGoldBar10oz",1]','[4,"ItemGoldBar",1]',0,526,'trade_weapons')

 

INSERT INTO 'traders_data' ('item','qty','buy','sell','order','tid','afile') VALUES ('["5Rnd_86x70_L115A1",1]',10,'[5,"ItemGoldBar",1]','[1,"ItemGoldBar",1]',0,527,'trade_items')

 

I don't know if you need to add to the Trader Items table first, if so then...

 

INSERT INTO `trader_items`(`classname`, `type`, `group`, `afile`) VALUES ("baf_lrr_scoped",3,"Rifle Sniper",'trade_weapons')

INSERT INTO 'trader_items'('classname', 'type', 'group', 'afile') VALUES ("5Rnd_86x70_L115A1",1,"Ammo Rifle Sniper",'trade_items')

Link to comment
Share on other sites

this will add it to the Black market vendor at Stary (using this one as I am adding the M32 to this trader)

 

 

INSERT INTO 'traders_data' ('item','qty','buy','sell','order','tid','afile') VALUES ('["baf_lrr_scoped",3]',10,'[5,"ItemGoldBar10oz",1]','[4,"ItemGoldBar",1]',0,526,'trade_weapons')

 

INSERT INTO 'traders_data' ('item','qty','buy','sell','order','tid','afile') VALUES ('["5Rnd_86x70_L115A1",1]',10,'[5,"ItemGoldBar",1]','[1,"ItemGoldBar",1]',0,527,'trade_items')

 

I don't know if you need to add to the Trader Items table first, if so then...

 

INSERT INTO `trader_items`(`classname`, `type`, `group`, `afile`) VALUES ("baf_lrr_scoped",3,"Rifle Sniper",'trade_weapons')

INSERT INTO 'trader_items'('classname', 'type', 'group', 'afile') VALUES ("5Rnd_86x70_L115A1",1,"Ammo Rifle Sniper",'trade_items')

 

What would I need to change to add this to the Hero traders too?

Link to comment
Share on other sites

Lapua Magnum is the type of ammunition by the way, the actual rifle is an AWM. If you ever player Counterstrike it is the same rifle. You can add the standard version with green furniture as above, BAF_LRR_scoped_W

 

Check it out using Navicat, traders_data table, sort tid and scroll to the trader identifier used on you instance. Identifiers found in the mission server_trader.sqf. If you updated to 1.0.1.4 you should have it. 

Link to comment
Share on other sites

Yeah my bad next time I won't bother. Perhaps next time you will also spend a little time to answer your own question, by the looks of it you didn't even check the trader on your server to confirm what your player said. Or check your db, or even simply google to find the weapon class name. 

 

But as myself, and others have said learn to use Navicat, it is super easy to use and will allow you to check exactly what your traders have. 

Link to comment
Share on other sites

  • 1 year later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...