diff options
author | cookiecrumbs <cookiecrumbs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-22 05:15:32 +0000 |
---|---|---|
committer | cookiecrumbs <cookiecrumbs@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2012-07-22 05:15:32 +0000 |
commit | 52ed37bd877a4f462171a1501ec1ab2c4fd19eea (patch) | |
tree | ef42647de9b19016dac41e1a6899891a8d69074c /src/map/script.h | |
parent | 04ce57ecc743ec95e79fedab7e00bc650e386d23 (diff) | |
download | hercules-52ed37bd877a4f462171a1501ec1ab2c4fd19eea.tar.gz hercules-52ed37bd877a4f462171a1501ec1ab2c4fd19eea.tar.bz2 hercules-52ed37bd877a4f462171a1501ec1ab2c4fd19eea.tar.xz hercules-52ed37bd877a4f462171a1501ec1ab2c4fd19eea.zip |
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
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h index eed4c20c8..41c686660 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -187,4 +187,7 @@ int add_str(const char* p); const char* get_str(int id); int script_reload(void); +// @commands (script based) +void setd_sub(struct script_state *st, TBL_PC *sd, const char *varname, int elem, void *value, struct DBMap **ref); + #endif /* _SCRIPT_H_ */ |