diff options
-rw-r--r-- | Changelog.txt | 1 | ||||
-rw-r--r-- | src/map/npc.c | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/Changelog.txt b/Changelog.txt index 17f5f06ba..f7a2c0d1f 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,5 +1,6 @@ Date Added 11/23 + * Fixed script loading small/large monsters. [Valaris] * @charoption is now #option [MC Cameri] * @charpetfriendly is now #petfriendly [MC Cameri] * @charstats is now #stats [MC Cameri] diff --git a/src/map/npc.c b/src/map/npc.c index 09c823815..b1f9c54ec 100644 --- a/src/map/npc.c +++ b/src/map/npc.c @@ -1925,6 +1925,15 @@ int npc_parse_mob(char *w1,char *w2,char *w3,char *w4) for(i=0;i<num;i++) { md=(struct mob_data *)aCalloc(1,sizeof(struct mob_data)); + if(class>4000) { // large/tiny mobs [Valaris] + md->size=2; + class-=4000; + } + else if(class>2000) { + md->size=1; + class-=2000; + } + md->bl.prev=NULL; md->bl.next=NULL; md->bl.m=m; |