summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-15 15:16:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-15 15:16:44 +0300
commit3a0174f242798b42b82b196c9c665abc65d323f3 (patch)
tree915de26de03e5669795c821583d29a91c07c0774 /src/map/script.c
parent709a4632333657ac6e12c427843d07d3198f68d7 (diff)
downloadevol-hercules-3a0174f242798b42b82b196c9c665abc65d323f3.tar.gz
evol-hercules-3a0174f242798b42b82b196c9c665abc65d323f3.tar.bz2
evol-hercules-3a0174f242798b42b82b196c9c665abc65d323f3.tar.xz
evol-hercules-3a0174f242798b42b82b196c9c665abc65d323f3.zip
Impliment script command restoreCam.
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 585dfec..7184707 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -102,3 +102,13 @@ BUILDIN(setCamNpc)
return 0;
}
+
+BUILDIN(restoreCam)
+{
+ TBL_PC *sd = script->rid2sd(st);
+ if (!sd)
+ return 1;
+
+ send_npccommand(sd, st->oid, 3);
+ return 0;
+}