Browse Source

Hardcoded the even label config settings from r14097.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@14099 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 15 years ago
parent
commit
a38fddad27
3 changed files with 4 additions and 21 deletions
  1. 0 11
      conf/script_athena.conf
  2. 2 8
      src/map/script.c
  3. 2 2
      src/map/script.h

+ 0 - 11
conf/script_athena.conf

@@ -32,15 +32,4 @@ check_gotocount: 2048
 //input_max_value: 2147483647
 input_max_value: 10000000
 
-// Official Version of OnTouch
-// Scripts run on the first visible character walks into the OnTouch area 
-// and before he walks out/hides, the scripts won't run ever again.
-// This label takes the piority to OnTouch2_Label.
-OnTouch_Label: OnTouch_
-
-// Official Version of OnTouch2
-// Scripts run on every character walks into the OnTouch area 
-// This is the same as the "OnTouch" that eA has been using all along.
-OnTouch2_Label: OnTouch
-
 import: conf/import/script_conf.txt

+ 2 - 8
src/map/script.c

@@ -217,8 +217,8 @@ struct Script_Config script_config = {
 	"OnPCLoadMapEvent", //loadmap_event_name
 	"OnPCBaseLvUpEvent", //baselvup_event_name
 	"OnPCJobLvUpEvent", //joblvup_event_name
-	"OnTouch",	//Official version of OnTouch
-	"OnTouch2",	//Official version of OnTouch2
+	"OnTouch_",	//ontouch_name (runs on first visible char to enter area, picks another char if the first char leaves)
+	"OnTouch",	//ontouch2_name (run whenever a char walks into the OnTouch area)
 };
 
 static jmp_buf     error_jump;
@@ -3340,12 +3340,6 @@ int script_config_read(char *cfgName)
 		else if(strcmpi(w1,"input_max_value")==0) {
 			script_config.input_max_value = config_switch(w2);
 		}
-		else if(strcmpi(w1, "OnTouch_Label") == 0) {
-			safestrncpy(script_config.ontouch_name, w2, NAME_LENGTH);
-		}
-		else if(strcmpi(w1, "OnTouch2_Label") == 0) {
-			safestrncpy(script_config.ontouch2_name, w2, NAME_LENGTH);
-		}
 		else if(strcmpi(w1,"import")==0){
 			script_config_read(w2);
 		}

+ 2 - 2
src/map/script.h

@@ -26,8 +26,8 @@ extern struct Script_Config {
 	const char *baselvup_event_name;
 	const char *joblvup_event_name;
 
-	char ontouch_name[NAME_LENGTH];
-	char ontouch2_name[NAME_LENGTH];
+	const char* ontouch_name;
+	const char* ontouch2_name;
 } script_config;
 
 typedef enum c_op {