summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2016-07-10HULD generator: added .pot file headerHaru1-2/+19
- For compliance with gettext's specifications (and compatibility with online translation management services Signed-off-by: Haru <haru@dotalux.com>
2016-07-10HULD: Improved .po file parser to properly read concatenated stringsHaru2-57/+142
- For compliance with gettext's .po file specifications Signed-off-by: Haru <haru@dotalux.com>
2016-07-10HPM Hooks UpdateHercules.ws4-0/+33
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2016-07-10Merge pull request #1350 from 4144/scconfHaru4-50/+17
Extend with new flag sc_config.txt
2016-07-10Fixed SC_OFFERTORIUM and SC_MAGNIFICATRidley1-5/+9
They should cancel each other, not prevent the usage (like Kyrie and Assumptio) Closes #1222 as merged Signed-off-by: Haru <haru@dotalux.com>
2016-07-10Use different interface members for start sc effects and show started effect ↵Andrei Karas2-2/+4
to other. Added interface member clif->sc_continue for already started effects.
2016-07-10Add sc_config.txt flag for always visible effects.Andrei Karas2-48/+13
Remove hardcoded visible effects from status.c and add visible flag into sc_config.txt
2016-07-09HPM Hooks UpdateHercules.ws2-112/+112
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2016-07-09Fixed some warnings while compiling HPMHookingHaru1-14/+14
Signed-off-by: Haru <haru@dotalux.com>
2016-07-09HPM Hooks UpdateHercules.ws4-104/+530
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2016-07-09Merge pull request #1333 from Smokexyz/SkillDBLibHaru2-237/+1316
Skill DB TXT files to LibConfig + converter
2016-07-09SkillDB TXT to Libconfig + converterSmokexyz2-237/+1316
The conversion of 5 skill database files - skill_require_db.txt skill_unit_db.txt skill_cast_db.txt skill_castnodex_db.txt and skill_db.txt to Libconfig file skill_db.conf a PHP CLI converter is included to read from the above mentioned files and create a skill_db.conf in the same directory.
2016-07-09db2sql plugin now will dump equip_job as Decimalinstead of Hexadecimalhemagx1-2/+2
2016-07-08Add comments into defines in socket.cAndrei Karas1-70/+70
2016-07-08Added epoll as event-dispatcher on linux (instead of select())Florian Wilkemeyer1-5/+165
Note: It will be enabled by default if configure detects that the system has support for epoll To enforce usage of select run configure with --enable-epoll=no
2016-07-08Fixed a compilation error on packetvers older than 20071106Haru2-40/+48
Fixes #1345 Signed-off-by: Haru <haru@dotalux.com>
2016-07-08Fix crashes if from login table can be read NULL field.Andrei Karas1-2/+2
2016-07-07Dont show compilation warnings about root if building for ci.Andrei Karas1-0/+6
And allow run under root in ci.
2016-07-05HPM Hooks UpdateHercules.ws4-10/+259
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-07-05Move static methods into interface in status.cAndrei Karas2-375/+391
2016-07-05Move static methods into interface in skill.cAndrei Karas2-27/+35
2016-07-05Merge pull request #1339 from 4144/scriptchecksHaru2-4/+16
Add one check for possible script issue.
2016-07-04Add one check for possible script issue.Andrei Karas2-4/+16
2016-07-04Added messages to discourage running Hercules as root.Haru1-4/+61
- You should not run Hercules as root, period. - If you understand all of the security implications, and still want to do so (and you don't want to be bothered by the warning messages), open core.c and uncomment the line: "//#define I_AM_AWARE_OF_THE_RISK_AND_STILL_WANT_TO_RUN_HERCULES_AS_ROOT" - If you're running Hercules as root because your provider forces (or encourages) you to do so, it means they're really doing it wrong, so please complain to them and ask them for an alternative. - More info on the topic: http://www.tldp.org/HOWTO/Security-HOWTO/local-security.html https://wiki.debian.org/sudo http://wiki.centos.org/TipsAndTricks/BecomingRoot http://fedoraproject.org/wiki/Configuring_Sudo https://help.ubuntu.com/community/RootSudo http://www.freebsdwiki.net/index.php/Root Signed-off-by: Haru <haru@dotalux.com>
2016-07-03Replace all warnings to errors if build bot configure option enabled.Andrei Karas1-0/+4
2016-07-03Add into travis configure option --enable-buildbot.Andrei Karas4-0/+8
Also disable all known default warnings if build bot option enabled.
2016-07-03Add --run-once flag into char server.Andrei Karas1-0/+14
2016-07-03Add --run-once flag into login server.Andrei Karas1-0/+14
2016-07-02Fixed a rare crash in the db2sql pluginHaru1-9/+13
- Fixes a crash that would occur when an item_db2 inherited item was missing Script, OnEquipScript or OnUnequipScript while its item_db counterpart had it. Signed-off-by: Haru <haru@dotalux.com>
2016-07-02Removed some unused variablesHaru1-8/+0
Follow-up to ff75470f7085c3ca23a9b16be43881b6bc953345 Signed-off-by: Haru <haru@dotalux.com>
2016-07-02HPM Hooks UpdateHercules.ws15-0/+30
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-07-02Added 'GENERATED FILE DO NOT EDIT' to the auto-generated filesHaru2-2/+5
See https://github.com/Reviewable/Reviewable/wiki/FAQ#how-do-i-tell-reviewable-that-a-file-is-generated-and-should-not-be-reviewed Signed-off-by: Haru <haru@dotalux.com>
2016-07-02Trivialities: indentation fixesHaru12-53/+49
Signed-off-by: Haru <haru@dotalux.com>
2016-07-02Removed a duplicate check from inter_guild_tosql()Haru1-12/+7
Signed-off-by: Haru <haru@dotalux.com>
2016-07-02Fix wrong item deletion in guild creation code if emperium item not in ↵Andrei Karas1-2/+5
inventory.
2016-07-02Fix guild skill range check in clif_parse_UseSkillToId.Andrei Karas1-1/+1
Wrong check prevent from using custom skills with id after guild skills.
2016-07-01Merge pull request #1328 from HerculesWS/exp_fixesHaru4-41/+63
Fix EXP modifiers to match aegis modifiers calclution.
2016-06-30Use item attribute as flags varible. Now only ATTR_BROKEN flag exists.Andrei Karas7-18/+27
2016-06-30Add #ifndef for different constants / sizes in status.hAndrei Karas1-2/+6
2016-06-30Add #ifndef for different constants in mmo.hAndrei Karas1-0/+68
2016-06-29Fix EXP modifiers to match aegis modifiers calclution.hemagx4-41/+63
- Now Renewal Level Penalty being calculated in pc_calcexp only - Now Guild Tax is being paid after experience modifiers and not before - Now Experience modifiers being calculated in right way as in aegis (Race modifiers -> PK modifiers -> Premium modifiers -> Buff modifiers)
2016-06-25Corrected an issue that prevented changing default languagesHaru1-12/+26
The script->get_translation_file_name() is more robust (and actually works) now. Signed-off-by: Haru <haru@dotalux.com>
2016-06-25generate-translations: code style and optimizationsHaru1-30/+36
Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Added mesf() command (combination of mes() and sprintf())Haru3-1/+37
Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Added _$() macro to the script engine to mark a translatable string as ↵Haru3-6/+32
format string - Strings passed to sprintf should use the _$() macro instead of _(), to generate the .pot translation template with a directive to correctly handle the % sign. - Strings passed through _() are instead explicitly marked as regular (non format) strings if they contain '%'. Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Split sprintf logic out of buildin_sprintf (to be used by other commands as ↵Haru1-214/+234
well)
2016-06-25Added option to strip hard line-breaks from `mes` dialogsHaru2-0/+25
- The `\r` character, in a `mes` dialog, is normally represented by the client as a hard line-break. - Since a client may have different requirements in line lengths (for example using a font with different size or metrics), an user might wish to ignore hard-wraps and let the client automatically soft-wrap instead. - If you want to hard-wrap (official default), keep the SCRIPT_MES_STRIP_LINEBREAK define commented out. - If you want to let the client soft-wrap automatically (may work better for custom clients), uncomment it. - Imprved HULD handling of `\r` (to avoid control characters in the generated file) - Please note that this requires cooperation by script writers: * Each `mes` should contain one and only one sentence, possibly without using the '+' concatenation (but, rather, sprintf). * Two separate sentences (where a hard-wrap is required even for soft-wrapped text) should always go into separate `mes` commands. * Following the above two recommendations, also produces a better quality translations .pot file. Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Removed the uncommon (and useless) multi-argument variant of mes()Haru1-12/+3
Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Moved translations template generator to a pluginHaru6-146/+232
Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Improved the format of the exported .pot translation templateHaru2-2/+25
Signed-off-by: Haru <haru@dotalux.com>