summaryrefslogtreecommitdiff
path: root/src/map
AgeCommit message (Collapse)AuthorFilesLines
2015-08-15Moved session array into the socket interfaceHaru7-39/+39
Signed-off-by: Haru <haru@dotalux.com>
2015-08-15Added showmsg HPM interfaceHaru3-16/+10
- 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 interfaceHaru9-57/+56
- 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-12Merge pull request #636 from 4144/equipposHaruna2-3/+16
Add n parameter to function pc_equipitem_pos.
2015-08-12Fixed some issues reported by CoverityHaru2-2/+2
Follow-up to 5090bdf750017f0d631401edd563c452bd10ec24, 84e02ac28fbb15c58d0a0f8a916b49663198b05b Signed-off-by: Haru <haru@dotalux.com>
2015-08-11Add n parameter to function pc_equipitem_pos.Andrei Karas2-3/+16
2015-08-11Fix issue #634. Delay actual item deletion after running item script.Andrei Karas1-2/+5
2015-08-10Add script interface function run_pet. It do same thing as run.Andrei Karas3-1/+3
2015-08-10Add script interface function run_npc. It do same thing as run.Andrei Karas5-15/+17
2015-08-10Move unequip item script function call into function ↵Andrei Karas3-4/+22
script_run_item_unequip_script.
2015-08-10Move equip item script function call into function script_run_item_equip_script.Andrei Karas4-5/+25
2015-08-10Move use item script function call into function script_run_use_script.Andrei Karas5-23/+36
2015-08-10Fixes #630, RC_NonBoss was including all races even if they weren't meant to be.Dastgir1-16/+16
2015-08-09Corrected search order in itemdb_searchnameMordekaiserGod1-1/+1
It’ll now return the first result, rather than the last due to item2 being overwritten as it searches through the array.
2015-08-10Fixed a compile error on WIN32/MSVCHaru1-3/+3
- Follow-up to 84e02ac28fbb15c58d0a0f8a916b49663198b05b - Thanks to KirieZ for pointing it out. Signed-off-by: Haru <haru@dotalux.com>
2015-08-09Fixed an issue caused by duel-song interactionHaru1-1/+1
- Fixes #546 (follow-up to 127f9b52a4030a655564584b95b7c10dfdcb04e6) - Special thanks to kyeme, Mordekaiser Signed-off-by: Haru <haru@dotalux.com>
2015-08-09Removed unused tables sstatus and interregHaru2-4/+0
Signed-off-by: Haru <haru@dotalux.com>
2015-08-09Deprecated SQL item, monster and monster skill databasesHaru1-0/+24
- The files are (and will) still be included for use in Control Panels or websites, but their use as the data source for the map server is no longer supported. Please upgrade to their text counterparts instead. Signed-off-by: Haru <haru@dotalux.com>
2015-08-09Improved validation of monster/boss_monster top-level script objectsHaru1-3/+3
- xs, ys, delay1, delay2 and event are now required, as described in the documentation. Signed-off-by: Haru <haru@dotalux.com>
2015-08-09Added validation of the 'facing' value in top-level script objectsHaru1-0/+18
Signed-off-by: Haru <haru@dotalux.com>
2015-08-09Deprecated use of numeric NPC view IDs. Use constants instead.Haru1-0/+2
Signed-off-by: Haru <haru@dotalux.com>
2015-08-09Removed deprecated script command checkreHaru1-1/+0
- Follow-up to ca877ecbef0d3fe8df1b69fcaa9e72693c104f02 Signed-off-by: Haru <haru@dotalux.com>
2015-08-09Merge pull request #464 from dastgir/AdditionalStatusAndrei Karas2-0/+9
Additional Status Calculation for Plugins.
2015-08-09Additional Status Calculation for Plugins.dastgir2-0/+9
2015-08-07Update itemdb.cSmokexyz1-4/+4
This fixes the script loading issue mentioned here -> http://herc.ws/board/topic/10249-issue-with-item-db-after-update/
2015-08-07Merge pull request #599 from Milchdealer/accinfofixHaruna1-1/+1
Changed clif->message with clif->messagecolor_self as this will not c…
2015-08-05Add optional parameter to warp script command for prevent stoping npc ↵Andrei Karas4-9/+19
scripts after warp.
2015-08-02Merge pull request #601 from 4144/hpmreducemalufett16-852/+873
Reduce map server memory usage for 3 MB with loaded HPM
2015-08-02Merge pull request #585 from csnv/one_line_fixesmalufett1-0/+3
Fixes skill blocks overiding larger blocks
2015-07-25Reduce memory usage in HPM in mercenary.cAndrei Karas2-3/+5
2015-07-25Reduce memory usage in HPM in status.cAndrei Karas3-398/+404
2015-07-25Reduce memory usage in HPM in quest.cAndrei Karas2-1/+3
2015-07-25Reduce memory usage in HPM in skill.cAndrei Karas9-407/+414
2015-07-25Reduce memory usage in HPM in homunculus.cAndrei Karas2-43/+47
2015-07-18Move check cards related code into separate functions.Andrei Karas3-70/+86
This remove code duplicates and improve a bit code.
2015-07-18Merge pull request #597 from QQfoolsorellina/masterAndrei Karas1-5/+14
Follow up 98274e4 fix script command questactive warnings
2015-07-15Changed clif->message with clif->messagecolor_self as this will not crash on ↵Milchdealer1-1/+1
sepcial symbols
2015-07-15Follow up 98274e4 fix script command questactive warningsAngelmelody1-5/+14
Signed-off-by: Angelmelody <Angelmelody@gmail.com>
2015-07-12Remove useless checks from map server.Andrei Karas4-6/+6
2015-07-08Merge branch 'master' of https://github.com/HerculesWS/HerculesMatheus Macabu12-43/+297
2015-07-08Merge pull request #586 from hemagx/masterHaruna8-25/+245
Update UID system to match official and Implement Merger
2015-07-08Update Unique ID system to match official now it cover all cash items ↵Ibrahim Hossam8-25/+245
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-07-07Fixed a compile error on armv7l (Raspberry Pi 2 model B)Haru1-2/+0
According to the C specifications, va_list isn't necessarily a pointer (it can be an array of pointers, or just about anything). As such, we can't nullpo check it. Signed-off-by: Haru <haru@dotalux.com>
2015-07-05Fixes skill blocks overiding larger blockscsnv1-0/+3
2015-07-05Follow up 25c5a610555f442005d562ad463a4f22efb6f744Emistry1-1/+1
missing character.
2015-07-05Updated cash atcommand.Emistry1-2/+6
Return a message that tell GM how many points has been sent and what is the latest total amount of points accumulated by users.
2015-07-05Fixed issue #560Emistry1-12/+11
@sold[] return named item values.
2015-07-05Added script command `showscript "<message>"{,<GID>};`Emistry1-0/+32
Makes attached player or GID says a message like shouting a skill name, the message will be seen to everyone around but not in chat window.
2015-07-04* Quality of life change: display name of the NPC with an invalid view data.Matheus Macabu1-1/+1
Signed-off-by: Matheus Macabu <mkbu95@gmail.com>
2015-07-04Fixed issue #556malufett1-2/+3
Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>