summaryrefslogtreecommitdiff
path: root/src/map/npc_chat.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-06 22:15:19 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2007-04-06 22:15:19 +0000
commitad814bbda0570efc01f00cf4a59af573f9843faf (patch)
tree62e081ba13dcddc08ef8ee09eccff42e51d7e0ad /src/map/npc_chat.c
parent6ac92e521000e26a5d4034d5c881f08313596aaa (diff)
downloadhercules-ad814bbda0570efc01f00cf4a59af573f9843faf.tar.gz
hercules-ad814bbda0570efc01f00cf4a59af573f9843faf.tar.bz2
hercules-ad814bbda0570efc01f00cf4a59af573f9843faf.tar.xz
hercules-ad814bbda0570efc01f00cf4a59af573f9843faf.zip
Updated the server's PCRE components to 7.0
- dll, library, header - cleaned the only existing example and moved it to /samples - changed its interface a bit, now it uses $@ instead of $ to store the parsed result - /!\ adjust your scripts if you are using npc regexp parsing /!\ git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@10170 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc_chat.c')
-rw-r--r--src/map/npc_chat.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/map/npc_chat.c b/src/map/npc_chat.c
index 22ea457eb..6288714bc 100644
--- a/src/map/npc_chat.c
+++ b/src/map/npc_chat.c
@@ -49,7 +49,7 @@
* is matched.
*
* each of the matched Groups will result in a variable being
- * set ($p1$ through $p9$ with $p0$ being the entire string)
+ * set ($@p1$ through $@p9$ with $@p0$ being the entire string)
* before the script gets executed.
*
* activatepset 1;
@@ -402,43 +402,43 @@ int npc_chat_sub(struct block_list *bl, va_list ap)
case 10:
memcpy(buf, &msg[offsets[18]], offsets[19]);
buf[offsets[19]] = '\0';
- set_var(sd, "$p9$", buf);
+ set_var(sd, "$@p9$", buf);
case 9:
memcpy(buf, &msg[offsets[16]], offsets[17]);
buf[offsets[17]] = '\0';
- set_var(sd, "$p8$", buf);
+ set_var(sd, "$@p8$", buf);
case 8:
memcpy(buf, &msg[offsets[14]], offsets[15]);
buf[offsets[15]] = '\0';
- set_var(sd, "$p7$", buf);
+ set_var(sd, "$@p7$", buf);
case 7:
memcpy(buf, &msg[offsets[12]], offsets[13]);
buf[offsets[13]] = '\0';
- set_var(sd, "$p6$", buf);
+ set_var(sd, "$@p6$", buf);
case 6:
memcpy(buf, &msg[offsets[10]], offsets[11]);
buf[offsets[11]] = '\0';
- set_var(sd, "$p5$", buf);
+ set_var(sd, "$@p5$", buf);
case 5:
memcpy(buf, &msg[offsets[8]], offsets[9]);
buf[offsets[9]] = '\0';
- set_var(sd, "$p4$", buf);
+ set_var(sd, "$@p4$", buf);
case 4:
memcpy(buf, &msg[offsets[6]], offsets[7]);
buf[offsets[7]] = '\0';
- set_var(sd, "$p3$", buf);
+ set_var(sd, "$@p3$", buf);
case 3:
memcpy(buf, &msg[offsets[4]], offsets[5]);
buf[offsets[5]] = '\0';
- set_var(sd, "$p2$", buf);
+ set_var(sd, "$@p2$", buf);
case 2:
memcpy(buf, &msg[offsets[2]], offsets[3]);
buf[offsets[3]] = '\0';
- set_var(sd, "$p1$", buf);
+ set_var(sd, "$@p1$", buf);
case 1:
memcpy(buf, &msg[offsets[0]], offsets[1]);
buf[offsets[1]] = '\0';
- set_var(sd, "$p0$", buf);
+ set_var(sd, "$@p0$", buf);
}
// find the target label.. this sucks..