summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2016-08-13Added atcommand configEmistry3-2/+11
Based on @Lemongrass3110's commit https://github.com/rathena/rathena/commit/9157318ee9939728b8d332a5668c13d4ad0a6f8b: Added a configuration to enable the atcommands baselevel and joblevel to trigger their respective npc events. This will help you guys with testing your custom scripts that are listening to OnPCBaseLvUpEvent or OnPCJobLvUpEvent. For safety reasons we only trigger the events on level increase.
2016-08-10Enable @b/joblvl trigger OnPCLvUpEventEmistry1-0/+3
- OnPCBaseLvUpEvent - OnPCJobLvUpEvent
2016-07-31Clean up hercules.ws leftovershemagx1-1/+1
Closes #1379
2016-07-25Added a missing entry into messages.conf and added some comments where ↵epuncker10-68/+58
missing, ref #1282
2016-07-19Add skill atributes for allow moving while casting skill.Andrei Karas5-32/+58
New SkillInfo attributes: FreeCastReduced - allow move while casting with slowdown FreeCastNormal - allow move while casting with normal speed
2016-07-17Improve a bit performance in bl_getall_area.Andrei Karas1-27/+73
2016-07-17Removed Leftover of skill_db.txtDastgir1-7/+0
2016-07-14Merge pull request #1361 from HerculesWS/coverity-fixesAndrei Karas11-148/+120
Fixed various issues reported by coverity
2016-07-14Fixes warp facing direction.KirieZ4-1/+11
Fixes #1240 Closes #1353 as merged
2016-07-14Changed mmo_charstatus::status_point and mmo_charstatus::skill_point to intHaru2-42/+19
Fixes several -Wsign-compare issues Signed-off-by: Haru <haru@dotalux.com>
2016-07-14Changed chat_data::minLvl and chat_data::maxLvl to int and renamed to ↵Haru3-14/+14
min_level and max_level Fixes several -Wsign-compare issues Signed-off-by: Haru <haru@dotalux.com>
2016-07-14Changed map_session_data::change_level_2nd and ↵Haru3-27/+25
map_session_data::change_level_3rd to int Fixes several -Wsign-compare issues Signed-off-by: Haru <haru@dotalux.com>
2016-07-14Changed mmo_charstatus::base_level and mmo_charstatus::job_level to intHaru7-47/+45
Fixes several -Wsign-compare issues Signed-off-by: Haru <haru@dotalux.com>
2016-07-14Changed various functions to take a const sdHaru2-11/+11
- Affected functions: pc->nextbaseex(), pc->nextjobexp(), pc->thisbaseexp(), pc->thisjobexp(), pc->readparam() - Fixes an accidental '+=' in pc->readparam() due to copy-paste failure, detected thanks to the const enforcement (luckily it had no current ill effects, since the value was 0) Signed-off-by: Haru <haru@dotalux.com>
2016-07-14Changed pc->maxbaselv() and pc->maxjoblv() to return signed int and take ↵Haru3-18/+19
const sd Removes some FIXME (and continues a chain reaction) Fixes some of the many -Wsign-compare warnings Signed-off-by: Haru <haru@dotalux.com>
2016-07-14Fixed Coverity CID 150315: Integer overflowed argumentHaru2-14/+14
Fixes a possible unsigned underflow (and changes the type of some unnecessarily unsigned variables to signed, such as pc->max_level[][]) Signed-off-by: Haru <haru@dotalux.com>
2016-07-14Fixed Coverity CID 150316: Copy into fixed size bufferHaru1-7/+5
Fixes a buffer overflow Signed-off-by: Haru <haru@dotalux.com>
2016-07-14Simplify clif_skillcasting and rename to clif_useskill.Andrei Karas3-5/+6
2016-07-13Add missing includes into HPM.Andrei Karas1-0/+4
2016-07-12Extract some code from battle_calc_damage into battle_calc_pc_damage.Andrei Karas2-24/+36
2016-07-12Add into skill.c some handling for unknown skills/skill units.Andrei Karas4-76/+66
Also improve a bit cast end functions call.
2016-07-12Various changes to the grfio interfaceHaru1-1/+2
Mostly stylistic changes. Cleaned up documentation. Signed-off-by: Haru <haru@dotalux.com>
2016-07-12Interface grfio.chemagx2-11/+12
2016-07-12Interface random.chemagx3-28/+28
2016-07-12Interface md5calc.chemagx1-2/+2
2016-07-12Fix reading skill_db.confAndrei Karas2-27/+35
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-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-09Fixed some warnings while compiling HPMHookingHaru1-14/+14
Signed-off-by: Haru <haru@dotalux.com>
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-08Fixed a compilation error on packetvers older than 20071106Haru2-40/+48
Fixes #1345 Signed-off-by: Haru <haru@dotalux.com>
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-04Add one check for possible script issue.Andrei Karas2-4/+16
2016-07-03Add into travis configure option --enable-buildbot.Andrei Karas2-0/+4
Also disable all known default warnings if build bot option enabled.
2016-07-02Removed some unused variablesHaru1-8/+0
Follow-up to ff75470f7085c3ca23a9b16be43881b6bc953345 Signed-off-by: Haru <haru@dotalux.com>
2016-07-02Trivialities: indentation fixesHaru9-39/+40
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 Karas6-18/+22
2016-06-30Add #ifndef for different constants / sizes in status.hAndrei Karas1-2/+6
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-25Added mesf() command (combination of mes() and sprintf())Haru2-0/+34
Signed-off-by: Haru <haru@dotalux.com>
2016-06-25Added _$() macro to the script engine to mark a translatable string as ↵Haru2-2/+11
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>