summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2017-09-19allow buildin_getgroupid to take a GIDMurilo_Bio1-7/+15
2017-09-19remove trailing whitespaces from sourcegumi11-53/+53
2017-09-19Fix compile errors with some specific PACKETVER valuesHaru2-4/+6
- PACKETVER <= 3 - PACKETVER == 20071106 - PACKETVER >= 20141016 && PACKETVER <= 20141022 - PACKETVER >= 20160921 Signed-off-by: Haru <haru@dotalux.com>
2017-09-18fix rogue whitespaces in rodex buildinsgumi1-3/+3
2017-09-18deprecate buildin_useatcmdgumi1-1/+1
2017-09-17Add support for bitmask arrays in the item_db Loc fieldHaru2-1/+10
Signed-off-by: Haru <haru@dotalux.com>
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