summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2017-11-18Assert on the right buffer size on the StmtBind functionsHaru1-36/+59
Signed-off-by: Haru <haru@dotalux.com>
2017-11-18Pass the correct types and sizes to the StmtBind functionsHaru10-231/+249
Fixes #1531 (and other similar issues) Signed-off-by: Haru <haru@dotalux.com>
2017-11-18Merge pull request #1896 from MishimaHaruna/skill_id_idxHaru21-515/+1012
Skill ID / IDX fixes
2017-11-18Merge pull request #1469 from dastgir/2016-3_IOT_NONEHaru1-26/+44
Fixes #1397
2017-11-05HPM Hooks UpdateHaru4-263/+399
Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Fix/clarify various incorrect modulo operationsHaru4-26/+27
Most relevantly, `skill_lv%11 - 1` is not a valid skill item requirement index, since it can return -1 depending on the skill_lv. It was replaced with `(skill_lv - 1) % MAX_SKILL_ITEM_REQUIRE`, which always returns a value in the 0 ~ MAX_SKILL_ITEM_REQUIRE range. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Reduce confusion between skill IDs and skill DB indexes (part 2)Haru14-42/+44
Remove MAX_SKILL in favor of MAX_SKILL_DB, when referring to the maximum skill DB index. This is opposed to MAX_SKILL_ID, the maximum skill ID. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Use the skill DB accessors where possible/appropriateHaru4-64/+76
This includes some renamed local variables, in order to minimize the cases of unsafe variable reuse. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Reduce confusion between skill IDs and skill DB indexes (part 1)Haru2-116/+494
Rewrite skill DB accessors to clarify the difference between IDs and indexes, and to report a backtrace to the console when an invalid ID is passed. The type of the skill_id and skill_lv arguments has been changed to int. Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Fix a subtle error in case skill->unit_group_newid overflowsHaru1-7/+8
The incorrect handling of the overflowed values would cause certain skill unit entries to get stuck and never get deleted correctly. A possible symptom of the issue are monsters that become immune to certain AoE spells having the UF_NOOVERLAP flag (Storm Gust, Lord of Vermillion, etc). Signed-off-by: Haru <haru@dotalux.com>
2017-11-05HPM Hooks UpdateHercules.ws4-0/+33
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-11-04Refresh npc after changing fields in setunitdata.Andrei Karas4-11/+31
2017-11-04Add into setunitdata/getunitdata new options UDT_ROBE and UDT_BODY2.Andrei Karas2-0/+12
2017-11-04Add view_data related fields to npc into setunitdata/getunitdata.Andrei Karas1-0/+37
2017-11-04Allow each npc use own view_data structure.Andrei Karas4-6/+16
Allow npc to use player classes (for older than 20170726 npc visible as players). View_data structure can be copied from predefined view_data lists created new if npc using player type.
2017-11-04Merge pull request #1889 from 4144/fixpacketsHaru8-17/+121
Fix boss flag and add 2017-10-25 client packets
2017-11-04Merge pull request #1894 from Asheraf/qtypeHaru1-18/+24
update qtype constants to support new 2017 client icons.
2017-11-04Merge pull request #1865 from dastgir/2017-1_equipoption_modHaru1-15/+20
setequipoption Modification
2017-11-02update qtype constants to support new 2017 client icons.Asheraf1-18/+24
2017-11-01Add support for 2017-10-25 - 2017-11-01 clients.Andrei Karas2-2/+86
2017-10-30Add monster spawn boss flag for miniboss: miniboss_monsterAndrei Karas6-15/+35
also fix boss_monster flag for works as mvp and not like mini boss. unhide boss flag if hp bar disabled.
2017-10-30HPM Hooks UpdateHercules.ws4-0/+438
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-10-29Add configurable way to show char servers with color in list in client.Andrei Karas3-1/+68
Options configurable in login-server.conf in users_count section.
2017-10-27Add missing interface members in login.c.Andrei Karas2-16/+41
2017-10-23Fix warning with gcc-7.Andrei Karas1-1/+1
2017-10-22Fix an incorrect null check in BUILDIN(logmes)Haru1-2/+3
The incorrect check would cause the `logmes()` script command to never log to database (but rather output a backtrace to the console) Signed-off-by: Haru <haru@dotalux.com>
2017-10-21Fix various warnings on Visual Studio 2017Haru2-19/+17
Fixes #1867 Signed-off-by: Haru <haru@dotalux.com>
2017-10-21Merge pull request #1833 from Emistry/mapflag_noautolootHaru6-0/+10
Add NoAutoloot mapflag
2017-10-21Merge pull request #1825 from HerculesWS/cardfixHaru1-32/+3
Remove separate cardfix definition for pre-re/re
2017-10-22Add NoAutoloot mapflagEmistry Haoyan6-0/+10
- Enable server to disable autoloot settings for certain maps.
2017-10-21Merge pull request #1854 from Asheraf/skillHaru1-1/+2
Change skill_init_unit_layout to report skill id instead of index
2017-10-21HPM Hooks UpdateHercules.ws4-0/+33
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-10-21Add names for some unnamed enums.Andrei Karas2-5/+5
Need for packet parser.
2017-10-21Add rodex 2017 packets.Andrei Karas11-64/+213
2017-10-21Add packets for 64 bit exp.Andrei Karas7-57/+127
Also update some functions for support 64 bit exp calculation.
2017-10-21Add packets and keys for new clients.Andrei Karas2-0/+163
2017-10-21Change skill_init_unit_layout to report skill id instead of indexAsheraf1-1/+2
2017-10-21Merge pull request #1827 from HerculesWS/cell-stack-hiddennpcHaru3-2/+7
Ignore hidden units in the cell stack limit checks
2017-10-21Merge pull request #1812 from mekolat/partyleader2Haru4-1/+9
add option to restrict party leader change to same map
2017-10-20Merge pull request #1852 from mekolat/getmapinfo2mekolat1-0/+78
2017-10-20Merge pull request #1843 from mekolat/logmes2mekolat1-9/+31
2017-10-20Modified setequipoption to allow removal of equip options.Dastgir1-15/+20
2017-10-05add buildin_getmapinfogumi1-0/+78
2017-10-04add buildin_dressroomEdwin1-0/+49
2017-10-02Update Sorcerer and Sura alternate body style in atcommand.cEdwin1-0/+2
2017-09-21allow buildin_logmes to log to the atcommand tablegumi1-9/+31
2017-09-21Update hpm hooks.Andrei Karas2-11/+11
2017-09-21Convert some functions from int32 types to int64.Andrei Karas5-31/+54
This mainly need for base and job exp, because now they using int64 type.
2017-09-21Add shuffle packets for all released 2017 ragexeRe clients.Andrei Karas1-0/+918
2017-09-21Add shuffle packets for all 2016 ragexeRe clients.Andrei Karas1-15/+933