From 0f879d42f9f7681280525ed90d41d69cff08776c Mon Sep 17 00:00:00 2001 From: shennetsind Date: Sat, 31 Dec 2011 23:02:50 +0000 Subject: 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() -- checks weather a "user" function exists, returning 1 if function is found and 0 otherwise. * freeloop() -- 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 --- src/map/script.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/map/script.h') 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 { -- cgit v1.2.3-60-g2f50