summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2014-02-26 15:10:11 -0300
committershennetsind <ind@henn.et>2014-02-26 15:10:11 -0300
commit0732f55931524c1a2cf703805d61e955c4afea29 (patch)
tree1cebeda0e411870028588f8462357d422ee1dd9e /src/map/script.h
parent950e3ebcdbbde96b090fa681ce88ecf4069f2f64 (diff)
downloadhercules-0732f55931524c1a2cf703805d61e955c4afea29.tar.gz
hercules-0732f55931524c1a2cf703805d61e955c4afea29.tar.bz2
hercules-0732f55931524c1a2cf703805d61e955c4afea29.tar.xz
hercules-0732f55931524c1a2cf703805d61e955c4afea29.zip
Improved mapindex_name2id errors for scripts
NPC Error is now printed as well as the original message as proposed by Emistry in http://hercules.ws/board/topic/1864-mapindex-name2id-display-which-npc-caused-this/ Special Thanks to Haru! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 5ce77799a..7ab7f17c6 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -696,6 +696,7 @@ struct script_interface {
unsigned int *(*array_cpy_list) (struct script_array *sa);
/* */
void (*hardcoded_constants) (void);
+ unsigned short (*mapindexname2id) (struct script_state *st, const char* name);
};
struct script_interface *script;