diff options
author | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-17 16:47:21 +0000 |
---|---|---|
committer | Lance <Lance@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-03-17 16:47:21 +0000 |
commit | ec70ae22a2125ec3b71c2318a92746c0214efeb4 (patch) | |
tree | 95da958eff529b00b9972e693872cd6010c31f18 /src/map/script.c | |
parent | 0985a47e31a4979020a87e8cb1768f6b99cf6cbf (diff) | |
download | hercules-ec70ae22a2125ec3b71c2318a92746c0214efeb4.tar.gz hercules-ec70ae22a2125ec3b71c2318a92746c0214efeb4.tar.bz2 hercules-ec70ae22a2125ec3b71c2318a92746c0214efeb4.tar.xz hercules-ec70ae22a2125ec3b71c2318a92746c0214efeb4.zip |
* Fixed misleading and inaccurately documented events and added a missing flag.
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@5649 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/script.c')
-rw-r--r-- | src/map/script.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/map/script.c b/src/map/script.c index e38e55c85..b39eba0fa 100644 --- a/src/map/script.c +++ b/src/map/script.c @@ -11140,10 +11140,15 @@ int script_config_read_sub(char *cfgName) if (strlen(script_config.die_event_name) != strlen(w2))
ShowWarning("script_config_read: Event label truncated (max length is 23 chars): %d\n", script_config.die_event_name);
}
- else if(strcmpi(w1,"kill_event_name")==0) {
- strncpy(script_config.kill_event_name, w2, NAME_LENGTH-1);
- if (strlen(script_config.kill_event_name) != strlen(w2))
- ShowWarning("script_config_read: Event label truncated (max length is 23 chars): %d\n", script_config.kill_event_name);
+ else if(strcmpi(w1,"kill_pc_event_name")==0) {
+ strncpy(script_config.kill_pc_event_name, w2, NAME_LENGTH-1);
+ if (strlen(script_config.kill_pc_event_name) != strlen(w2))
+ ShowWarning("script_config_read: Event label truncated (max length is 23 chars): %d\n", script_config.kill_pc_event_name);
+ }
+ else if(strcmpi(w1,"kill_mob_event_name")==0) {
+ strncpy(script_config.kill_mob_event_name, w2, NAME_LENGTH-1);
+ if (strlen(script_config.kill_mob_event_name) != strlen(w2))
+ ShowWarning("script_config_read: Event label truncated (max length is 23 chars): %d\n", script_config.kill_mob_event_name);
}
else if(strcmpi(w1,"login_event_name")==0) {
strncpy(script_config.login_event_name, w2, NAME_LENGTH-1);
|