summaryrefslogtreecommitdiff
path: root/src/char
AgeCommit message (Collapse)AuthorFilesLines
2014-11-15Add most functions from int_elemental.c to interfaces.Andrei Karas6-27/+77
2014-11-15Add most functions from int_auction.c to interfaces.Andrei Karas6-55/+118
2014-11-15Add most functions from char.c to interfaces.Andrei Karas13-421/+868
Introduced interfaces: chr, mapif, loginif.
2014-11-15Split functions in inter.c.Andrei Karas1-16/+11
2014-11-15Split functions in int_quest.c.Andrei Karas1-15/+24
2014-11-15Split functions in char.c.Andrei Karas1-1543/+1974
2014-11-15Split functions in int_mail.c.Andrei Karas1-40/+49
2014-11-15Add prefix pincode_ to global variables in pincode.cAndrei Karas1-20/+21
2014-11-15Add prefix inter_ to most functions in inter.cAndrei Karas1-57/+57
2014-11-15Add prefix inter_storage_ to most functions in int_storage.cAndrei Karas3-12/+12
2014-11-15Add prefix inter_party_ to most functions in int_party.cAndrei Karas1-21/+21
2014-11-15Add prefix inter_mercenary_ to most functions in int_mercenary.cAndrei Karas3-9/+9
2014-11-15Add prefix inter_mail_ to most functions in int_mail.cAndrei Karas3-24/+24
2014-11-15Add prefix inter_guild_ to most functions in int_guild.cAndrei Karas1-30/+30
2014-11-15Add prefix inter_auction_ to most functions in int_auction.cAndrei Karas1-18/+18
2014-11-15Add prefix char_ to most functions in char.cAndrei Karas5-200/+199
2014-11-03Fixed mmo_char_tobuf for < 20141022shennetsind1-1/+1
Follow up 239d480487e24294975f35ed55f210837ad1088e Special Thanks to Valo! Signed-off-by: shennetsind <ind@henn.et>
2014-11-03Merge branch 'master' of github.com:HerculesWS/Herculesshennetsind5-9/+112
Signed-off-by: shennetsind <ind@henn.et> Conflicts: src/map/battle.c
2014-11-03Introducing 2014-10-22, Roulette and Per-Char Gender!shennetsind1-10/+58
Details in http://hercules.ws/board/topic/7618-2014-10-22-roulette-and-per-char-gender/ Special Thanks to the all-mighty Yommy, Ziu and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2014-10-31Merge pull request #378 from HerculesWS/hpmupdatesHaruna4-8/+111
Char and login server preliminary support for the HPM system
2014-10-30Merge pull request #369 from 4144/sqlpasswordsizeHaruna1-1/+1
Increase sql password field size from 32 to 100 chars.
2014-10-28Added preliminary support for login and char server in the HPMDataCheckHaru4-8/+111
- Special thanks to Ind Signed-off-by: Haru <haru@dotalux.com>
2014-10-25Added some missing variable initializationsHaru4-3/+13
- The issue was caused by memcmp failing because of garbage in structs padding. - Fixes bugreport:8410, special thanks (and credits for the fix) to Garr http://hercules.ws/board/tracker/issue-8410-autotradeat-issue/ - Also reduced scope of some variables, where appropriate. - Thanks to Ind. Signed-off-by: Haru <haru@dotalux.com>
2014-10-23In configure add option --enable-staticAndrei Karas1-1/+1
This option enable static build for server binaries and map cache. For plugins this option enable static linking with gcc.
2014-10-23Added some validation checks in the geoip parse functionHaru1-9/+14
This fixes the warning on some compilers, about the fread return value being ignored. Signed-off-by: Haru <haru@dotalux.com>
2014-10-18Increase sql password field size from 32 to 100 chars.Andrei Karas1-1/+1
32 chars is very small for password.
2014-09-21Fixed Bug 8171shennetsind1-3/+3
Char server could crash if attempting to log-in a character while map server hasn't completed the char >- <- map handshake Special Thanks to memoryss http://hercules.ws/board/tracker/issue-8171-char-server-crash-oninterifinitoninterifinitonce/ Signed-off-by: shennetsind <ind@henn.et>
2014-09-20Merge pull request #332 from 4144/missing_rfifoskipshennetsind1-0/+1
Add missing RFIFOSKIP in packet 0x68 and 0x1fb. Fixes Bug 8317 http://hercules.ws/board/tracker/issue-8317-missing-rfifoskip-in-packet-0x68-and-0x1fb/
2014-09-16"Fixes char server crash when saving ##variables while login server is ↵Michieru1-5/+12
offline, thanks to Ancyker" Fix made by Ind :)
2014-09-05Improved some FIFOSD checks in char_parse.Andrei Karas1-11/+9
Signed-off-by: Haru <haru@dotalux.com>
2014-08-31Add missing RFIFOSKIP in packet 0x68 and 0x1fb.Andrei Karas1-0/+1
2014-08-07Fixed some MSVC incompatibilitiesHaru2-0/+2
- Resolves bugreport:8289 http://hercules.ws/board/tracker/issue-8289-compile-error-vs-2013/ - Disables some winsock-related deprecation warnings. Signed-off-by: Haru <haru@dotalux.com>
2014-08-07Corrected several format-string errors through the codeHaru6-37/+32
- Functions that expect a printf-style format string are now marked as such, so that gcc/clang will emit a warning warn you if you mismatch format string and arguments. Signed-off-by: Haru <haru@dotalux.com>
2014-07-11Fixed reserved __identifier violationsHaru13-39/+39
- Complies with CERT DCL37-C - Fixes issue #293 (special thanks to elfring) Signed-off-by: Haru <haru@dotalux.com>
2014-05-30Merge pull request #282 from MrKeiKun/fix_typoHaruna8-46/+46
Fixed some typo
2014-05-30Fixed typos inside src/Shido8-46/+46
2014-05-30Removed CMakeLists.txt (Thanks to Haruna)Shido1-62/+0
2014-05-25Improved CFLAGS/CPPFLAGS handlingHaru1-1/+3
- Language extensions, such as _GNU_SOURCE are now enabled through CPPFLAGS by the configure script, rather than within the source code. - Moved some configure-time CFLAGS to CPPFLAGS, where appropriate. - Fixes bugreport:8211, thanks to Neoth http://hercules.ws/board/tracker/issue-8211-compiling-warning-in-linux Signed-off-by: Haru <haru@dotalux.com>
2014-05-17Renamed incuvate of Pet System.Shido2-13/+13
2014-05-13Removed trailing whitespace (sources)Haru4-11/+11
Signed-off-by: Haru <haru@dotalux.com>
2014-05-10Re-commit of "Fixed order of includes in all source files"Haru21-150/+195
This reverts commit 94657284973f4037596bae468ebfbee5c217e02b.
2014-05-10Revert "Fixed order of includes in all source files"panikon21-195/+150
This reverts commit b6b3f58795288701d0e162d43fa6f0a47af913b3. Fixes issue 8184 http://hercules.ws/board/tracker/issue-8184-cart-related/
2014-05-09Removed extra'GeoIP disabled' message on charserver shutdownHaru1-9/+10
Signed-off-by: Haru <haru@dotalux.com>
2014-05-09Fixed order of includes in all source filesHaru21-150/+195
- Changed order according to the (upcoming) code style guidelines. - Fixes several issues caused by missing headers when their include order is changed or in plugins. Signed-off-by: Haru <haru@dotalux.com>
2014-05-09Added support to return a different exit status to the OS.Haru1-1/+2
- This can be easily used by plugins. - See an example at http://github.com/HerculesWS/StaffPlugins/Haru/script_mapquit Signed-off-by: Haru <haru@dotalux.com>
2014-05-08Fixed issue 8176panikon1-0/+1
http://hercules.ws/board/tracker/issue-8176-lastet-commit-cant-compile-successfully-on-linux/ Sorry for taking so long, it seems that even if errno.h is not included in MSVC errno is still available, but that doesn't happen in unix compilers.
2014-05-07Follow up to 9a425c1panikon2-6/+8
Special thanks to @MishimaHaruna
2014-05-06Bug fixes and other changespanikon2-25/+144
#Fixed issue where a corrupted map cache would lead to a crash *Moved Big-endian compatibility functions to common/utils.h #Fixed issue 8162 *http://hercules.ws/board/tracker/issue-8162-loadnpc-doesnt-trigger-oninit-of-duplicate-npcs/ *Added options to npc_parse_duplicate #Fixed issue 8169 *http://hercules.ws/board/tracker/issue-8169-script-command-guildskill-skill-idlevel-not-working-as-intended/ *Changed *guildskill behavior, now it behaves exactly as depicted in the documentation *Updated *guildskill documentation #Added missing GBI types to mapif_parse_GuildBasicInfoChange now it's possible to change guild exp, lv, skill point and skill information #GeoIP revamp *GeoIP module was partially rewritten *Added several data checks to prevent corruption and crashes *Updated GeoIP database *See https://github.com/maxmind/geoip-api-c/blob/master/libGeoIP/GeoIP.c for more information #Added packetver checks regarding NST_MARKET *Now *tradertype warns if user is trying to use this feature with older clients
2014-04-19Fixed issue: 8150panikon1-8/+8
* http://hercules.ws/board/tracker/issue-8150-cash-shop-updating-quantity-bug/ * Also fixed issue where when using ATitem to get more than one pet egg would result on getting only one egg * Changed packet 0x3880 structure now it also contains pet class and dropped flag from this packet, it was pointless
2014-04-19Merge pull request #272 from hemagx/masterHaruna5-50/+6
Rewritten NSI_UNIQUE_ID system