Jump to content
lekkereten

Modification in monster/areamonster syntax

Recommended Posts

Mr Euphy had this awesome idea on this topic regarding to a request for modification in monster script command.

The request was to deprecate the event label parameter function as size/ai replacement and add two parameters (size and ai).

What do you think about implementing it?

  • Upvote 2
Link to comment
Share on other sites

I vote yes because it'd allow us to throw in the garbage the current (and ancient -- and HIDEOUS) way to change a mobs size

//FIXME: This implementation is not stable, npc scripts will stop working once MAX_MOB_DB changes value! [skotlex]
if(data->class_ > 2*MAX_MOB_DB){ // large/tiny mobs [Valaris]
	data->state.size=SZ_BIG;
	data->class_ -= 2*MAX_MOB_DB;
} else if (data->class_ > MAX_MOB_DB) {
	data->state.size=SZ_MEDIUM;
	data->class_ -= MAX_MOB_DB;
}

Link to comment
Share on other sites



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.