summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-08-14Clean a bit .travis.yml.Andrei Karas1-5/+0
2015-08-14Clean doc dir from client or server data related docs.Andrei Karas7-2970/+0
2015-08-14Remove conf dir.Andrei Karas1123-960649/+0
2015-08-14Remove cache dir.Andrei Karas4-32/+0
2015-08-14Allow sell items to market shop.Andrei Karas1-1/+1
2015-08-14FIXUP (HPM Hooks Update)Haru2-4/+226
2015-08-14FIXUP (allow compilation of plugins with multiple compilation units)Haru3-9/+25
2015-08-13HPM Hooks UpdateHaru1-2/+5
2015-08-13Automatic HPM symbol sharingHaru10-119/+11
Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Removed some unnecessary shared symbols, already present in interfacesHaru4-272/+278
Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Moved sql_handle into the HPMi interfaceHaru7-12/+5
Signed-off-by: Haru <haru@dotalux.com>
2015-08-13HPM Hooks UpdateHaru14-0/+109
2015-08-13Added core HPM interfaceHaru15-83/+73
Signed-off-by: Haru <haru@dotalux.com>
2015-08-13HPM Hooks UpdateHaru1-1/+1
2015-08-13Enabled HPMDataCheck for login and char serversHaru4-19/+10
Signed-off-by: Haru <haru@dotalux.com>
2015-08-13HPM Hooks UpdateHaru5-121/+229
Signed-off-by: Haru <haru@dotalux.com>
2015-08-13HPM compatibility improvementsHaru152-469/+557
Improved compatibility, portability and standards conformance. - Since it is not possible to portably and reliably re-use the core's symbols in plugins, symbols are no longer exported unless explicitly required, in the UNIX builds. This mimics the Windows behavior and adds HPM compatibility to OSes such as FreeBSD. Credits to Andrei Karas for making this possible. - For convenience, it is no longer necessary to call GET_SYMBOL, since the plugin will automatically import all the available symbols when it's loaded, depending on the included headers. - Plugins are now supposed to include the "common/hercules.h" header before including anything else. Incluing common/HPMi.h, common/cbasetypes.h or conf/core.h is no longer necessary, as those are guaranteed to be automatically included by hercules.h. - HPM API version bumped to 1.1. Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Moved session array into the socket interfaceHaru12-214/+210
Signed-off-by: Haru <haru@dotalux.com>
2015-08-13HPM Hooks UpdateHaru15-0/+22728
Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Added HPMHooking support for common interfacesHaru3-5/+60
Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Minor symbols cleanup to avoid conflictsHaru4-45/+45
Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Added showmsg HPM interfaceHaru11-121/+173
- The showmsg interface is automatically imported into plugins by the HPM (just like previously, the various Show* functions were). This change requires no actions from plugin developers. - stdout_with_ansisequence is now available through showmsg->stdout_with_ansisequence - msg_silent is now available through showmsg->silent - console_msg_log is now available through showmsg->console_log - timestamp_format is now available through showmsg->timestamp_format - Plugin-safe macros are provided, so that all Show* and Clear* calls will require no changes. - vShowMessage is provided through the public API, as va_list variant of ShowMessage. - vShowMessage_ is no longer part of the public API. If necessary, va_list variants of the other Show* functions will be added at a later time as follow-ups. Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Cleaned up strlib interfaceHaru2-120/+73
- Replaced some macro calls with the proper interface syntax - Removed useless macros and workarounds - Removed no longer needed library function re-definitions API changes summary: - The macros remove_control_chars(), trim(), normalize_name(), stristr(), e_mail_check(), config_switch(), safestrncpy(), safestrnlen(), safesnprintf(), strline(), bin2hex() can now be safely used both inside and outside strlib.c - The macros strnlen() and strtok_r() can now be safely used both inside and outside strlib.c, on the systems where they are necessary. The systems that provide those natively, aren't affected by this change. - jstrescape() is now strlib->jstrescape() - jstrescapecpy() is now strlib->jstrescapecpy() - jmemescapecpy() is now strlib->jmemescapecpy() - a custom strtoull() implementation is no longer provided, since all supported systems and compilers provide a library implementation. Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Cleaned up socket interfaceHaru16-210/+190
- Replaced some macro calls with the proper interface syntax - Removed useless macros and workarounds API changes summary: - WFIFOSET() can now be safely used both inside and outside socket.c - RFIFOSKIP() can now be safely used both inside and outside socket.c - do_close() is now sockt->close() - flush_fifo() is now sockt->flush() - flush_fifos() is now sockt->flush_fifos() - getips() is now sockt->getips() - host2ip() is now sockt->host2ip() - ip2str() is now sockt->ip2str() - ntows() is now sockt->ntows() - make_connection() is now sockt->make_connection() - make_listen_bind() is now sockt->make_listen_bind() - realloc_fifo() is now sockt->realloc_fifo() - realloc_writefifo() is now sockt->realloc_writefifo() - session_isActive() is now sockt->session_is_active() - session_isValid() is now sockt->session_is_valid() - set_defaultparse() is now sockt->set_defaultparse() - set_eof() is now sockt->eof() - set_noblocking() is now sockt->set_noblocking() - str2ip() is now sockt->str2ip() Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Improved plugin compile flag detection by the configuration scriptHaru2-140/+10
- This fixes plugin compilation on FreeBSD and Debian failing due to a missing -fPIC, in combination with some upcoming changes. Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Added script_mapquit plugin (moved from the StaffPlugins repository)Haru3-17/+80
The plugin is used by the Travis CI build, and it makes more sense to be present here, so that it can be kept up to date when the HPM is updated, to avoid build failures. Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Automatically run ./config.status --recheck when necessaryHaru1-1/+5
Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Added check for execinfo.h/backtrace() to the configure scriptHaru3-7/+94
- This fixes compilation on systems such as FreeBSD, where -lexecinfo is necessary, or Cygwin, where execinfo.h is not available. Signed-off-by: Haru <haru@dotalux.com>
2015-08-13Corrected some include guardsHaru2-6/+6
- Fixes some future issues with the HPMDataCheck system. Signed-off-by: Haru <haru@dotalux.com>
2015-08-12Fix weapon field size in char_mmo_char_tobuf.Andrei Karas1-1/+1
2015-08-12HPM Hooks UpdateHercules.ws1-6/+6
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-08-12Merge pull request #636 from 4144/equipposHaruna2-3/+16
Add n parameter to function pc_equipitem_pos.
2015-08-12Merge branch 'master' of https://github.com/HerculesWS/HerculesDastgir45-333/+3103
2015-08-12typo fix @ Eclage questDastgir1-1/+1
2015-08-12Fixed some issues reported by CoverityHaru2-2/+2
Follow-up to 5090bdf750017f0d631401edd563c452bd10ec24, 84e02ac28fbb15c58d0a0f8a916b49663198b05b Signed-off-by: Haru <haru@dotalux.com>
2015-08-11Add n parameter to function pc_equipitem_pos.Andrei Karas2-3/+16
2015-08-11HPM Hooks UpdateHercules.ws7-96/+33
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-08-11Merge pull request #633 from HerculesWS/subnetAndrei Karas8-184/+302
subnet.conf overhaul
2015-08-11subnet.conf overhaulHaru8-184/+302
The subnet.conf system has been rewritten to offer greater flexibility, and to fix some issues that appeared with 838321a36c79e71117320154c9b611c99e93af03. It is now possible to enter, separately, LAN subnets: - `lan_subnets`: This is essentially the same feature present in the old subnet.conf. Each entry in this list defines a (LAN, private) subnet the server is in. Clients connecting from the same subnet, will be redirected to the LAN IP rather than the default public IP. The format has been simplified, and it only requires one IP and one subnet mask (as opposed to a character and a map server IP). - `allowed`: Allowed IPs are IP ranges a server (char to login or map to char) can connect from. Any attempt to connect as a server from an IP not included here, will fail. For convenience, a wildcard range (matching all possible IP addresses) has been provided (`0.0.0.0:0.0.0.0`), but it is very advisable to edit it to a more restrictive set. - `trusted`: Trusted IPs are IP ranges excluded from the IPban checks. This may be useful, for example, to exclude the server's own IP from ipbans, in case of false positives. Any IP ranges added to this list are also implicitly included in the allowed IP ranges.
2015-08-11Merge pull request #635 from 4144/fixscriptsHaruna1-2/+5
Fix issue #634. Delay actual item deletion after running item script.
2015-08-11Fix issue #634. Delay actual item deletion after running item script.Andrei Karas1-2/+5
2015-08-11HPM Hooks UpdateHercules.ws3-0/+155
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2015-08-11Merge pull request #625 from 4144/scripthooksHaruna9-48/+103
Add scripts invoking hooks
2015-08-10Add script interface function run_pet. It do same thing as run.Andrei Karas3-1/+3
2015-08-10Add script interface function run_npc. It do same thing as run.Andrei Karas5-15/+17
2015-08-10Move unequip item script function call into function ↵Andrei Karas3-4/+22
script_run_item_unequip_script.
2015-08-10Move equip item script function call into function script_run_item_equip_script.Andrei Karas4-5/+25
2015-08-10Move use item script function call into function script_run_use_script.Andrei Karas5-23/+36
2015-08-10Added support for visual Studio 2015Haru16-2/+2504
Please report any issues Signed-off-by: Haru <haru@dotalux.com>
2015-08-10Fixes #630, RC_NonBoss was including all races even if they weren't meant to be.Dastgir1-16/+16