summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-29 19:04:23 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-29 19:04:23 +0300
commit7d9fb1c5c1101fc1fc0afaa2508c842cedbf1a5a (patch)
tree572a9968526a3c84c8bad347dafca7f3b2c6a29e /src/map/script.c
parent3c4e409e9080783ecc01d93aa53ddf04f6f93ff0 (diff)
downloadevol-hercules-7d9fb1c5c1101fc1fc0afaa2508c842cedbf1a5a.tar.gz
evol-hercules-7d9fb1c5c1101fc1fc0afaa2508c842cedbf1a5a.tar.bz2
evol-hercules-7d9fb1c5c1101fc1fc0afaa2508c842cedbf1a5a.tar.xz
evol-hercules-7d9fb1c5c1101fc1fc0afaa2508c842cedbf1a5a.zip
add script command for clear npc window.
New script command: clear
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 12902ac..1f629bd 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -693,3 +693,9 @@ BUILDIN(setAvatarAction)
send_npccommand2(script->rid2sd (st), st->oid, 8, script_getnum(st, 2), 0, 0);
return true;
}
+
+BUILDIN(clear)
+{
+ send_npccommand(script->rid2sd (st), st->oid, 9);
+ return true;
+}