summaryrefslogtreecommitdiff
path: root/src/map/script.c
diff options
context:
space:
mode:
authorcelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-10 10:58:12 +0000
committercelest <celest@54d463be-8e91-2dee-dedb-b68131a5f0ec>2005-01-10 10:58:12 +0000
commit6e2c85e3c1a0cea2230909b4714135369aa35639 (patch)
tree25c7b8fa428f211c4e14ba02873b5fc2ec80d9a7 /src/map/script.c
parent7536331ae203d5576166cd50a3243b735cd30f75 (diff)
downloadhercules-6e2c85e3c1a0cea2230909b4714135369aa35639.tar.gz
hercules-6e2c85e3c1a0cea2230909b4714135369aa35639.tar.bz2
hercules-6e2c85e3c1a0cea2230909b4714135369aa35639.tar.xz
hercules-6e2c85e3c1a0cea2230909b4714135369aa35639.zip
* Added 'max_eventtimer_length' to script_athena.conf
* Removed PCLoginEvent requiring 'PCLoginEvent' for the player to be set to 1 first to be activated git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/branches/stable@945 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r--src/map/script.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/src/map/script.c b/src/map/script.c
index c2369d024..6e00d15cb 100644
--- a/src/map/script.c
+++ b/src/map/script.c
@@ -78,14 +78,8 @@ struct dbt* script_get_userfunc_db(){ if(!userfunc_db) userfunc_db=strdb_init(50
int scriptlabel_final(void *k,void *d,va_list ap){ return 0; }
static char pos[11][100] = {"頭","体","左手","右手","ローブ","靴","アクセサリー1","アクセサリー2","頭2","頭3","装着していない"};
-static struct Script_Config {
- int warn_func_no_comma;
- int warn_cmd_no_comma;
- int warn_func_mismatch_paramnum;
- int warn_cmd_mismatch_paramnum;
- int check_cmdcount;
- int check_gotocount;
-} script_config;
+struct Script_Config script_config;
+
static int parse_cmd_if=0;
static int parse_cmd;
@@ -7210,6 +7204,7 @@ int script_config_read(char *cfgName)
script_config.warn_cmd_mismatch_paramnum=1;
script_config.check_cmdcount=8192;
script_config.check_gotocount=512;
+ script_config.max_eventtimer_len=32;
fp=fopen(cfgName,"r");
if(fp==NULL){
@@ -7243,6 +7238,9 @@ int script_config_read(char *cfgName)
else if(strcmpi(w1,"check_gotocount")==0) {
script_config.check_gotocount = battle_config_switch(w2);
}
+ else if(strcmpi(w1,"max_eventtimer_length")==0) {
+ script_config.max_eventtimer_len = battle_config_switch(w2);
+ }
else if(strcmpi(w1,"import")==0){
script_config_read(w2);
}