summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2016-03-20Changed buffer argument of SQL->StmtBindParam() to constHaru6-49/+58
Parameters are supposed to be read-only Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Removed unnecessary typedefs from sql.hHaru28-148/+174
- Sql -> struct Sql - SqlStmt -> struct SqlStmt - SqlDataType -> enum SqlDataType This is expected to improve compile time, by removing #include cycles (and forward declaring instead) Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Added const qualifier to the value argument of script->setd_subHaru3-6/+6
Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Added separate char* and const char* data types to struct script_dataHaru3-92/+116
Used, respectively, by C_STR and C_CONSTSTR Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Changed script->get_val to return a const pointerHaru2-15/+18
Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Added const qualifier to some typecastsHaru7-75/+76
Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Merge pull request #1080 from Jedzkie/Skill_FixesDastgir1-5/+15
Fixes #1014 - Corrects the Behavior of Tension Relax
2016-03-19Enable use of specialeffect 74,SELF,<npc>;Victor1-12/+14
Partly based on #1134 Closes #1134 as merged Signed-off-by: Haru <haru@dotalux.com>
2016-03-19HPM Hooks UpdateHercules.ws3-30/+62
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-03-19Updated Entity PacketsDastgir2-0/+6
2016-03-19status_get_name returns NULL instead of Unknown, Changed all functions to ↵Dastgir4-10/+16
use clif_get_bl_name
2016-03-19Implemented new function clif_get_bl_nameDastgir2-2/+21
2016-03-19Added const qualifier to several status->get_XXX() functionsHaru2-20/+24
Signed-off-by: Haru <haru@dotalux.com>
2016-03-16Fixes HerculesWS/Hercules#1198 and fixes HerculesWS/Hercules#1194 introduced ↵Kolkka3-9/+9
in pull request #1189 Changed other instances of MAX_WEAPON_TYPE to MAX_SINGLE_WEAPON_TYPE.
2016-03-14Dont load roulette_db.conf if roulette disabled.Andrei Karas2-1/+3
2016-03-14Update status id's up to the latest from kRO.Jedzkie1-1/+4
2016-03-11HPM Hooks UpdateHercules.ws3-0/+31
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-03-11Hardcore Parameters from constant database to avoid synchronize issues with ↵hemagx4-1/+53
source now defining new parameters in the constants.conf database is deprecated and should be defined in source instead
2016-03-11Merge pull request #1192 from 4144/extendlogHaru9-45/+66
Add new logging types.
2016-03-10Add new logging types.Andrei Karas9-45/+66
2016-03-10Merge pull request #1181 from HerculesWS/AB_CLEARANCEHaru1-3/+2
Fixes #1114
2016-03-10HPM Hooks UpdateHercules.ws3-32/+0
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-03-09Corrected some issues in the item data saving functionHaru3-189/+65
- Unique ID could get duplicated (resulting in an apparent item duplication, while it's only unique ID corruption). Fixes #1191 - Removed duplicated code (char_inventory_to_sql, being an almost exact clone of char_memitemdata_to_sql) Signed-off-by: Haru <haru@dotalux.com>
2016-03-08Fixes #1014Jedzkie1-5/+16
2016-03-06Merge pull request #1189 from 4144/itemdbviewHaru5-7/+14
Check allowed range for "View" field in item_db for weapon items.
2016-03-06Check allowed range for "View" field in item_db for weapon items.Andrei Karas5-7/+14
Also fix some array sizes.
2016-03-06Added support for the textual "Job" field to the itemdb2sql converterHaru1-6/+109
Signed-off-by: Haru <haru@dotalux.com>
2016-03-06Fixes some issues while processing item db "Job" fieldsHaru1-5/+14
- In the numeric format, certain valid masks (greater than 0x7fffffff) could fail to process - In the textual format, masks having "All" in a position other than the first, would reset any preceding jobs. Signed-off-by: Haru <haru@dotalux.com>
2016-03-06Fixed a parsing issue in #commandsHaru1-111/+81
- Under certain unpredictable conditions, a #command could be applied to a character other than the specified. Signed-off-by: Haru <haru@dotalux.com>
2016-03-06Replace wrong variable usage in party creation code (closes #1185)Andrei Karas1-3/+4
Also not allow create party with empty or only spaces name.
2016-03-06Fixes #1114Jedzkie1-3/+2
2016-03-06Show call stacks if try to apply unknown bonus.Andrei Karas1-0/+5
2016-03-03Add missing initialisation in sd.Andrei Karas1-0/+1
2016-02-29Follow up ↵Jedzkie1-1/+1
https://github.com/HerculesWS/Hercules/commit/f95290cc2396d791ad3e9e9f5f73980887a5ef95.
2016-02-29Fix buffer overflow in guild notice change packet.Andrei Karas1-2/+2
2016-02-29Fix buffer overflow in pet rename.Andrei Karas1-1/+1
2016-02-29Merge pull request #1115 from theultramage/bcdrenamingHaru1-45/+42
more meaningful variable names in battle_calc_damage()
2016-02-28HPM Hooks UpdateHercules.ws1-20/+20
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-28Changed mob mode field to 32 bit, for future expansionHaru14-114/+158
Signed-off-by: Haru <haru@dotalux.com>
2016-02-28Added NoKnockback Mode for monstersDastgir3-1/+5
Signed-off-by: Haru <haru@dotalux.com>
2016-02-27Corrected return value for some BUILDIN() functionsHaru1-4/+4
- The functions were returning `(bool)-1` instead of `false` in case of error, or `(bool)0` instead of `true` in case of success. Signed-off-by: Haru <haru@dotalux.com>
2016-02-27Replaced various '-1' with the correct constantHaru10-86/+104
INFINITE_DURATION, INVALID_TIMER, SC_NONE, INDEX_NOT_FOUND, depending on context. Signed-off-by: Haru <haru@dotalux.com>
2016-02-27Corrected wrong variable type of struct status_change_data::tickHaru4-12/+18
- The variable should be signed, since it uses the value -1 to indicate infinite duration (and it's stored as signed in the database). - Added #define for the special value -1 (INFINITE_DURATION). - This fixes an issue causing status changes to fail being saved to database (thanks to Michi for reporting it). - Related to commit 8dc75721. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24HPM Hooks UpdateHercules.ws10-234/+428
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-24Edited npc->selllist() to use the new struct itemlistHaru3-34/+53
- The npc-side code no longer depends on the client data layout. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Edited npc->buylist() to use the new struct itemlistHaru3-41/+58
- The npc-side code no longer depends on the client data layout. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Edited npc->market_buylist() to use the new struct itemlistHaru5-55/+62
- The npc-side code no longer depends on the client data layout. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Edited skill->changematerial() and skill->elementalanalysis() to use the new ↵Haru3-22/+38
struct itemlist - The skill-side code no longer depends on the client packet data layout. - Some data validation has been added. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Edited npc->cashshop_buylist() to use the new struct itemlistHaru3-28/+37
- The npc-side code no longer depends on the client packet data layout. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Added definitions of struct itemlistHaru1-0/+8
- To be used in various non-clif functions that right now take client data buffers directly. Signed-off-by: Haru <haru@dotalux.com>