summaryrefslogtreecommitdiff
path: root/src/map/script.h
diff options
context:
space:
mode:
authorAnnieRuru <jeankof@ymail.com>2015-12-14 14:16:08 +0800
committerHaru <haru@dotalux.com>2015-12-20 15:44:17 +0100
commit4393d2fb8ada596e724aa633b9ad8584df7a3578 (patch)
treee39542d172908476c21840592c1a3225484669a3 /src/map/script.h
parente1da188f662d32e2e737beef5aea5b0ca0a586e5 (diff)
downloadhercules-4393d2fb8ada596e724aa633b9ad8584df7a3578.tar.gz
hercules-4393d2fb8ada596e724aa633b9ad8584df7a3578.tar.bz2
hercules-4393d2fb8ada596e724aa633b9ad8584df7a3578.tar.xz
hercules-4393d2fb8ada596e724aa633b9ad8584df7a3578.zip
Add script->id2sd function to throw error properly if player not found
- included script->charid2sd and script->nick2sd
Diffstat (limited to 'src/map/script.h')
-rw-r--r--src/map/script.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h
index c47956eeb..36b7edef3 100644
--- a/src/map/script.h
+++ b/src/map/script.h
@@ -647,6 +647,9 @@ struct script_interface {
int (*conv_num) (struct script_state *st,struct script_data *data);
const char* (*conv_str) (struct script_state *st,struct script_data *data);
TBL_PC *(*rid2sd) (struct script_state *st);
+ TBL_PC *(*id2sd) (struct script_state *st, int account_id);
+ TBL_PC *(*charid2sd) (struct script_state *st, int char_id);
+ TBL_PC *(*nick2sd) (struct script_state *st, const char *name);
void (*detach_rid) (struct script_state* st);
struct script_data* (*push_val)(struct script_stack* stack, enum c_op type, int64 val, struct reg_db *ref);
struct script_data *(*get_val) (struct script_state* st, struct script_data* data);