summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-03-01Fix item names of itemID 14108 and 14109. Thanks to Kyeme.Jedzkie2-4/+4
2016-02-29Follow up ↵Jedzkie1-1/+1
https://github.com/HerculesWS/Hercules/commit/f95290cc2396d791ad3e9e9f5f73980887a5ef95.
2016-02-29MobDB SQL SyncHercules.ws1-5/+5
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-29Dummy Monsters cannot be knockback in kRO.Jedzkie1-5/+20
Fixed their Official names.
2016-02-29Merge pull request #1174 from 4144/fixcorruptionHaru2-3/+3
Fix buffer overflow in pet rename.
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-29Constants Documentation SyncHercules.ws1-0/+5
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-29Merged pull request #1123 - Add Constant for Gender.Haru93-430/+477
Closes #1123 as merged
2016-02-29Replaced the SEX_FEMALE/SEX_MALE constants to scripts, where appropriateEmistry91-427/+467
2016-02-29Added gender-related constants SEX_MALE/SEX_FEMALEEmistry2-3/+10
2016-02-29Merge pull request #1115 from theultramage/bcdrenamingHaru1-45/+42
more meaningful variable names in battle_calc_damage()
2016-02-28MobDB SQL SyncHercules.ws3-5/+5
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-28HPM Hooks UpdateHercules.ws1-20/+20
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-28Merged pull request #1093 - NoKnockback modeHaru18-129/+185
Closes #1093 as merged
2016-02-28Changed mob mode field to 32 bit, for future expansionHaru14-114/+158
Signed-off-by: Haru <haru@dotalux.com>
2016-02-28Added monsters with NoKnockbackDastgir2-0/+2
2016-02-28Added NoKnockback Mode for monstersDastgir7-17/+27
Signed-off-by: Haru <haru@dotalux.com>
2016-02-27Constants Documentation SyncHercules.ws1-0/+25
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
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-27Merge pull request #1171 from HerculesWS/NPC_ConstantsDastgir1-0/+25
Update NPC ID's
2016-02-27Update NPC ID'sJedzkie1-0/+25
2016-02-24HPM Hooks UpdateHercules.ws10-234/+428
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-24Merge pull request #1165 from HerculesWS/const_rfifoAndrei Karas51-906/+1234
Const correctness (and typecast removal) for [RW]{FIFO,BUF}[PBWLQ] functions
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>
2016-02-24Removed various redundant typecastsHaru5-28/+26
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Removed several unnecessary explicit casts of the WFIFOP resultHaru11-92/+92
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Removed some now unnecessary explicit casts of the RBUFP resultHaru1-3/+3
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Modified RBUFP to return a const void *Haru1-1/+6
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Removed unnecessary explicit casts of the value of WBUFPHaru4-36/+36
- WBUFP now returns a pointer to void, which automatically casts to any non-const or const pointer. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Modified the WBUF family of macros to ensure a non-const buffer is usedHaru1-1/+6
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Changed RFIFO2PTR (and P2PTR) to return const void*Haru1-2/+2
- Also increased robustness of the macro Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Added const qualifier to various variable/argument pointersHaru4-41/+64
- This is necessary for compatibility with a const RP2PTR/RFIFO2PTR Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Removed several unnecessary RFIFOP typecastsHaru18-159/+158
- While this is arguable, those explicit typecasts are potentially dangerous/misleading (for example, a const specifier might get accidentally dropped without even generating a compiler warning, or a variable type might change during code changes, and any related warning would get silenced by the explicit typecast). - As a reminder Hercules is written in C, and not in C++ (and there's no such thing as "compiling in C++ mode" - they're two different languages.) As such, it is legal to let the compiler automatically promote void* from/to any non-const pointer type, as well as const void* from/to any const pointer type. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Changed RFIFOP and WFIFOP to return const void * and void * respectivelyHaru2-3/+5
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Updated homunculus_recv_data() to work better with const dataHaru1-18/+29
Now it no longer needs to memcpy data to a temporary buffer. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Added const qualifier to several variable/argument pointersHaru36-274/+347
- This is necessary for compatibility with a const RFIFOP. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Implemented aStrndup()Haru2-0/+65
- aStrndup() behaves similarly to the POSIX function strdup(). It allocates sufficient memory for a copy of the passed string, copies it, and returns a pointer to the copy. A maximum number of characters is copied (and a NUL terminator is always appended after the end). Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Updated inter_pet->tosql() and mapif->save_pet() to work with const dataHaru4-37/+40
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Split mapif->mercenary_save() into two functions (save and create)Haru3-22/+44
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Split mapif->homunculus_save() into two functions (save and create)Haru3-43/+61
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Split mapif->elemental_save() into two functions (save and create)Haru3-25/+51
Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Added const qualifier to the {RFIFO,RBUF}{B,W,L,Q} familiesHaru2-10/+12
A read FIFO/buffer should be, well, read-only. Signed-off-by: Haru <haru@dotalux.com>