summaryrefslogtreecommitdiff
path: root/src/common
AgeCommit message (Collapse)AuthorFilesLines
2018-05-07HPM Hooks UpdateHercules.ws1-0/+2
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2018-05-02Fix possible buffer overflow in common.Andrei Karas3-4/+4
2018-04-07HPM Hooks UpdateHercules.ws1-0/+4
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2018-04-07Implementation of Attendance systemAsheraf1-0/+3
2018-04-04HPM Hooks UpdateHercules.ws1-0/+2
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2018-04-03Merge pull request #1986 from Megasantos/login_date_guildHaru1-0/+1
Implemented login date for guild members.
2018-04-03HPM Hooks UpdateHercules.ws1-0/+6
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2018-03-29Introduce defines PACKETVER_MAIN_NUM, PACKETVER_RE_NUM, PACKETVER_ZERO_NUM.Andrei Karas1-0/+16
PACKETVER_RE_NUM defined to PACKETVER only if defined PACKETVER_RE. PACKETVER_ZERO_NUM defined to PACKETVER only if defined PACKETVER_ZERO. PACKETVER_MAIN_NUM defined to PACKETVER only if not defined PACKETVER_RE and not defined PACKETVER_ZERO.
2018-03-14- Implemented login date for guild members.Jônatas Andreta1-0/+1
Signed-off-by: Megasantos <jonataandretta@hotmail.com>
2018-03-11Merge pull request #1987 from guilherme-gm/rodexfixesHaru1-0/+1
Some rodex fixes
2018-03-08Fixed RoDEX mail return not working correctlyGuilherme G. Menaldo1-0/+1
2018-03-09Fix md5 calculation for binary strings.Andrei Karas1-1/+1
2018-02-17HPM Hooks UpdateHaru1-2/+1
Signed-off-by: Haru <haru@dotalux.com>
2018-02-10Clean up trailing whitespace and non-indent tabsHaru2-4/+3
Signed-off-by: Haru <haru@dotalux.com>
2018-02-09Update HPM hooks.Andrei Karas2-0/+45
2018-01-25HPM Hooks UpdateMurilo Pereti Tavares2-0/+32
2018-01-25Implementation of Official Clan SystemMurilo Pereti Tavares2-1/+61
All official features work including the autokick for inactive members And the system is completely customizable.
2018-01-14HPM Hooks UpdateHercules.ws1-0/+4
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2018-01-09HPM Hooks UpdateHercules.ws2-2/+2
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2018-01-06Enable always asserts and nullpo checks.Andrei Karas1-7/+2
Before this options was depend on debug configure flag. But this options is must because without server may crash in any exploits.
2017-12-17HPM Hooks UpdateHercules.ws1-0/+1
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-12-17Merge pull request #1923 from 4144/fixpacketsHaru1-0/+7
Add support for Ragnarok zero clients, split packets.h again
2017-12-08Merge pull request #1898 from Asheraf/homunafHaru1-0/+1
implement homunculus autofeeding for 2017 clients
2017-12-02Add configure option --enable-packetver-zero for enable support for zero ↵Andrei Karas1-0/+7
clients.
2017-11-18Implement Homunculus autofeedingAsheraf1-0/+1
2017-11-18HPM Hooks UpdateHercules.ws1-0/+1
Signed-off-by: HerculesWSAPI <dev@herc.ws>
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 functionsHaru2-0/+10
Fixes #1531 (and other similar issues) Signed-off-by: Haru <haru@dotalux.com>
2017-11-05Reduce confusion between skill IDs and skill DB indexes (part 2)Haru1-3/+7
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-10-21Add names for some unnamed enums.Andrei Karas1-2/+2
Need for packet parser.
2017-10-21Add rodex 2017 packets.Andrei Karas1-0/+5
2017-09-21Convert some functions from int32 types to int64.Andrei Karas2-0/+23
This mainly need for base and job exp, because now they using int64 type.
2017-09-21Change char server packets for 20170830 and newer clients.Andrei Karas1-1/+1
2017-09-17Move other view-related variables to `sd->status.look`Haru1-4/+6
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)Haru1-1/+1
`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 SubtypeHaru1-1/+3
`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 databaseHaru1-0/+1
- 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-08-08Disable warning -Wdiscarded-qualifiers in hpm code for now.Andrei Karas1-0/+7
2017-08-08HPM Hooks UpdateHercules.ws2-0/+51
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-07-30Implementation of RoDEXKirieZ1-0/+47
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-05-27Merge pull request #1722 from Smokexyz/mmo_charstatus-fixHaru1-3/+5
Dismemberment of `storage_data` from `mmo_charstatus`.
2017-05-22Add storage_data reception, parsing and sending to/from the map-server.Smokexyz1-3/+5
Remove loading and saving of storage_data through char.c Re-declaration of structure storage_data as a vector. Re-code of portions in the map-server using storage_data. A new approach is taken by saving the loaded storage data from sql into memory for the duration of the session, thereby removing the need of querying the database to re-load all items everytime a storage save routine is issued from the map-server. Saving of storage items is done through a new function that significantly reduces the number of queries compared to char_memitemdata_tosql(), and therefore run-time speed. This method potentially reduces the number of update and delete queries from MAX_STORAGE (which could be >= 600) times to literally 1. Storage items are stored in a dynamically allocated array and handled accordingly. struct mmo_charstatus size reduces by 34,800 bytes. Update pc_checkitem() with masks for item checks. `sd->state.itemcheck` has been changed to `sd->itemcheck` of type `enum pc_checkitem_types` `battle/items.conf` has been updated to reflect configuration changes. Further updates to assert a successful reception of storage data in related functions.
2017-05-09Merge pull request #1699 from Jedzkie/11-SummerCostumeHaru1-1/+2
Implemented Official Summer 2 Costume
2017-04-26HPM Hooks UpdateHercules.ws1-81/+162
Signed-off-by: HerculesWSAPI <dev@herc.ws>
2017-04-23Coding-style Fixes and White space adjustmentsJedzkie1-1/+1
2017-04-19Implemented Official Summer 2 CostumeJedzkie1-1/+2
Added summer2_ignorepalette configuration
2017-04-09Merge pull request #1598 from Smokexyz/IROHaru2-1/+14
Implementation of Item Options System.
2017-04-04Implementation of Item Options System.Smokexyz2-1/+14
Allows the infusing of equipments with bonus item options. This feature is constrained to clients of packet versions greater than or equal to `20150226`. Item Options and their effects are defined server-side in `db/item_options.conf` and client side in `data/luafiles514/lua files/datainfo/addrandomoptionnametable.lub` The ID of the option must tally with the correct index of the description provided in the client side lua file to avoid bugs. IT_OPT_* keys and MAX_ITEM_OPTIONS macro are also exported from the source as constants. An additional flag `disable_options` has been added to sql, and as `DisableOptions: true/false (boolean, defaults to false !!for equipments only!!)` to item_db.conf files. Script commands documentation is also included. SQL file updates are included. Credits: [Smokexyz](https://github.com/Smokexyz) Style and Script Fixes by [Asheraf](https://github.com/Asheraf) Initial design Idea by [secretdataz](https://github.com/secretdataz)
2017-03-20Add comment to safestrncpy about size checks.Andrei Karas1-0/+1