* Autobonus code cleanups.

- removed the 'script_parsed' flag to fix the issues with combo items.
- introduced a global cache for autobonus scripts so that we don't have to parse scripts everytime invoking status_calc_bl.
- fixed such script commands as 'getrefine()' not working inside autobonus scripts.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14180 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
Inkfish
2009-12-02 10:30:10 +00:00
parent 1189a5f9a6
commit 69bd8dced5
6 changed files with 103 additions and 88 deletions

View File

@@ -161,6 +161,7 @@ void script_free_state(struct script_state* st);
struct DBMap* script_get_label_db(void);
struct DBMap* script_get_userfunc_db(void);
void script_run_autobonus(const char *autobonus,int id, int pos);
int script_config_read(char *cfgName);
int do_init_script(void);