Change monsters stats and rewards according to size

Alayne

New member
Messages
345
Points
0
Hey guys.

I'd like to add some little feature.

i've got a script that spawn monsters of different size of the same id.

i'd like the big one to have twice as much stats and exp reward as the normal one, and the small one to have half as much stats and exp.

Can anybody help me to do that?

 
It will be through source code
default_smile.png


 
you are in luck

I just release setmobdata few days ago

its in my sig

however, the exp reward cannot be modify because in the source, mob.c, it use md->db->base_exp, which read directly from the database

so have to set BaseExp, BaseExp + xxxx manually

... this one is supposed in the frequently asked question 3rd post, I currently don't have time to write them in detailed yet

 
Thanks Annie, I'll give it a look then. 

Actually I've seen after I post this topic, but wasn't really sure it can fit to what I need.

I'll try that.

 
Last edited by a moderator:
I think there's already a conf option for this? conf/battle/monster.conf

Code:
// Whether or not the size of specially summoned mobs influences experience, drop rates,// and stats. The rates will be doubled for large mobs, and halved for small ones.// This is only invoked under the 'monster' command, @monsterbig, and @monstersmall. (Note 1)// Default: nomob_size_influence: yes
 
omg ! I wonder why I can miss this out when I read mob.c

 
Back
Top