summaryrefslogtreecommitdiff
path: root/src/map/npc.c
diff options
context:
space:
mode:
authorshinomori <shinomori@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-23 10:58:04 +0000
committershinomori <shinomori@54d463be-8e91-2dee-dedb-b68131a5f0ec>2006-04-23 10:58:04 +0000
commit8f76148e09a0927ca15abc7126b98baa4f41b1dd (patch)
tree9828af97db8a3a549ab5723b7def710e47bcde32 /src/map/npc.c
parent80b00a7c1c9c01d6fed95d2ced96c1ac715da26d (diff)
downloadhercules-8f76148e09a0927ca15abc7126b98baa4f41b1dd.tar.gz
hercules-8f76148e09a0927ca15abc7126b98baa4f41b1dd.tar.bz2
hercules-8f76148e09a0927ca15abc7126b98baa4f41b1dd.tar.xz
hercules-8f76148e09a0927ca15abc7126b98baa4f41b1dd.zip
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@6239 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/npc.c')
-rw-r--r--src/map/npc.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/map/npc.c b/src/map/npc.c
index bd83131ed..038c2804c 100644
--- a/src/map/npc.c
+++ b/src/map/npc.c
@@ -2412,7 +2412,14 @@ static int npc_parse_mapflag (char *w1, char *w2, char *w3, char *w4)
map[m].zone = 0;
}
}
-
+ else if (strcmpi(w3,"jexp")==0) {
+ map[m].jexp = (state) ? atoi(w4) : 100;
+ if( map[m].jexp < 0 ) map[m].jexp = 100;
+ }
+ else if (strcmpi(w3,"bexp")==0) {
+ map[m].bexp = (state) ? atoi(w4) : 100;
+ if( map[m].bexp < 0 ) map[m].bexp = 100;
+ }
return 0;
}