summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-08-07 22:58:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-08-10 23:06:09 +0300
commit6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe (patch)
tree0c83fad347aabdc8f122a1097f1cb25bd8a937ab /src/map/script.h
parent7614415c83f2a091302f62806e16adca1feea6bf (diff)
downloadhercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.tar.gz
hercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.tar.bz2
hercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.tar.xz
hercules-6d55379d57a9b9dea689ddf8e711e0cdfa0c9dbe.zip
Add script interface function run_npc. It do same thing as run.
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/map/script.h b/src/map/script.h
index 20aa7b3c2..f85ebfd79 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -637,7 +637,8 @@ struct script_interface {
void (*set_constant2) (const char *name, int value, bool isparameter);
bool (*get_constant) (const char* name, int* value);
void (*label_add)(int key, int pos);
- void (*run) (struct script_code *rootscript,int pos,int rid,int oid);
+ void (*run) (struct script_code *rootscript, int pos, int rid, int oid);
+ void (*run_npc) (struct script_code *rootscript, int pos, int rid, int oid);
void (*run_main) (struct script_state *st);
int (*run_timer) (int tid, int64 tick, int id, intptr_t data);
int (*set_var) (struct map_session_data *sd, char *name, void *val);