Vendor maintenanceRate

Zorkar

New Member
Joined
Jun 18, 2016
Messages
3
Hello everyone,

I am trying to change the vendors (for merchant player) maintenance rate. I have found the baseMaintenanceRate for houses and harvesters but can't find the settings for the vendor "baseMaintenanceRate".

If someone can help me I will appreciate.

Thanks a lot guys !

Z.
 

eqsanctum

Member
Joined
Mar 26, 2015
Messages
153
Yeah, been looking for the same thing. I thought I knew where it was but I was wrong
 

tatwi

Member
Joined
May 31, 2012
Messages
66
Correct me if I am wrong, but in

/MMOCoreORB/bin/scripts/managers/vendor_manager.lua

is not the final number in each line such as,

terminalNode:addChildNode(VendorSelectionNode("@player_structure:terminal_standard", "standard.iff", "", 30))

not the maintenance rate? I haven't verified in the game, but looking at the file as a whole, the numbers seem to fit what I remember the vendor rates should be.
 

Zorkar

New Member
Joined
Jun 18, 2016
Messages
3
tatwi said:
Correct me if I am wrong, but in

/MMOCoreORB/bin/scripts/managers/vendor_manager.lua

is not the final number in each line such as,

terminalNode:addChildNode(VendorSelectionNode("@player_structure:terminal_standard", "standard.iff", "", 30))

not the maintenance rate? I haven't verified in the game, but looking at the file as a whole, the numbers seem to fit what I remember the vendor rates should be.
Hello and thanks for the hint, but I have tried changing that number but the vendor's maintenancerate did not change.

I will continue to search.

Thanks again.

Z.
 

Halyn

That One Guy
Staff member
Moderator
Joined
Jan 11, 2015
Messages
257
Location
Empire in Flames
Were you generating a new vendor after making the change? Not everything is retroactive.
 

Zorkar

New Member
Joined
Jun 18, 2016
Messages
3
Halyn said:
Were you generating a new vendor after making the change? Not everything is retroactive.
Good point.

I will try regenerating it.

Thanks for the hint.
 

netyoda

Member
Joined
Oct 18, 2017
Messages
42
Looking through the code, that's not the maintenance rate, it's the merchant skill level in hiring that is required to use this vendor I believe.
 

netyoda

Member
Joined
Oct 18, 2017
Messages
42
Checking the code, you need to be looking at
src/autogen/server/zone/managers/auction/AuctionManager.h
and looking for
static const int SALESFEE = 10;
which occurs twice in the file

As I'm unfamiliar with how autogen is created I can't comment on where the value is stored prior to running the server for the first time.
 

Valkyra

Member
Joined
Aug 31, 2010
Messages
211
As I'm unfamiliar with how autogen is created I can't comment on where the value is stored prior to running the server for the first time.
Autogen files are compiled automatically in the Java engine3 tool, the 'prior' code as mentioned is in *.idl files based off the naming scheme of the cpp in autogen.
 

Teancum79

New Member
Joined
Aug 5, 2023
Messages
8
Hello everyone,

I am trying to change the vendors (for merchant player) maintenance rate. I have found the baseMaintenanceRate for houses and harvesters but can't find the settings for the vendor "baseMaintenanceRate".

If someone can help me I will appreciate.

Thanks a lot guys !

Z.
Hi I’m looking for the maintenance rates for homes etc. can you point me to the right file?

thanks
 

Aeryna

Moderator
Staff member
Moderator
Joined
Oct 10, 2017
Messages
359
Every building has its own maintenance. So you'll have to change the ones you need.

Code:
object_building_player_player_guildhall_corellia_style_01 = object_building_player_shared_player_guildhall_corellia_style_01:new {
    lotSize = 5,
    baseMaintenanceRate = 100, // Maintenance rate
    allowedZones = {"corellia", "talus"},
    publicStructure = 0,
    constructionMarker = "object/building/player/construction/construction_player_guildhall_corellia_style_01.iff",
    length = 7,
    width = 8,
    ....
Start from here. Building Lua files.
You don't need to rebuild your server, just start it.
 
Last edited:

Teancum79

New Member
Joined
Aug 5, 2023
Messages
8
Every building has its own maintenance. So you'll have to change the ones you need.

Code:
object_building_player_player_guildhall_corellia_style_01 = object_building_player_shared_player_guildhall_corellia_style_01:new {
    lotSize = 5,
    baseMaintenanceRate = 100, // Maintenance rate
    allowedZones = {"corellia", "talus"},
    publicStructure = 0,
    constructionMarker = "object/building/player/construction/construction_player_guildhall_corellia_style_01.iff",
    length = 7,
    width = 8,
    ....
Start from here. Building Lua files.
You don't need to rebuild your server, just start it.
Okay which file should I be in (been looking there’s a ton)
 

Aeryna

Moderator
Staff member
Moderator
Joined
Oct 10, 2017
Messages
359
Every building has its own maintenance. So you'll have to change the ones you need = Every file is a building.
 

Teancum79

New Member
Joined
Aug 5, 2023
Messages
8
Okay I’m really not a programmer I’m not sure which sub folder to be looking in.
 
Last edited:

Pastafreak

New Member
Joined
Mar 24, 2023
Messages
24
Okay I’m really not a programmer I’m not sure which sub folder to be looking in.
If you look at the code that Aeryna provided you, it states the folder structure in the code. Taking it from the top, the folder address would look something like Core3/MMOCoreORB/bin/scripts/object/building/player. Once you open the player folder you will see all of the files for player housing. Open each one that you wish to adjust and change the number after "baseMaintenanceRate =" to what ever you want your rate to be per hour.
 

Teancum79

New Member
Joined
Aug 5, 2023
Messages
8
Thanks I did not see a directory in the previous post I was blind deep diving the SRC subfolder.
 
Top Bottom