Jump to content

Modification in monster/areamonster syntax


lekkereten

Recommended Posts


  • Group:  Members
  • Topic Count:  8
  • Topics Per Day:  0.00
  • Content Count:  148
  • Reputation:   46
  • Joined:  11/02/11
  • Last Seen:  

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


  • Group:  Members
  • Topic Count:  169
  • Topics Per Day:  0.04
  • Content Count:  1260
  • Reputation:   750
  • Joined:  11/19/11
  • Last Seen:  

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...