summaryrefslogtreecommitdiff
path: root/src/map/clif.c
AgeCommit message (Collapse)AuthorFilesLines
2015-12-04Merge pull request #910 from dastgir/idleAndrei Karas1-32/+16
Added a function to update idle time
2015-12-04Added a function to update idle timeDastgir1-32/+16
2015-11-14Changed struct script_queue::item into a VECTOR and Renamed to ::entriesHaru1-3/+3
Signed-off-by: Haru <haru@dotalux.com>
2015-11-14Renamed hQueue/hQueueIterator/hQueueOpt to latest standardsHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-11-14Fixed some direct accesses to script->hq[] from other modules.Haru1-1/+1
- script->hq[] should only be accessed through the provided interface, script->queue(). Signed-off-by: Haru <haru@dotalux.com>
2015-10-28Fix memory leak in quest sending packet (closes #831)Andrei Karas1-0/+1
2015-10-24Merge pull request #811 from ossi0110/masterHaruna1-28/+42
Fixed Quest Log Packet for 2014-10-22 + Clients
2015-10-21Fixed Typos (+1 squashed commits)ossi01101-28/+42
Squashed commits: [18d0374] Fixed Quest Log Packet for 2014-10-22 + Clients Added log Folder to be able to capture Map Server Logs see map-server.conf for it Added save folder to be able to dump unknown packets
2015-10-21Merge remote-tracking branch 'upstream/master'Er_Maqui1-1/+1
2015-10-19rename malloc.c/h to memmgr.Andrei Karas1-1/+1
2015-10-13- Fixed message ID to a lower value.Er_Maqui1-1/+1
2015-10-12- Error message when talking to a pre-defined channel and you aren't on the ↵Er_Maqui1-0/+3
channel.
2015-10-11Changed HPM->packets[] into an array of VECTORHaru1-6/+6
Signed-off-by: Haru <haru@dotalux.com>
2015-10-04Added clif->packet() to retrieve info about a packet.Haru1-0/+14
- As per Malufett/Michieru request, in order to make it possible for a plugin to obtain information about a packet. Signed-off-by: Haru <haru@dotalux.com>
2015-10-02Skip bound items in the mergeitem feature.Haru1-2/+2
- Fixes #757, thanks to kyeme - Based on Emistry's PR #754 (improved) Signed-off-by: Haru <haru@dotalux.com>
2015-09-25More aggressive whitespace cleanup. Follow up to 51329e6Haru1-548/+72
Signed-off-by: Haru <haru@dotalux.com>
2015-09-24Add bl parameter to getcell functions.Andrei Karas1-2/+2
2015-09-22Corrected more VisualStudio incompatibilitiesHaru1-15/+32
- Follow-up to ba9c1cc1, 547dd68 - Fixes #730 (thanks to VeilsideGX) Signed-off-by: Haru <haru@dotalux.com>
2015-09-18Clarified the intent of several assignments inside conditional expressionsHaru1-6/+6
Signed-off-by: Haru <haru@dotalux.com>
2015-09-18Follow-up to 21442a885b1214e1b6a2f23a2553da416fb97238Haru1-8/+7
Corrected a nullpo check in the clif_party_withdraw function (in some cases, it is acceptable for sd to be NULL -- documentation is still lacking though) Signed-off-by: Haru <haru@dotalux.com>
2015-09-17Added Configuration in enabling/disabling monster hp bar on new clients.Frost1-3/+3
Closes #558 Signed-off-by: Haru <haru@dotalux.com>
2015-09-15Add missing checks into clif.cAndrei Karas1-131/+789
2015-09-14Add missing checks into channel.cAndrei Karas1-1/+1
2015-09-10Add extra checks into mail system.Andrei Karas1-3/+11
2015-09-08Fixed some memory leaks in code using libconfigHaru1-2/+2
- Special thanks to Dastgir Signed-off-by: Haru <haru@dotalux.com>
2015-08-27Hotkey Rotate Packet ImplementedDastgir1-17/+16
2015-08-27Fixes Unidentified items bug in client >= 20150226Dastgir1-8/+8
2015-08-26FollowUp 509df4d7, fixes a typoDastgir1-1/+1
2015-08-23Fix server crash with some ground skills or traps. Closes #615.Andrei Karas1-0/+1
2015-08-17Merge pull request #619 from dastgir/2015-3ceamHaruna1-73/+121
New EquipPackets Support
2015-08-16New EquipPackets SupportDastgir1-73/+121
2015-08-15Added core HPM interfaceHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-08-15HPM compatibility improvementsHaru1-0/+3
Improved compatibility, portability and standards conformance. - Since it is not possible to portably and reliably re-use the core's symbols in plugins, symbols are no longer exported unless explicitly required, in the UNIX builds. This mimics the Windows behavior and adds HPM compatibility to OSes such as FreeBSD. Credits to Andrei Karas for making this possible. - For convenience, it is no longer necessary to call GET_SYMBOL, since the plugin will automatically import all the available symbols when it's loaded, depending on the included headers. - Plugins are now supposed to include the "common/hercules.h" header before including anything else. Incluing common/HPMi.h, common/cbasetypes.h or conf/core.h is no longer necessary, as those are guaranteed to be automatically included by hercules.h. - HPM API version bumped to 1.1. Signed-off-by: Haru <haru@dotalux.com>
2015-08-15Moved session array into the socket interfaceHaru1-11/+11
Signed-off-by: Haru <haru@dotalux.com>
2015-08-15Added showmsg HPM interfaceHaru1-1/+1
- The showmsg interface is automatically imported into plugins by the HPM (just like previously, the various Show* functions were). This change requires no actions from plugin developers. - stdout_with_ansisequence is now available through showmsg->stdout_with_ansisequence - msg_silent is now available through showmsg->silent - console_msg_log is now available through showmsg->console_log - timestamp_format is now available through showmsg->timestamp_format - Plugin-safe macros are provided, so that all Show* and Clear* calls will require no changes. - vShowMessage is provided through the public API, as va_list variant of ShowMessage. - vShowMessage_ is no longer part of the public API. If necessary, va_list variants of the other Show* functions will be added at a later time as follow-ups. Signed-off-by: Haru <haru@dotalux.com>
2015-08-15Cleaned up socket interfaceHaru1-24/+23
- Replaced some macro calls with the proper interface syntax - Removed useless macros and workarounds API changes summary: - WFIFOSET() can now be safely used both inside and outside socket.c - RFIFOSKIP() can now be safely used both inside and outside socket.c - do_close() is now sockt->close() - flush_fifo() is now sockt->flush() - flush_fifos() is now sockt->flush_fifos() - getips() is now sockt->getips() - host2ip() is now sockt->host2ip() - ip2str() is now sockt->ip2str() - ntows() is now sockt->ntows() - make_connection() is now sockt->make_connection() - make_listen_bind() is now sockt->make_listen_bind() - realloc_fifo() is now sockt->realloc_fifo() - realloc_writefifo() is now sockt->realloc_writefifo() - session_isActive() is now sockt->session_is_active() - session_isValid() is now sockt->session_is_valid() - set_defaultparse() is now sockt->set_defaultparse() - set_eof() is now sockt->eof() - set_noblocking() is now sockt->set_noblocking() - str2ip() is now sockt->str2ip() Signed-off-by: Haru <haru@dotalux.com>
2015-08-05Add optional parameter to warp script command for prevent stoping npc ↵Andrei Karas1-8/+10
scripts after warp.
2015-07-25Reduce memory usage in HPM in status.cAndrei Karas1-2/+2
2015-07-25Reduce memory usage in HPM in skill.cAndrei Karas1-14/+14
2015-07-18Move check cards related code into separate functions.Andrei Karas1-42/+14
This remove code duplicates and improve a bit code.
2015-07-12Remove useless checks from map server.Andrei Karas1-1/+1
2015-07-08Update Unique ID system to match official now it cover all cash items ↵Ibrahim Hossam1-0/+157
include stackable ones. Implement ForceSerial option in Package Item Database to force serial for any item. Implement ForceSerial option in item database to force serial for any item. Implement Merge Client interface to merge stackable items with serial numbers ( check npc/other/item_merge.txt ).
2015-06-19Removed ".." from include directivesHaru1-46/+46
- Include directives are now directory-independent. - This will allow building plugins from other directories in future. Signed-off-by: Haru <haru@dotalux.com>
2015-06-02Follow-up to 544a75bHaru1-3/+7
Signed-off-by: Haru <haru@dotalux.com>
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/