From 9fbcd68feb07c638acd72192c3f3c9bc4fd52ad5 Mon Sep 17 00:00:00 2001 From: shennetsind Date: Wed, 24 Apr 2013 10:46:11 -0300 Subject: Fixed defpattern/activatepset/deactivatepset/deletepset script commands All Thanks to Zopokx! Signed-off-by: shennetsind --- src/map/npc_chat.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/map') 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 -- cgit v1.2.3-70-g09d2