summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2017-09-17Add support for bitmask arrays in the item_db Upper fieldHaru3-3/+14
Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Fix a typo in the constant ITEMUPPER_THIRDUPPERHaru2-2/+2
Was: ITEMUPPER_THURDUPPER Signed-off-by: Haru <haru@dotalux.com>
2017-09-17HPM Hooks UpdateHaru4-0/+34
Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Add support for parsing arrays of constants as bitmasks in the item_dbHaru2-7/+64
Fields marked as constant bitmasks will support the following syntaxes: Field: 10 // Decimal value Field: 0xA // Hexadecimal value Field: "FOO" // Constant Field: [2, 8] // Array of decimal values Field: [0x2, 0x8] // Array of hexadecimal values Field: ["FOO", "BAR"] // Array of constants Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Move other view-related variables to `sd->status.look`Haru6-78/+80
The following variables are now moved to `sd->status.look` (from `sd->status`): `head_top`, `head_mid`, `head_bottom`, `robe` Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Differentiate variables that hold a ViewSprite and a Subtype (part 2)Haru8-22/+36
`sd->status.shield` is renamed to `sd->status.look.shield` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->has_shield`, of boolean type (to detect the presence of a shield) Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Differentiate variables that hold a ViewSprite and a weapon SubtypeHaru9-82/+94
`sd->status.weapon` is renamed to `sd->status.look.weapon` and only holds ViewSprite IDs. Its previous other meaning is now transferred to `sd->weapontype` (holding the currently equipped weapon type, considering both hands at once) Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Split 'View' in two different fields in the item databaseHaru10-76/+110
- The field was used both for sprite view IDs and for weapon or ammunition subtypes. Now the fields 'ViewSprite' and 'Subtype' are used respectively. Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Reimplement getiteminfo/setiteminfo in a safer and more maintainable wayHaru2-61/+113
Signed-off-by: Haru <haru@dotalux.com>
2017-09-17Add item subtype (weapon/ammunition type) constantsHaru1-0/+37
Signed-off-by: Haru <haru@dotalux.com>
2017-09-12Fix several typos and grammar mistakesHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2017-09-05Add missing checks in attaching item to rodex mail.Andrei Karas1-5/+26
Also fix buffer overflow in requesting items from rodex mail.
2017-09-05Adjust rodex packet versions based on tests.Andrei Karas1-1/+1
2017-08-13Save near 200 places in arrays with size SC_MAX.Andrei Karas1-1/+1
SC_X conatants can be with any numbers.
2017-08-13Reported rodex bug fixes.Andrei Karas1-1/+2
2017-08-11Fix some wrong packet versions in rodex code.Andrei Karas1-4/+4
Also replace some numbers to constants.
2017-08-11Whitespace fixesHaru3-9/+9
Signed-off-by: Haru <haru@dotalux.com>
2017-08-11Fix various issues detected by coverity in rodex-related codeHaru3-7/+7
Follow-up to 544da439e81ff78ec102b754e16b6cc0a28a6d0a Signed-off-by: Haru <haru@dotalux.com>
2017-08-10Fix possible overflow in npc_parsename.Andrei Karas1-1/+1
2017-08-08Disable warning -Wdiscarded-qualifiers in hpm code for now.Andrei Karas2-0/+13
2017-08-08Fix hpm issues after rodex commit.Andrei Karas6-13/+13
2017-08-08HPM Hooks UpdateHercules.ws11-0/+2328
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-07-30Implementation of RoDEXKirieZ30-24/+2628
2017-07-27HPM Hooks UpdateHercules.ws4-0/+270
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-07-27Fix possible buffer overflows with snprintf.Andrei Karas10-16/+16
2017-07-27Move handling unknown sc code from status_change_start into separate function.Andrei Karas2-3/+14
2017-07-27Move adding icon code from status_change_start into separate function.Andrei Karas2-12/+21
2017-07-27Move getting val_flag based on type from status_change_start into separate ↵Andrei Karas2-128/+143
function.
2017-07-27Move set options from status_change_start into separate function.Andrei Karas2-164/+189
2017-07-27Move code for stop actions into separate function from status_change_start.Andrei Karas2-64/+80
2017-07-27Move from status_change_start code for end previous sc to separate function.Andrei Karas2-255/+285
2017-07-27Move some immune/resists checks from status_change_start into separate ↵Andrei Karas2-120/+157
functions.
2017-07-17Merge pull request #1760 from Smokexyz/memitemtosql-fixHaru7-233/+285
Optimisation of char_memitemdata_to_sql()
2017-07-12Merge pull request #1790 from mekolat/channel2Haru1-3/+5
Allow to use channelmes without attached player
2017-07-11merge meko/set-sd2gumi1-4/+5
2017-07-11HPM Hooks UpdateHercules.ws2-8/+8
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-07-11Added getcalendartime script commandKirieZ3-0/+104
Signed-off-by: Haru <haru@dotalux.com>
2017-07-11Added time limit parameter to setquestKirieZ3-14/+19
Signed-off-by: Haru <haru@dotalux.com>
2017-07-11Merge pull request #1788 from mekolat/type2Haru1-0/+64
new buildin: getdatatype()
2017-07-11Removed 'NO MSG' message in clients < 20101123. Follow up ↵Jedzkie1-2/+1
https://github.com/HerculesWS/Hercules/commit/60f9a68f90d495323e9e4533c7a1573ca5d86e71
2017-07-10fix setting pc var on another pcgumi1-4/+5
2017-07-05Update HPM Hooking (Follow up 7a2447204644b53e64a730c9c8428cc5b33f5aa2)Smokexyz4-8/+42
2017-07-05Optimisation of char_memitemdata_to_sql()smokexyz3-225/+243
Implements the storage saving algorithm for inventory, cart and guild storage tables. Total queries to a table in any call would be no more than 4 per call, replacing the original algorithm that could make a lot more through single update queries per call. This significantly reduces the run time speed for saving/loading of item data from the game server.
2017-07-04Merge pull request #1773 from dastgir/bug/item-optionssmokexyz1-6/+6
Item option fixes
2017-07-04Merge pull request #1782 from dastgir/bug/sellitemsmokexyz1-0/+11
Fixes crash with sell shop.
2017-06-29Fix compatibility with MariaDB 10.2Haru1-1/+4
This removes a direct access to a member of the `MYSQL` object and replaces it with the proper accessor for forward/backward compatibility. Signed-off-by: Haru <haru@dotalux.com>
2017-06-28HPM Hooks UpdateHercules.ws4-15/+49
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-06-28Fix a compile error on ARM (Raspberry Pi 3)Haru2-9/+19
According to the C specifications, va_list isn't necessarily a pointer (it can be an array of pointers, or just about anything). As such, we can't cast NULL to va_list. Fixes #1793 Related to 5fd40de233d3a897284f771338cbf8e657182261 Signed-off-by: Haru <haru@dotalux.com>
2017-06-25Adjust packet version based on client tests.Andrei Karas1-7/+7
Thanks to Asheraf.
2017-06-25Update HPM hooks.Andrei Karas4-8/+108