summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-04-13 21:54:39 -0300
committerJesusaves <cpntb1@ymail.com>2021-04-13 21:54:39 -0300
commit3113cc8a5fbb51ffe93c7e493e4e0ff323dcf143 (patch)
treef3114c2a9ad26fc3435ed66a91a8bc92917f2d6d
parentb443ce72d4dc6a8e7cce0fa17d56142ec35dd13f (diff)
downloadevol-hercules-3113cc8a5fbb51ffe93c7e493e4e0ff323dcf143.tar.gz
evol-hercules-3113cc8a5fbb51ffe93c7e493e4e0ff323dcf143.tar.bz2
evol-hercules-3113cc8a5fbb51ffe93c7e493e4e0ff323dcf143.tar.xz
evol-hercules-3113cc8a5fbb51ffe93c7e493e4e0ff323dcf143.zip
Allow @refresh to be used during a dialog. Will terminate the dialog but is desired.
-rw-r--r--src/emap/atcommand.c10
-rw-r--r--src/emap/atcommand.h1
-rw-r--r--src/emap/init.c1
3 files changed, 12 insertions, 0 deletions
diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c
index f71698f..8f850d7 100644
--- a/src/emap/atcommand.c
+++ b/src/emap/atcommand.c
@@ -289,3 +289,13 @@ ACMD1(getName)
return true;
}
+
+/*==========================================
+ * @refresh (like @jumpto <<yourself>>)
+ *------------------------------------------*/
+ACMD0(refresh)
+{
+ clif->refresh(sd);
+ return true;
+}
+
diff --git a/src/emap/atcommand.h b/src/emap/atcommand.h
index 50a92df..70459bd 100644
--- a/src/emap/atcommand.h
+++ b/src/emap/atcommand.h
@@ -42,5 +42,6 @@ ACMD1(serverExit);
ACMD0(log);
ACMD4(tee);
ACMD4(getName);
+ACMD0(refresh);
#endif // EVOL_MAP_ATCOMMAND
diff --git a/src/emap/init.c b/src/emap/init.c
index 17d2d56..7caccd6 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -115,6 +115,7 @@ HPExport void plugin_init (void)
addAtcommand("tee", tee);
addAtcommand("log", log);
addAtcommand("getname", getName);
+ addAtcommand("refresh", refresh);
addCPCommand("serverexit", serverExit);