summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-05-13 04:50:16 +0300
committerAndrei Karas <akaras@inbox.ru>2018-05-29 05:01:37 +0300
commit031cdbe5b3f108d7a732c230d061c567de723a75 (patch)
treece23cf4125616c8c9cf2c9cea5b7cdaef03f3e00 /src/map/script.c
parent73b971c66f460f5a1dcb600097b2551434f8726f (diff)
downloadhercules-031cdbe5b3f108d7a732c230d061c567de723a75.tar.gz
hercules-031cdbe5b3f108d7a732c230d061c567de723a75.tar.bz2
hercules-031cdbe5b3f108d7a732c230d061c567de723a75.tar.xz
hercules-031cdbe5b3f108d7a732c230d061c567de723a75.zip
Add autogenerated messages list headers with original strings and translation.
Also add packet version checks for used messages.
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.c b/src/map/script.c
index 688818cb1..a0c46a804 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -43,6 +43,7 @@
#include "map/map.h"
#include "map/mapreg.h"
#include "map/mercenary.h"
+#include "map/messages.h"
#include "map/mob.h"
#include "map/npc.h"
#include "map/party.h"
@@ -21837,7 +21838,9 @@ BUILDIN(setcashmount)
return true;
if (pc_hasmount(sd)) {
+#if PACKETVER >= 20110531
clif->msgtable(sd, MSG_FAIELD_RIDING_OVERLAPPED);
+#endif
script_pushint(st, 0); // Can't mount with one of these
} else {
if (sd->sc.data[SC_ALL_RIDING]) {