Let's go back to the root and open the gameserver folder.
When you open the gameserver folder, you will see the "bin" and "lib" folders againOpen the bin
When opening the "bin" folder, you will see this bunch of files and folders.But, let's focus on the "configs" folder again.Then open the configs folder.
When opening the configs folder, you will see many ".properties" filesI think you’ll see about 27 or 28.We will focus on only five of them.
What are these below
We will again be in order of the image.Let's open the rate.properties fileYou can open them with any text editor
The rate.properties file is responsible for setting the item drop rate, enchantment rate and others.
I will give a brief explanation, not very detailed.You can edit the drop rates (the enchantment rates are different)through settings.
Example:
1% = 1000
10% = 10000
100% = 100000
I'm sorry for not explaining much about the item drop rate and others. I will explain it better in another tutorial.
Let's go to the next file.The network.properties.
Here will be the same network settings as the loginserver. However, with a difference in ports, from 8888 to 8889.
You will follow the following configuration below.
# Rmi connection host.
network.rmi.host = 127.0.0.1
# Rmi connection port.
network.rmi.port = 9000
# Host for server binding.
# Default: 0.0.0.0
network.host = 0.0.0.0
# Port for server binding. EVERY SERVICE HAS HIS/HER OWN PORT
# Default: 8889
network.port = 8889
I'll explain it very simple.The ip "127.0.0.1" is a local ip, so you don't need to put your ipv4 on.
Regarding ports 9000 and 8889, you do not need to open them on the firewall, as you are playing locally, so there is no need to open them.
In relation also to the "0.0.0.0" ip you do not need to change, as it is an ip that redirects, so it will automatically redirect the ip to your ip.
Now let's go to the next file.The server.properties
Here it will be very quick. Just follow the short explanation below
# External server IP for client connections.
# If localhost use 127.0.0.1
# If docker & localhost use host.docker.internal
# If external - use real ip
server.ip = 127.0.0.1
Now let's configure the debug.properties file
Here we will configure to disable server logs, and avoid using high memory and high cpu.Just follow the settings below and the explanation of what each one is.
# Disable collections spawn
# Default: false
debug.collections.spawn.disable = false
# Disable loading huge region images (for memory economy while tests)
# Default: false
debug.region.dataload.disable = false
# Enable actions debug
# Default: false
debug.actions.enable = false
# Enables AIScriptloader debug
# Default: false
debug.aiscriptloader.enable = false
"
debug.collections.spawn.disable" if you set "true" to this setting, it will disable collections from your server, this is a way to further optimize the game. And any form of collection, by mining, collecting trees, etc. will be disabled.
"
debug.region.dataload.disable" This setting if you put "True" it will disable the background landscapes when walking the map, when you walk, you can see landscapes very deep, it consumes a little RAM and CPU of your server, but, if you put " true "these landscapes can disappear.
"
debug.actions.enable" This setting if you set it to "true" it will show each step of each player, each action he does, with each NPC he speaks, and all of that will show on gameserver.batso it will consume a lot, but, a lot of cpu and ram.
"
debug.aiscriptloader.enable" This one applies the same as above, the difference is that it applies to monsters and npcs.
Now let's go to the last file and not least.
Events.properties
Well, basically this file is an event file, here you can configure the daily rewards (just activate and deactivate)and also the rewards for time online (Yes, you can put pearls for time online and any other item)I will be very brief, because it is not that important, but it is also not useless.
Follow the settings below if you wish to have rewards for logged in time.
# Enable Auto reward event.
# Default: true
events.auto.reward.enable = true
# Auto reward each 30 min.
# Default: 30
events.auto.reward.time = 30
# Auto reward mail name.
events.auto.reward.mail.name = Reward!
# Auto reward mail subject.
events.auto.reward.mail.subject = Staff, or other shit
# Auto reward mail message.
events.auto.reward.mail.message = Thanks for play!
# Auto reward ItemId;EnchantLevel;Count
events.auto.reward.items = 6;0;1000
Let's go to the explanations.
"
events.auto.reward.enable" It is basically if you want to activate this reward for logged time or not, "true" in case you want to leave it activated and "false" in case you don't want to.
"
events.auto.reward.time" Basically here you set the time when each reward will come.30 Minutes is the default, so every 30 minutes online the player will earn this reward.
"
events.auto.reward.mail.name" Here is basically the name of the email that will come in the "B" tab.You can rename the message to whatever you want.
"
events.auto.reward.mail.subject" Here is the name of the subject who sent the email. For example: Staff or Admin.
"
events.auto.reward.mail.message" Here is the message you will send via this email, thanking you for playing or anything else.
"
events.auto.reward.items" Here basically will be the items that you will send.
The example of 6; 0; 1000It works like this:
6 is the pearl (pearl id = 6)
0 is the enchantment level, you cannot send a pearl in the PEN, right.
1000 is the amount of pearls to be sent.