• 0
Ryan N

"you have tried to purchase an item and tell them the code '3' Thank you!"

Question

I am getting the above problem on my ExileZ Chernarus Redux server using the ETM (Easy Trader Mod) ALL the classes containing RHS items are priced at 0 and when you try to buy any item you get the above message, this is my first time resorting to the Exile forums and I was hoping some of you coding gods could help a guy out :) because I am really stuck at the moment.

Here is my config.cpp https://pastebin.com/rqnVJVh1

Here is my RPT File https://pastebin.com/bPj1ZUUW

And here is my server start bat https://pastebin.com/dC4MjX4G

20190225134738_1.jpg

Share this post


Link to post
Share on other sites

4 answers to this question

  • 0

3 is in relation to the catch/throw in ExileServer_system_trading_network_purchaseItemRequest

if !(isClass (missionConfigFile >> "CfgExileArsenal" >> _itemClassName) ) then
{
	throw 3;
};

The price is missing in class CfgExileArsenal, that's why your items show 0 cost

Edited by MGTDB

Share this post


Link to post
Share on other sites
  • 0

@MGTDB So what does this actually mean sorry but this is well out of my comfort zone, I have never even seen the "CfgExileArsenal" does it basically mean I have to add the data from the RHS #include prices to the "CfgExileArsenal" then everything should work as expected, its funny because NIArms actually worked the first time so how come RHS is different?

Edited by Ryan N

Share this post


Link to post
Share on other sites
Advertisement
  • 0

Either in the mission file/config or called from the mission file/config, like

class Exile_Item_CarWheel						{ quality = 1; price = 100; };

or within that block

#include "traders\someMod\someItemList.hpp"


 

Share this post


Link to post
Share on other sites
  • 0

@Ryan N - Something else you can do is to look at the ORIGINAL Exile files and see how they did, then mirror that.  Pull up one item that you know is being sold and then examine the files.  Notice, file is PLURAL.

:)

 

 

Share this post


Link to post
Share on other sites
Advertisement

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

  • Recently Browsing   0 members

    No registered users viewing this page.