summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2019-10-04 01:56:57 -0300
committerJesusaves <cpntb1@ymail.com>2019-10-04 01:56:57 -0300
commitfb0c3699299e9775d708e7409858165e0d20f7b0 (patch)
tree97c0b222dd62ada69074ce6f732ca6b8fbbc1d64
parent1f6cb4ec6049e2f15e043c33e9787de8f13a9e3e (diff)
downloadevol-hercules-fb0c3699299e9775d708e7409858165e0d20f7b0.tar.gz
evol-hercules-fb0c3699299e9775d708e7409858165e0d20f7b0.tar.bz2
evol-hercules-fb0c3699299e9775d708e7409858165e0d20f7b0.tar.xz
evol-hercules-fb0c3699299e9775d708e7409858165e0d20f7b0.zip
Override @refresh with a WORKING version.
This effectively annulates commit 0bdc4bd177 from upstream Note: Do not cast @refresh while a dialog is open. But we don't allow non-staff to use @refresh directly so it is fine.
-rw-r--r--src/emap/atcommand.c9
-rw-r--r--src/emap/atcommand.h1
-rw-r--r--src/emap/init.c1
3 files changed, 11 insertions, 0 deletions
diff --git a/src/emap/atcommand.c b/src/emap/atcommand.c
index c502cb4..de35411 100644
--- a/src/emap/atcommand.c
+++ b/src/emap/atcommand.c
@@ -294,6 +294,15 @@ ACMD1(getName)
// TMW2
/*==========================================
+ * @refresh (like @jumpto <<yourself>>)
+ *------------------------------------------*/
+ACMD0(refresh)
+{
+ clif->refresh(sd);
+ return true;
+}
+
+/*==========================================
* @item command (usage: @item <name/id_of_item> <quantity>) (modified by [Yor] for pet_egg)
* @itembound command (usage: @itembound <name/id_of_item> <quantity> <bound type>) (revised by [Mhalicot])
*------------------------------------------*/
diff --git a/src/emap/atcommand.h b/src/emap/atcommand.h
index de5a880..eb3af35 100644
--- a/src/emap/atcommand.h
+++ b/src/emap/atcommand.h
@@ -42,6 +42,7 @@ ACMD1(serverExit);
ACMD0(log);
ACMD4(tee);
ACMD4(getName);
+ACMD0(refresh);
ACMD0(tmw2item);
#endif // EVOL_MAP_ATCOMMAND
diff --git a/src/emap/init.c b/src/emap/init.c
index 4c46190..57f2e35 100644
--- a/src/emap/init.c
+++ b/src/emap/init.c
@@ -111,6 +111,7 @@ HPExport void plugin_init (void)
addAtcommand("tee", tee);
addAtcommand("log", log);
addAtcommand("getname", getName);
+ addAtcommand("refresh", refresh);
addAtcommand("item", tmw2item);
addCPCommand("serverexit", serverExit);