From 52ed37bd877a4f462171a1501ec1ab2c4fd19eea Mon Sep 17 00:00:00 2001 From: cookiecrumbs Date: Sun, 22 Jul 2012 05:15:32 +0000 Subject: Added the ability to bind atcommands to NPC events (ex: NPCNAME::OnEvent); original version by ToastOfDoom however heavily modified by I enabling command level at the invoking/character (@/#) level and fixes to prevent console errors as well as fixes aimed to ensure compatibility with rAthena. Updated the script_commands.txt documentation with the following script commands: bindatcmd, unbindatcmd and useatcmd. git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@16471 54d463be-8e91-2dee-dedb-b68131a5f0ec --- src/map/npc.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/map/npc.h') diff --git a/src/map/npc.h b/src/map/npc.h index 6f8737c65..f5dd9011c 100644 --- a/src/map/npc.h +++ b/src/map/npc.h @@ -172,4 +172,7 @@ int npc_cashshop_buylist(struct map_session_data *sd, int points, int count, uns int npc_rr_secure_timeout_timer(int tid, unsigned int tick, int id, intptr_t data); #endif +// @commands (script-based) +int npc_do_atcmd_event(struct map_session_data* sd, const char* command, const char* message, const char* eventname); + #endif /* _NPC_H_ */ -- cgit v1.2.3-60-g2f50