Inter server C++ conversion (#2322)
* Renamed inter.c to inter.cpp and refactored it * Converted inter_server.conf to inter_server.yml * Updated the makefiles * Refactored inter-server storage handling logic * Fixed a bug with wrong maximum being displayed When you took out an item of the storage it would always display the maximum amount of the normal storage. * Fixed a bug with storages that are over maximum Thanks to @Akkarinage, @Lemongrass3110 and @Jeybla
This commit is contained in:
committed by
Lemongrass3110
parent
f9c6b92a63
commit
cc1d26fe74
34
conf/inter_server.yml
Normal file
34
conf/inter_server.yml
Normal file
@@ -0,0 +1,34 @@
|
||||
# This file is a part of rAthena.
|
||||
# Copyright(C) 2017 rAthena Development Team
|
||||
# https://rathena.org - https://github.com/rathena
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
###########################################################################
|
||||
# Config for Storages
|
||||
#
|
||||
# To access the premium storage, use script command 'openstorage2'.
|
||||
# If premium storages are added, copy the structure of the storage table and match the table name in this config.
|
||||
# The 'max' of premium storages are not adjusted by 'vip_storage_increase' config nor MIN_STORAGE.
|
||||
#
|
||||
# Structure:
|
||||
# - ID: <storage_id> // (int) Storage ID will be used for script command 'openstorage2'.
|
||||
# Name: "<storage name>" // (string) Storage name will be sent to the client to display on the title bar.
|
||||
# Table: "<storage_table>" // (string) Name of table where storage is saved. The table stucture is the same as the default storage table.
|
||||
# Max: <max_amount> // (int) *optional* Maximum number of items in storage. MAX_STORAGE will be used if no value is defined.
|
||||
|
||||
Storages:
|
||||
- ID: 0
|
||||
Name: "Storage"
|
||||
Table: "storage"
|
||||
Reference in New Issue
Block a user