summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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>
2016-02-24Fixed two minor typos in NPC-related error/warning messagesHaru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2016-02-23Added pcre include path to the sample plugin VS projectsHaru4-8/+8
This is so the file can be used again as template for third party plugins. Thanks to Michi Signed-off-by: Haru <haru@dotalux.com>
2016-02-23HPM Hooks UpdateHercules.ws1-3/+3
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-23Corrected some warnings in Visual StudioHaru3-97/+101
- Changed literal 1L values used in unit64 bit-shift operations to 1ULL. - Follow-up to f606519c3b611573ade246ec82db26437bf03668 (reported by zackdreaver) Signed-off-by: Haru <haru@dotalux.com>
2016-02-22Merge pull request #1166 from 4144/fixemoteHaru1-1/+1
Fix crash on npc emote, if npc not found.
2016-02-22Fix crash on npc emote, if npc not found.Andrei Karas1-1/+1
Reported in http://herc.ws/board/topic/11994-map-crashed-on-friendly-poring-quest-novice-quest/
2016-02-22Merge branch 'Jedzkie-NPC_Updates' into herculesHaru14-246/+535
Closes #1062 as merged
2016-02-22Alberta NPC UpdatesJedzkie3-53/+118
- Separate Tool Dealer and Pet Groomer selling items in Renewal and PRE-Renewal - Change the selling bullets of Trading Merchant in Renewal and PRE-Renewal
2016-02-22Izlude NPC UpdateJedzkie3-18/+22
- Change the selling items of Pet Groomer and Tool Dealer in RENEWAL - Added PRE-RENEWAL Pet Groomer and Tool Dealer in PRE-RE folder - Change the coordinates of Magazine Seller Kenny and Bullet Trader Tony. - Change the coordinates of Trading Merchant.
2016-02-22Payon NPC UpdateJedzkie12-135/+288
- Change the coordinate of Taekwon Job Changer 'Phoenix' from payon to payon_in01 - Change the facing position of Repairman - Change the selling items of Tool Dealer and Pet Groomer in RENEWAL - Add PRE-RENEWAL Tool Dealer and Pet Groomer. - Change the coordinates of some warps - Change the coordinate of Guide in payon - Change the coordinate of Helm of Angel and Deviruchi Cap quest npc
2016-02-21Geffen NPC UpdatesJedzkie4-48/+115
- Change the selling items of Pet Groomer and Tool Dealer in RENEWAL - Added PRE-RENEWAL Pet Groomer and Tool Dealer in PRE-RE folder - Change the NPC Sprite of Repairman
2016-02-21ItemDB SQL SyncHercules.ws2-3305/+3305
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-21HPM Hooks UpdateHercules.ws3-6/+68
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-21Merge branch 'dastgir-16-ItemDB' into herculesHaru8-3416/+22147
Closes #1061 as merged
2016-02-21Changed item_db to new formatDastgir3-3358/+21704
Signed-off-by: Haru <haru@dotalux.com>
2016-02-21Added tool to convert jobmask to new formatDastgir1-0/+100
Signed-off-by: Haru <haru@dotalux.com>
2016-02-21Updated DocumentationDastgir4-42/+175
2016-02-21Changing Job field to 'int64'Dastgir3-13/+13
Signed-off-by: Haru <haru@dotalux.com>
2016-02-21New format for Job field in job_db.confDastgir2-12/+164
2016-02-21Added missing '-lpcre' linker flag to the Xcode projectHaru1-0/+2
Fixes a linking error Signed-off-by: Haru <haru@dotalux.com>
2016-02-20Fixed some warnings in GCC 5.2Haru1-5/+5
Signed-off-by: Haru <haru@dotalux.com>
2016-02-20Fixed compile warnings in clangHaru3-52/+4
- Fixed a -Wshorten-64-to-32 warning in case there's no thread-local-storage available - Disabled -Wcast-align for the time being Signed-off-by: Haru <haru@dotalux.com>
2016-02-20Added explicit c99 mode to CFLAGS in the configure scriptHaru3-4/+4
Signed-off-by: Haru <haru@dotalux.com>
2016-02-20HPM Hooks UpdateHercules.ws1-3/+3
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2016-02-20Merge pull request #1162 from 4144/flagsHaru53-295/+1079
Add some compiler warning flags and fix new warnings
2016-02-19Add to configure some flags what for now not create any warnings.Andrei Karas2-15/+511
2016-02-19Remove some unused macroses. Left macroses in socket.cAndrei Karas4-13/+17
2016-02-19Add noreturn attributes.Andrei Karas5-5/+72
Also add compiler flag for check for missing noreturn attributes.
2016-02-19Fix missing include dirs. Add compiler flag -Wmissing-include-dirs.Andrei Karas3-4/+56