summaryrefslogtreecommitdiff
path: root/src/map/clif.c
AgeCommit message (Collapse)AuthorFilesLines
2015-06-02Re-implemented clif->colormes to accept arbitrary colorsHaru1-55/+38
- Due to the backward-incompatible change, clif->colormes was renamed to clif->messagecolor_self (for similarity with clif->messagecolor). The 'color' argument is now a 0xRRGGBB color rather than a color_table index. - enum clif_colors is no longer needed, but 0xRRGGBB-based constants are now provided to replace the old COLOR_* values. Signed-off-by: Haru <haru@dotalux.com>
2015-06-01Replaced some of the hardcoded values with constants (map)Haru1-68/+55
- Replaced several hardcoded values with the appropriate enums. - Added documentation for some hardcoded values that haven't been replaced by enums (yet) - Minor code legibility improvements. Signed-off-by: Haru <haru@dotalux.com>
2015-06-01Replaced some of the hardcoded values with constants (char)Haru1-9/+3
- Replaced several hardcoded values with the appropriate enums. - Added documentation for some hardcoded values that haven't been replaced by enums (yet) - Minor code legibility improvements. Signed-off-by: Haru <haru@dotalux.com>
2015-05-31Fixed some more skill level assertion failuresHaru1-12/+25
Signed-off-by: Haru <haru@dotalux.com>
2015-05-26Another batch of corrected skill level checkmalufett1-13/+26
-Followup@dbaff8bdff2552c94d83e71249ae9e2117f62a72 -Added missing code from previous commit@027f124cbb96bb99d00bc31ad51345024edadf66 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-05-23Fixed Bug#8672malufett1-9/+11
-http://hercules.ws/board/tracker/issue-8672-map-server-error/
2015-05-18Removed duplicates of clif->msgtableHaru1-50/+50
- Removed clif->msgtable, and renamed clif->msg to clif->msgtable. - Removed clif->msgtable_num, and renamed clif->msg_value to clif->msgtable_num - Renamed clif->msg_skill to clif->msgtable_skill - Removed clif_viewequip_fail - Replaced hardcoded message IDs with constants (see enum clif_messages) Signed-off-by: Haru <haru@dotalux.com>
2015-05-12Fix issue http://hercules.ws/board/tracker/issue-8672-map-server-error/Andrei Karas1-5/+13
2015-03-30Add channels.conf option irc_channel_autojoin for auto joining irc channel.Andrei Karas1-0/+3
2015-03-24Fixed Bug#8587malufett1-0/+3
-http://hercules.ws/board/tracker/issue-8587-hide-command-and-hiding-skill/?gopid=24786#entry24786 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-03-18Fix sending 0x908 packet.Andrei Karas1-1/+1
2015-03-05Fixing vending on 2014-10-22 and aboveshennetsind1-0/+8
Thanks to Dastgir for bringing this to my attention. Signed-off-by: shennetsind <ind@henn.et>
2015-02-23Hercules Ultimate Localization Designshennetsind1-38/+38
Servers can now run on any number of languages, without editing npc files. Designed by Haruna and Ind http://hercules.ws/board/topic/8687-hercules-ultimate-localization-design/ Signed-off-by: shennetsind <ind@henn.et>
2015-02-13Fix wrong id usage in clif_addskill.Andrei Karas1-1/+1
Was used skill id, but must be used skill idx.
2015-02-05Follow-up to 49df787e2c2faa2621b5490c6e88c86a4b7a813fHaru1-1/+1
- Corrected a wrong structure member being used in a mob db lookup. - Fixes bugreport:8516, special thanks to Valo http://hercules.ws/board/tracker/issue-8516-quest-add-looks-up-objective-count-instead-of-mob-id Signed-off-by: Haru <haru@dotalux.com>
2015-02-02Fixed state tracking of dialog windows when the script is suspended and resumedHaru1-0/+1
- If a script was suspended, and then resumed (`sleep2`, but also `getexp`), state tracking of dialog windows would get reset, and a `close` or `close2` would trigger a warning even if a message box was present. - Special thanks to Dastgir. Signed-off-by: Haru <haru@dotalux.com>
2015-01-28Follow-up to e778f4f5f1b6a08adee5e7e908a44c38cd29bd12Haru1-1/+1
- Fixed some issues that prevented spirit charms from showing up - Special thanks to Michieru Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Channels refactoring: searchHaru1-23/+5
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Channels refactoring: joinHaru1-13/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Minor channel system refactoringHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Moved the Hercules Channel System to its own file/interfaceHaru1-566/+36
Signed-off-by: Haru <haru@dotalux.com>
2015-01-24Reduced quest db memory usage by about 900kBHaru1-20/+24
Signed-off-by: Haru <haru@dotalux.com>
2015-01-23Cleaned up spirit charms implementation (optimized memory and CPU usage)Haru1-24/+17
Signed-off-by: Haru <haru@dotalux.com>
2015-01-20Minor fixes and tweaks suggested by cppcheckHaru1-55/+56
- Variable scopes reduced - Parenthesized ambiguous expressions - Removed or added NULL checks where (un)necessary - Corrected format strings - Fixed typos potentially leading to bugs Signed-off-by: Haru <haru@dotalux.com>
2015-01-18Follow up 348044f12d5f683c8945e0eac642f2795050fb4eshennetsind1-1/+1
Thanks to Haruna Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Replacing rand leftovers with the mt19937arshennetsind1-1/+1
Signed-off-by: shennetsind <ind@henn.et>
2015-01-18Fixing 38 issuesshennetsind1-1/+5
Addressing out of bounds read/write, pointless null checks on already deferenced variables, dead code. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-1727 Fixesshennetsind1-8/+8
Addressing out of bounds read/write, pointless null checks on already deferenced variables. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-17Another ~10 Fixesshennetsind1-2/+3
Addressing out of bounds read/write, resource leaks. Special Thanks to 4144 and Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-1710 Distinct fixesshennetsind1-1/+1
Addressing out of bounds read-write. Special Thanks to 4144, Haruna! Signed-off-by: shennetsind <ind@henn.et>
2015-01-17Fixed Bug#8497malufett1-2/+16
-http://hercules.ws/board/tracker/issue-8497-all-mercenaries-miss-hit-for-0/?gopid=24434#entry24434 Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2015-01-11Convert pcdb_checkid into function in pc interface.Andrei Karas1-11/+11
2014-12-31Add some missing null pointer checks after automatic checks.Andrei Karas1-0/+1
2014-12-31Fix possible memory overflows and underflows.Andrei Karas1-2/+2
2014-12-26Updated KG/OB Spirit Charms to official behaviormalufett1-15/+18
-http://hercules.ws/board/tracker/issue-8170-oborokagerou-charm/ -http://hercules.ws/board/tracker/issue-8274-ninja-charms-not-giving-proper-bonuses/ Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-12-17Corrected a trivial null pointer case detected by XcodeHaru1-1/+4
Signed-off-by: Haru <haru@dotalux.com>
2014-12-16Add function what called if player leave npc area.Andrei Karas1-1/+1
2014-12-14Fixed some improper grammar.Mysteries1-1/+1
2014-12-10RENEWAL Updates:malufett1-10/+34
-Homunculus Official Statuses -Updated RE @mobinfo to show proper status data.(Follow up 28a8b0f7b06a6af86aff6ececf7d9541d457e297) -Some official behaviors. Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
2014-12-08HPM Hooks UpdateHercules.ws1-7/+7
Signed-off-by: HerculesWSAPI <Hercules@efficiently.awesome>
2014-12-08fix /mineffect or /minimize when change mapMichieru1-7/+8
This commit was made by Master Ind
2014-12-06initialize missing variable in clif_changelook.Andrei Karas1-1/+1
2014-12-06add channels config into clif interface.Andrei Karas1-79/+82
2014-12-06Add function for actual packet sending from clif_send_sub.Andrei Karas1-0/+6
2014-12-06Move actual 0xc3 and 0x1d7 packets sending into one function.Andrei Karas1-40/+20
2014-11-16Whitespace cleanup (no code changes)Haru1-109/+117
This includes, and is not limited to: mixed or wrong indentation, excess whitespace (horizontal and vertical), misalignment, trailing spaces. Signed-off-by: Haru <haru@dotalux.com>
2014-11-10Fix interfaces methods usage.Andrei Karas1-6/+6
In some places was used direct methods.
2014-11-03Fix compile warning in VC++Michieru1-1/+1
Thanks to Ind
2014-11-03Merge pull request #363 from EPuncker/masterMichieru1-2/+2
Added 4 new permissions
2014-11-03Adjusted roulette logic ( see 239d480487e24294975f35ed55f210837ad1088e )shennetsind1-14/+14
Special Thanks to Yommy and Ziu for the adjusted logic! This commit also introduces the proper coins to obtain the roulette points, thanks to Michieru. Signed-off-by: shennetsind <ind@henn.et>