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 --- doc/script_commands.txt | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'doc') diff --git a/doc/script_commands.txt b/doc/script_commands.txt index 33df8a59b..d862acd9d 100644 --- a/doc/script_commands.txt +++ b/doc/script_commands.txt @@ -2109,6 +2109,28 @@ array, shifting all the elements beyond this towards the beginning. --------------------------------------- +*bindatcmd "command","{NPC NAME}::"{,atcommand level,charcommand level}; +*bindatcmd ("command","{NPC NAME}::"{,atcommand level,charcommand level}); + +This command will bind a NPC event label to an atcommand. Upon execution of +the atcommand the user will invoke the NPC event label. + +--------------------------------------- + +*unbindatcmd "command"; +*unbindatcmd ("command"); + +This command will unbind a NPC event label from an atcommand. + +--------------------------------------- + +*useatcmd "command"; +*useatcmd ("command"); + +This command will execute a custom atcommand on the attached RID from a script. + +--------------------------------------- + ====================================== |2.- Information-retrieving commands.| ====================================== -- cgit v1.2.3-70-g09d2