summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-04-24 10:46:11 -0300
committershennetsind <ind@henn.et>2013-04-24 10:46:11 -0300
commit9fbcd68feb07c638acd72192c3f3c9bc4fd52ad5 (patch)
tree8118725ee170a6d246a967aeb9f3d2ee9c36ebd5 /src
parentae8b835bae40e0d6908bae42c963d536534d3e93 (diff)
downloadhercules-9fbcd68feb07c638acd72192c3f3c9bc4fd52ad5.tar.gz
hercules-9fbcd68feb07c638acd72192c3f3c9bc4fd52ad5.tar.bz2
hercules-9fbcd68feb07c638acd72192c3f3c9bc4fd52ad5.tar.xz
hercules-9fbcd68feb07c638acd72192c3f3c9bc4fd52ad5.zip
Fixed defpattern/activatepset/deactivatepset/deletepset script commands
All Thanks to Zopokx! Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src')
-rw-r--r--src/map/npc_chat.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/map/npc_chat.c b/src/map/npc_chat.c
index 39a3a8584..64d0fe5e9 100644
--- a/src/map/npc_chat.c
+++ b/src/map/npc_chat.c
@@ -1,5 +1,6 @@
-// Copyright (c) Athena Dev Teams - Licensed under GNU GPL
-// For more information, see LICENCE in the main folder
+// Copyright (c) Hercules Dev Team, licensed under GNU GPL.
+// See the LICENSE file
+// Portions Copyright (c) Athena Dev Teams
#ifdef PCRE_SUPPORT
@@ -414,7 +415,7 @@ int buildin_defpattern(struct script_state* st)
npc_chat_def_pattern(nd, setid, pattern, label);
- return 0;
+ return 1;
}
int buildin_activatepset(struct script_state* st)
@@ -424,7 +425,7 @@ int buildin_activatepset(struct script_state* st)
activate_pcreset(nd, setid);
- return 0;
+ return 1;
}
int buildin_deactivatepset(struct script_state* st)
@@ -434,7 +435,7 @@ int buildin_deactivatepset(struct script_state* st)
deactivate_pcreset(nd, setid);
- return 0;
+ return 1;
}
int buildin_deletepset(struct script_state* st)
@@ -444,7 +445,7 @@ int buildin_deletepset(struct script_state* st)
delete_pcreset(nd, setid);
- return 0;
+ return 1;
}
#endif //PCRE_SUPPORT