summaryrefslogtreecommitdiff
path: root/src/map/itemdb.h
diff options
context:
space:
mode:
authorskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-08 15:16:48 +0000
committerskotlex <skotlex@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-03-08 15:16:48 +0000
commit8a22b23c902520efc35a49e45649ea8a3746cc95 (patch)
tree9dc6930ce8f0bd30e75ddee06a806216e335b461 /src/map/itemdb.h
parentcfe300e3dde5b98e44e61650a09bb587384060f8 (diff)
downloadhercules-8a22b23c902520efc35a49e45649ea8a3746cc95.tar.gz
hercules-8a22b23c902520efc35a49e45649ea8a3746cc95.tar.bz2
hercules-8a22b23c902520efc35a49e45649ea8a3746cc95.tar.xz
hercules-8a22b23c902520efc35a49e45649ea8a3746cc95.zip
- Added functions mobdb_searchname_array and itemdb_searchname_array which return an array of matches.
- Modified @iteminfo and @mobinfo to search and display various matches instead of just one. - Constant MAX_SEARCH in map.h defines the max size of search results. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5512 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/itemdb.h')
-rw-r--r--src/map/itemdb.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/itemdb.h b/src/map/itemdb.h
index dd1e08c80..c43863155 100644
--- a/src/map/itemdb.h
+++ b/src/map/itemdb.h
@@ -56,6 +56,7 @@ struct item_group {
};
struct item_data* itemdb_searchname(const char *name);
+int itemdb_searchname_array(struct item_data** data, int size, const char *str);
struct item_data* itemdb_load(int nameid);
struct item_data* itemdb_search(int nameid);
struct item_data* itemdb_exists(int nameid);