summaryrefslogtreecommitdiff
path: root/src/map/npc.h
AgeCommit message (Collapse)AuthorFilesLines
2020-02-09Change unload NPC behavior to kill mobs that were spawned by unloaded NPC ↵Kenpachi Developer1-3/+4
(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-2/+15
2020-02-09Add expanded barter shop constantAndrei Karas1-0/+1
2020-01-13Update copyright headers for year 2020Haru1-2/+2
Signed-off-by: Haru <haru@dotalux.com>
2019-08-26Merge pull request #2521 from Emistry/db_const_npcidentityHaru1-1/+1
Update NPC Identity
2019-08-21Add new version for packet ZC_NPC_MARKET_PURCHASE_RESULTAndrei Karas1-1/+3
Also add enum for result field in packet ZC_NPC_MARKET_PURCHASE_RESULT
2019-08-14Update NPC IdentityEmistry Haoyan1-1/+1
- npc id constant
2019-05-06Move questinfo data from map to npc_dataAsheraf1-0/+2
this will fix the issue where having multiple `questinfo()` blocks wont work properly
2019-02-11Change type for class variables from short to intAndrei Karas1-3/+3
2019-01-14Add support for saving/loading barter shops from sql table.Andrei Karas1-3/+7
Also allow add duplicated item id to barter shops if price is different.
2019-01-14Add packet CZ_NPC_BARTER_PURCHASEAndrei Karas1-0/+1
2019-01-14Add barter type shop and add packet ZC_NPC_BARTER_OPENAndrei Karas1-4/+8
2018-09-02Update Npc Constants DatabaseAsheraf1-1/+1
2018-07-19Replace item id shorts to int in map server.Andrei Karas1-2/+2
2018-05-312012-2018 !Maytichai Saowa1-1/+1
2018-04-08Added delay to tomb spawnGuilherme G. Menaldo1-0/+1
2018-01-25Implementation of Official Clan SystemMurilo Pereti Tavares1-0/+2
All official features work including the autokick for inactive members And the system is completely customizable.
2017-11-04Refresh npc after changing fields in setunitdata.Andrei Karas1-0/+1
2017-11-04Allow each npc use own view_data structure.Andrei Karas1-1/+1
Allow npc to use player classes (for older than 20170726 npc visible as players). View_data structure can be copied from predefined view_data lists created new if npc using player type.
2017-04-18Update NPC IDJedzkie1-2/+1
2016-10-28Fixed copyright year for 2016Lemongrass31101-1/+1
2016-06-18Move npc static variables into npc interface.Andrei Karas1-0/+10
2016-03-20Dropped typedef from DBMapHaru1-4/+4
Signed-off-by: Haru <haru@dotalux.com>
2016-03-20Dropped typedefs from union DBKey and struct DBDataHaru1-5/+5
Signed-off-by: Haru <haru@dotalux.com>
2016-02-29Follow up ↵Jedzkie1-1/+1
https://github.com/HerculesWS/Hercules/commit/f95290cc2396d791ad3e9e9f5f73980887a5ef95.
2016-02-24Edited npc->selllist() to use the new struct itemlistHaru1-2/+2
- The npc-side code no longer depends on the client data layout. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Edited npc->buylist() to use the new struct itemlistHaru1-2/+2
- The npc-side code no longer depends on the client data layout. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Edited npc->market_buylist() to use the new struct itemlistHaru1-1/+1
- The npc-side code no longer depends on the client data layout. Signed-off-by: Haru <haru@dotalux.com>
2016-02-24Edited npc->cashshop_buylist() to use the new struct itemlistHaru1-1/+3
- The npc-side code no longer depends on the client packet data layout. Signed-off-by: Haru <haru@dotalux.com>
2016-02-06Changed PCRE to properly use the system-provided pcre.hHaru1-3/+2
Signed-off-by: Haru <haru@dotalux.com>
2016-01-21Remove unused PCRE_SUPPORT define.Andrei Karas1-22/+0
2015-12-22- Fixes #1005 (Thanks jTynne)Jedzkie1-1/+1
- Update NPC ID's
2015-12-15Added GPL-compliant header to all sources and build scriptsHaru1-4/+20
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_unknown_objectHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_mobHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_functionHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_duplicateHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_scriptHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_shopHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_warpHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-12-15Added const qualifier to the w1~w4 arguments of npc_parse_mapflagHaru1-2/+2
- This is necessary before merging #960 Signed-off-by: Haru <haru@dotalux.com>
2015-12-02Fixed compile errors on very old PACKETVERsHaru1-5/+29
- Fixes #903 and other similar problems Signed-off-by: Haru <haru@dotalux.com>
2015-11-18Merge pull request #837 from AnnieRuru/request_5Haruna1-0/+1
Add new config to allow player vend/chat room nearby hidden npc (#834)
2015-11-16Update new NPC ID's.Jedzkie1-1/+1
Signed-off-by: Jedzkie <jedzkie13@rocketmail.com>
2015-11-12Split npc_duplicate_sub into separate functions based on subtypesHaru1-0/+3
- For plugin overriding purposes. Thanks to Andrei Karas for the idea. Signed-off-by: Haru <haru@dotalux.com>
2015-11-12Split frequently repeated code to add/register new NPCs to its own functionHaru1-0/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-11-12Added subtype initializer to npc_create_npcHaru1-1/+1
Signed-off-by: Haru <haru@dotalux.com>
2015-11-12Moved class and dir initializers to npc_create_npcHaru1-2/+3
Signed-off-by: Haru <haru@dotalux.com>
2015-11-12Split the duplication logic away from the parsing logic in NPC duplicatesHaru1-0/+1
- Fixes #812 (warning message while creating instances) Signed-off-by: Haru <haru@dotalux.com>
2015-11-11Split the source path reference retain mechanism out of npc_parsename.Haru1-1/+3
Signed-off-by: Haru <haru@dotalux.com>