summaryrefslogtreecommitdiff
path: root/src/map/map.c
AgeCommit message (Collapse)AuthorFilesLines
2020-07-06Add NoPet mapflagEmistry Haoyan1-0/+13
- allow to set nopet mapflag at any maps. - mapflag to disable pet, and force return to egg.
2020-06-28Merge pull request #2763 from 4144/updatepacketsHaru1-0/+1
Update packets up to 2020-06-03
2020-06-17Fix char id to name requests.Andrei Karas1-0/+1
2020-06-16Call all plugin events even if map server running in minimal modeAndrei Karas1-2/+6
2020-06-16Read battle config in minimal runAndrei Karas1-0/+2
This allow fix warnings in different service plugins.
2020-06-01Merge pull request #2713 from 4144/updatepacketsHaru1-7/+30
Update packets up to 2020-05-20
2020-06-01Make Unit->Id can be grouped by levelsKenpachi Developer1-1/+1
2020-06-01Add mssing map checks into map.cAndrei Karas1-7/+30
2020-05-12Remove old mapreg table related code and configKenpachi Developer1-9/+2
2020-05-12Read name of new map_reg_*_db tables from configuration fileKenpachi Developer1-0/+4
2020-05-04Merge pull request #2188 from bWolfie/cell_noskillHaru1-0/+3
Adds 'cell_noskill' which blocks skill usage.
2020-05-03Merge branch 'master' into cell_noskillKenpachi2k131-196/+231
2020-04-11Fix usage of *= operatorKenpachi Developer1-4/+4
2020-04-05Fixed a memory violation in quest info caused by accessing -1 index when ↵Ibrahim Zidan1-1/+5
qi_list vector length is 0 Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2020-04-05Fix quest info copying npc_data instead of storing it pointer, resulting in ↵Ibrahim Zidan1-3/+3
always false comparison and even possible memory violation access Signed-off-by: Ibrahim Zidan <brahem@aotsw.com>
2020-03-08Change src parameter to be const in map_calc_dirskyleo1-1/+1
2020-03-08Refactor code using directions to use enum unit_dirskyleo1-16/+24
This removes a lot of duplicated code, especially related to people not using the arrays dirx and diry. Assertions for whenever these arrays are used have been added as well, to ensure valid index range. Some trailing white space has been removed as well.
2020-03-08Add enum unit_dir and make direction functions use itskyleo1-41/+48
Without a doubt the readability of code will be increased by this greatly
2020-02-10Fix warnings in the HPMHookGeneratorHaru1-2/+4
Signed-off-by: Haru <haru@dotalux.com>
2020-02-09Merge pull request #2619 from dastgirp/getunits/fixHaru1-1/+4
Crash fixes
2020-02-09Change unload NPC behavior to kill mobs that were spawned by unloaded NPC ↵Kenpachi Developer1-1/+1
(non-permanent monster spawns) [Issue #2530] Mobs spawned by NPC will be removed on @reloadnpc, @unloadnpc, and @unloadnpcfile. Additionally OnNPCUnload NPC label was added, to revert other changes made by NPC. For example set/removed mapflags or added mob drops.
2020-02-09Add npc functions for expanded barter shopsAndrei Karas1-0/+2
2020-01-25map_forcountinmap will return 0 if invalid mapindex is providedDastgir1-1/+4
2020-01-13Update copyright headers for year 2020Haru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2020-01-09Fix reading water level from rsw version 2.2+Andrei Karas1-1/+22
2019-10-29Make the stylist db load before the npcsAsheraf1-1/+1
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-02-28Adds 'cell_noskill' which blocks skill usage.EyesOfAHawk1-0/+3
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