summaryrefslogtreecommitdiff
path: root/src/map/map.c
AgeCommit message (Collapse)AuthorFilesLines
2019-10-20Merge pull request #2547 from guilherme-gm/201910-dehardcode-dbHaru1-6/+4
Dehardcode DB files path
2019-10-18Fix a missing mapindex update in the gm:info console commandHaru1-1/+3
Signed-off-by: Haru <haru@dotalux.com>
2019-10-17Fix compilation warnings in gcc-9Andrei Karas1-0/+3
Also reenabled array bound warning
2019-10-05Dehardcodes db files base path so the db folder can be easily movedGuilherme Menaldo1-6/+4
2019-09-23Optimize loops in map_nick2sdHaru1-20/+19
Signed-off-by: Haru <haru@dotalux.com>
2019-09-22Fix several issues caused by the nick partial match feature, when enabled.Haru1-12/+11
Partial match is now disabled in all the internal (source) and script lookups, while it's enabled for the lookups requested by atcommands and client. Signed-off-by: Haru <haru@dotalux.com>
2019-06-02Merge pull request #2221 from carloshenrq/nostorageHaru1-0/+26
Mapflag nostorage and nogstorage
2019-05-06Move questinfo data from map to npc_dataAsheraf1-14/+17
this will fix the issue where having multiple `questinfo()` blocks wont work properly
2019-05-06remove duplicated code used to clean map dataAsheraf1-87/+37
2019-05-05Implement Refinery UIIbrahim Zidan1-0/+1
Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-05-05Removal of refine database code from status.c and moving it respectfully to ↵Ibrahim Zidan1-0/+3
its own files Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2019-03-07moving stylist into it's own interfaceAsheraf1-0/+4
2019-01-14Add support for saving/loading barter shops from sql table.Andrei Karas1-0/+2
Also allow add duplicated item id to barter shops if price is different.
2018-12-04Added mapflags 'nostorage' and 'nogstorage'Carlos Henrique1-0/+26
nostorage 1 -- blocks only @storage nostorage 2 -- blocks only openstorage(); nostorage 3 -- blocks @storage and openstorage() nogstorage 1 -- blocks only @gstorage nogstorage 2 -- blocks only guildopenstorage(); nogstorage 3 -- blocks @gstorage and guildopenstorage()
2018-11-26fix map_forcountinmap using block size rather than cell sizegumi1-1/+1
closes #2330
2018-11-13use a dedicated zone remove function when reloading zonesgumi1-1/+23
2018-11-13Merge pull request #2105 from Helianthella/getunits3Haru1-0/+13
break the loop in buildin_getunits when the max is reached
2018-11-07break the loop in buildin_getunits when the max is reachedgumi1-0/+13
2018-08-01reload the zone db on npc reloadgumi1-0/+28
2018-07-24Implementation of the official Achievement System.smokexyz1-0/+4
Source: http://ro.gnjoy.com/news/update/View.asp?seq=163&curpage=1 Script Commands - ``` achievement_progress(<ach_id>,<obj_idx>,<progress>,<incremental?>{,<char_id>}); ``` Includes an achievement_db.conf generator that reads from the item_db, mob_db (server side) and achievement_list.lub files to determine valid achievement entries based on item/monster availability. Achievements containing unsupported entries are commented out. This feature, although renewal-only in official servers, is capable of being used in pre-renewal mode on Hercules. Does not include the title system yet. A big thanks to - @MishimaHaruna for constantly reviewing. @4144 for all the support. @Asheraf for a lot of official information. Co-authored-by: "Dastgir" <dastgirp@gmail.com>
2018-07-24Questinfo System overhaulAsheraf1-11/+1
2018-07-24Convert questinfo data into a vectorAsheraf1-22/+17
2018-07-19Fixing detecting item id or item name in string.Andrei Karas1-2/+2
2018-07-19Replace item id shorts to int in map server.Andrei Karas1-1/+1
2018-07-01Change functions to static where possible (Part 4 - map)Haru1-183/+280
This fixes issues with plugins defining symbols with the same names Signed-off-by: Haru <haru@dotalux.com>
2018-05-312012-2018 !Maytichai Saowa1-1/+1
2018-05-03Fix overflow in map zones.Andrei Karas1-6/+8
2018-04-11*delwall now give a friendly warning to remind non-existent wallAnnieRuru1-2/+3
2018-02-17New mapcache systemhemagx1-102/+119
* Now each map is in separated file so now it will be easier to know which map got updated or delete on updates * Now there's md5 checksum check for each map * Now the map cache is platform safe, the old format was not packed which may result in undefined behavior * The map cache tool got converted into hercules plugin Signed-off-by: hemagx <ibrahem.h.basyone@gmail.com>
2018-02-12Fix possible crash in zone change code. Fixes #1971Andrei Karas1-0/+2
In function map_zone_change2 silently exit if zone is NULL.
2018-01-25Implementation of Official Clan SystemMurilo Pereti Tavares1-0/+18
All official features work including the autokick for inactive members And the system is completely customizable.
2017-12-23Add support for new drop packet 0xadd for zero clientsAsheraf1-1/+3
2017-10-30Add monster spawn boss flag for miniboss: miniboss_monsterAndrei Karas1-1/+1
also fix boss_monster flag for works as mvp and not like mini boss. unhide boss flag if hp bar disabled.
2017-08-20Ignore hidden units in the cell stack limit checksHaru1-0/+5
- This improves the Dancer Quest experience as well as other cases of hidden NPCs blocking off certain cells - Fixes #1135 Signed-off-by: Haru <haru@dotalux.com>
2017-07-30Implementation of RoDEXKirieZ1-0/+5
2017-07-27Fix possible buffer overflows with snprintf.Andrei Karas1-2/+2
2016-10-23Removed the too small max key length limit on the npc_removed_list DBMapHaru1-1/+1
- Fixes #1483 Signed-off-by: Haru <haru@dotalux.com>
2016-10-22Implemented SU_STOOP Skill.Dastgir Pojee1-0/+1
Reduces Incoming Damange by 90% for 6 seconds. When Knock Back, the effect disappears.
2016-09-30Add different fixes for gcc 7 warnings.Andrei Karas1-3/+4
Some possible buffer overflows. Add attribute for mark fallthrough cases. Skipped libconfig warnings.
2016-09-18Removed special handling of "clear" in npc->addsrcfile()Haru1-1/+1
- Use npc->clearsrcfile() instead. Signed-off-by: Haru <haru@dotalux.com>
2016-09-18Restored handling of "all" in npc_removed_listHaru1-4/+8
- The feature was missing/incomplete since the conversion to libconfig - Fixes #1425 Signed-off-by: Haru <haru@dotalux.com>
2016-09-18Corrected some issues in the npc_removed_list and map_removed processingHaru1-4/+4
- Removed the unnecessary DB_OPT_RELEASE_KEY flag (we don't want to release the original key, but only the duplicate one, which is already managed by DB_OPT_DUP_KEY) - Added DB_OPT_NULL_DATA to the npc_removed_list DBMap (follow-up to 4aa5286, related #1430) Signed-off-by: Haru <haru@dotalux.com>
2016-09-13Fixed an error in the scripts_removed.conf processingHaru1-1/+1
- Fixes #1425, fixes #1430 Signed-off-by: Haru <haru@dotalux.com>
2016-08-22Corrected an issue that prevented the map server's database port from being ↵Haru1-1/+1
changed Signed-off-by: Haru <haru@dotalux.com>
2016-08-20Re-added HPM support for configuration settingsHaru1-1/+2
Plugin settings should be relative to the the libconfig file root. For example, a configuration setting of type HPCT_CHAR will be relative to the root of conf/char/char-server.conf. In order to add a configuration entry inside the char_configuration block, the full configuration path (slash-delimited) should be passed to addCharConf(), as in the following example: `addCharConf("char_configuration/my_setting", my_parser_function);` Signed-off-by: Haru <haru@dotalux.com>
2016-08-19Ported battle.conf to libconfigHaru1-3/+4
Ported to modern Hercules and cleaned up from Panikon's commits: 44fea0b3cdba6901599265220228ba4359b1f96d, 9cba05bc0811e638bbaaa6cff887d0b2c9872560 Signed-off-by: Haru <haru@dotalux.com>
2016-08-19Ported socket.conf (was packet.conf) to libconfigHaru1-0/+1
Ported to modern Hercules and cleaned up from Panikon's commits: b10f2a88073882bea812c6278fdec7848102ab87, bc5007299a92898ea4630f2a977d9a1b42b6c145 Signed-off-by: Haru <haru@dotalux.com>
2016-08-19Ported script.conf to libconfigHaru1-3/+4
Ported to modern Hercules and cleaned up from Panikon's commits: a0e4da63ef3afcd896603398e2468876681ac54a, b5f487c2676833492a6d4044b5d1f1bb1e552b04 Signed-off-by: Haru <haru@dotalux.com>
2016-08-19Ported logs.conf to libconfigHaru1-3/+4
Ported to modern Hercules and cleaned up from Panikon's commits: 2a7c931b9b4e0f9c6e7766cb25701514230ec7e3, f5b1ee3df777ba7e69f1f99abaf0d00b987fc0e3, 6d1f8f50b0e7349bdab2c53bb172d0b036e47c04 Signed-off-by: Haru <haru@dotalux.com>
2016-08-19Ported npc config to libconfigHaru1-35/+82
Ported to modern Hercules and cleaned up from Panikon's commits: ca009582cb22340951aa3e86c044ec1dca05df36, 6d6adf9bab2ba6f4274395018b8def566b880197 Signed-off-by: Haru <haru@dotalux.com>