summaryrefslogtreecommitdiff
path: root/src/map/npc.h
AgeCommit message (Collapse)AuthorFilesLines
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>
2015-10-31Add new config to allow player vend/chat room nearby hidden npcAnnieRuru1-0/+1
make changes to (#837) - mske better battle_config clarification - Add FAKE_NPC constant in the source and use them - also use the HIDDEN_WARP_NPC constants
2015-10-11Cleanup of the HPluginData implementation (second part)Haru1-2/+1
- Changed the hplugin_data_store's array into a VECTOR. Signed-off-by: Haru <haru@dotalux.com>
2015-10-11Cleanup of the HPluginData implementation (First part)Haru1-3/+2
- Several explicit casts are removed, to have a slightly better type-checking at compile time. - A destructor function is provided, to remove code duplication. Signed-off-by: Haru <haru@dotalux.com>
2015-08-15HPM compatibility improvementsHaru1-7/+6
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>