diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/emap/script.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/emap/script.c b/src/emap/script.c index 4af2cb1..9f19693 100644 --- a/src/emap/script.c +++ b/src/emap/script.c @@ -220,6 +220,12 @@ void eset_reg_npcscope_num_pre(struct script_state **stPtr, map_alwaysVisible_delete(&nd->bl); hookStop(); } + else if (!strcmp(name, ".srcId")) + { + ShowWarning("you cant assign '.srcId'\n"); + script->reportsrc(st); + hookStop(); + } } int eget_val_npcscope_num_pre(struct script_state **stPtr, @@ -309,6 +315,12 @@ int eget_val_npcscope_num_pre(struct script_state **stPtr, hookStop(); return res; } + else if (!strcmp(name, ".srcId")) + { + getExt1Return(0); + hookStop(); + return nd->src_id; + } return 0; } |