diff options
author | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-31 23:02:50 +0000 |
---|---|---|
committer | shennetsind <shennetsind@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2011-12-31 23:02:50 +0000 |
commit | 0f879d42f9f7681280525ed90d41d69cff08776c (patch) | |
tree | 2018e489fe68c3efd429d6636fc8b73cc0511a91 /src/map/script.h | |
parent | 23ed5af9a84477a11d3e946c97d39e7ed5725bfd (diff) | |
download | hercules-0f879d42f9f7681280525ed90d41d69cff08776c.tar.gz hercules-0f879d42f9f7681280525ed90d41d69cff08776c.tar.bz2 hercules-0f879d42f9f7681280525ed90d41d69cff08776c.tar.xz hercules-0f879d42f9f7681280525ed90d41d69cff08776c.zip |
Added 4 new all-handy script functions; special thanks to KeyWorld!
* getargcount()
-- to be used inside functions/callsub labels, returns quantity of arguments provided
* is_function(<function name>)
-- checks weather a "user" function exists, returning 1 if function is found and 0 otherwise.
* freeloop(<toggle>)
-- lets you to enable/disable (1 or 0) the loop infinity protection for that specific npc instance, allowing your script to loop as much as it may need.
* get_revision()
-- retrieves the current svn revision
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@15340 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.h')
-rw-r--r-- | src/map/script.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/script.h b/src/map/script.h index 2ed163a0f..9de1285b8 100644 --- a/src/map/script.h +++ b/src/map/script.h @@ -125,6 +125,7 @@ struct script_state { //For backing up purposes struct script_state *bk_st; int bk_npcid; + unsigned freeloop : 1;// used by buildin_freeloop }; struct script_reg { |