summaryrefslogtreecommitdiff
path: root/src/char
AgeCommit message (Collapse)AuthorFilesLines
2020-07-07Reapply initial values in char_changecharsex()Kenpachi Developer1-3/+3
2020-07-06Apply code style to char_changecharsex()Kenpachi Developer1-14/+11
2020-07-06Apply code style to char_change_sex_sub()Kenpachi Developer1-25/+27
2020-07-06Adjust char_changecharsex() to use prepared statementKenpachi Developer1-10/+40
2020-07-06Adjust char_change_sex_sub() to use prepared statementsKenpachi Developer1-6/+34
2020-07-06Remove unnecessary gender update SQL query from char_changecharsex()Kenpachi Developer1-4/+0
Gender gets updated in char_change_sex_sub() so we can safely skip it in char_changecharsex().
2020-07-06Update SQL query in char_change_sex_sub() to update character's gender and ↵Kenpachi Developer1-2/+8
robe view ID, too
2020-06-07Save party data if options are changed in inter_party_check_lv()Kenpachi Developer1-0/+1
2020-06-04Call inter_party_tosql() before clearing removed member's data in ↵Kenpachi Developer1-1/+1
inter_party_leave()
2020-06-01Fix possible crash in mapif_guild_withdrawAndrei Karas1-1/+1
2020-05-10Merge pull request #2705 from Kenpachi2k13/string_var_sizeHaru3-11/+12
Cap string variable value length and unify corresponding SQL columns size
2020-05-09Adjust size of fields holding a string variable's value to ↵Kenpachi Developer3-11/+12
SCRIPT_STRING_VAR_LENGTH + 1 Also exclude NULL-terminator from string variable value length in inter-server communication.
2020-05-04Sanitize the use of the enum e_skill_flag values, especially ↵Haru1-26/+30
SKILL_FLAG_REPLACED_LV_0 This ensures that a negative level is never saved to the database and hopefully helps catching any coding errors that would lead to that. Signed-off-by: Haru <haru@dotalux.com>
2020-04-07Add missing pet ID assignment to inter_pet_fromsql()Kenpachi Developer1-0/+1
2020-04-05Apply code style to inter_pet_create() functionKenpachi Developer1-11/+27
2020-04-05Apply code style to inter_pet_fromsql() functionKenpachi Developer1-4/+16
2020-04-05Apply code style to inter_pet_tosql() functionKenpachi Developer1-11/+13
2020-04-05Adjust inter_pet_fromsql() function to use prepared statementKenpachi Developer1-28/+43
2020-04-05Adjust inter_pet_tosql() function to use prepared statementKenpachi Developer1-20/+55
2020-04-05Add enum for pet intimacy levels and use its constantsKenpachi Developer1-8/+3
2020-04-05Add enum for pet hunger levels and use its constantsKenpachi Developer1-7/+3
2020-03-30Disable libbacktrace by defaultHaru1-6/+12
It's currently only tested on linux, and doesn't work yet on macOS (tested on 10.15). Further work is necessary Signed-off-by: Haru <haru@dotalux.com>
2020-03-30Fix Makefile-based compilation on platforms that use libbacktrace with a ↵Haru1-1/+1
different executable format than elf
2020-03-30Add libbacktraceAndrei Karas1-4/+15
2020-02-09Merge pull request #2601 from Kenpachi2k13/int_party_c_warningHaru2-208/+305
Fix C4018 compiler warning in src\char\int_party.c.
2020-02-05Added inter_party_del_nonexistent_party() function.Kenpachi Developer2-7/+48
2020-02-05Applied code style to all modified functions in src/char/int_party.c.Kenpachi Developer1-143/+169
2020-02-05Replaced various inter_party_check_lv() calls with inter_party_calc_state() ↵Kenpachi Developer1-27/+8
calls, to ensure that family state gets updated correctly.
2020-02-05Added inter_party_is_family_party() function.Kenpachi Developer2-16/+82
* This should fix the issue where family share don't work if the family members don't occupy the first slots of the party. * Additionally made inter_party_check_exp_share() function also returning true, if party is in family state, since this state wasn't checked anywhere else and thus may caused misbehaviour, too.
2020-02-05Updated inter_party_calc_state() function.Kenpachi Developer1-17/+1
* inter_party_calc_state() function now calls inter_party_check_lv() function, instead of doing the same things on its own.
2020-02-05Updated inter_party_check_lv() function.Kenpachi Developer1-6/+4
* Improved assignment of p->min_lv and p->max_lv. * Removed unnecessary lv variable.
2020-02-05Changed some data types from unsigned to signed.Kenpachi Developer2-6/+7
* Changed all unsigned fields in struct party_data to signed int. * Changed data type of struct party_member->lv to signed int. * Changed parameter lv in inter_party_change_map() function to signed int. * Changed signature of inter_party_change_map() function in HPMHooking files.
2020-01-13Update copyright headers for year 2020Haru42-74/+74
Signed-off-by: Haru <haru@dotalux.com>
2019-10-20Merge pull request #2547 from guilherme-gm/201910-dehardcode-dbHaru4-5/+11
Dehardcode DB files path
2019-10-18Fix an issue that caused the saved character data to retain the old party ID ↵Haru1-3/+4
after leaving or getting kicked Signed-off-by: Haru <haru@dotalux.com>
2019-10-06Updates status changes to also keep their total timeGuilherme Menaldo1-11/+12
- This allows clients to continue the "timer" display after you login again
2019-10-05Dehardcodes db files base path so the db folder can be easily movedGuilherme Menaldo4-5/+11
2019-08-26Remove round-trip to the inter-server for the guild chat messagesHaru4-28/+1
Signed-off-by: Haru <haru@dotalux.com>
2019-08-26Remove round-trip to the inter-server for the party messagesHaru4-26/+1
Signed-off-by: Haru <haru@dotalux.com>
2019-08-26Remove round-trip to the inter-server for the broadcast messagesHaru3-34/+1
Signed-off-by: Haru <haru@dotalux.com>
2019-08-26Remove round-trip to the inter-server for the whisper-to-gm messagesHaru3-16/+1
Signed-off-by: Haru <haru@dotalux.com>
2019-08-25Remove whisper dispatch code from the inter serverHaru4-214/+1
The code was currently not in use (assuming the only officially supported case of a single-zone server) Signed-off-by: Haru <haru@dotalux.com>
2019-07-12Fix family check and EXP bugEmistry Haoyan1-0/+4
- failsafe function to not execute the query - avoid EXP sharing bug
2019-06-02Use separate field hotkey_rowshift for each hotkeys groupAndrei Karas1-10/+11
2019-06-02Add define MAX_HOTKEYS_DB for max stored hotkeys in dbAndrei Karas1-1/+1
For new RE clients it's double of MAX_HOTKEYS
2019-05-06Merge pull request #2455 from hemagx/hercules_fix_rodexHaru1-2/+0
Fix Item retrieval from rodex
2019-05-05Add char_id into struct guild_expulsionAndrei Karas1-5/+7
Also use char_id in packet ZC_BAN_LIST.
2019-05-05Fix compilation for old packet versions (Fixes #2438)Andrei Karas1-0/+2
2019-05-05Truncate too big time in guild member login time fieldAndrei Karas1-1/+7
2019-05-04Fix inter-server deleting zeny from rodex mails when a player requests to ↵Ibrahim Zidan1-2/+0
take item Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>