Sephus 203 Posted February 9, 2014 I'm trying to check if the target is a boss (MVP) mob, is_boss(bl) returns the mode which is also used for mini bosses, I need to check if the bl is MVP only. Thank you and any help is much appreciated! Quote Share this post Link to post Share on other sites
0 AnnieRuru 957 Posted February 10, 2014 ACMD(chkmvp) { if( !message || !*message ) { clif->message( fd, "empty" ); return false; } else if ( mob->db( atoi(message) )->mexp ) { clif->message( fd, "This is a MVP" ); return true; } else { clif->message( fd, "No mobs or not MVP" ); return true; }} ACMD_DEF(chkmvp), 1 Sephus reacted to this Quote Share this post Link to post Share on other sites
0 jaBote 438 Posted February 9, 2014 A nifty way of doing that in scripting is checking if the mob has MvP experience to deliver when killed. I'm not that good on source but you could find a way to test if that assumption still works for SRC. It should, too. 1 Sephus reacted to this Quote Share this post Link to post Share on other sites
0 Angelmelody 221 Posted February 9, 2014 this? if((struct mob_data *)bl->db->mexp >0) 1 Sephus reacted to this Quote Share this post Link to post Share on other sites
0 Ind 945 Posted February 10, 2014 if your mob is guaranteed to have spawned from a 'boss' flag e.g. gef_dun02,0,0,0,0 boss_monster Doppelganger 1046,1,7200000,600000,1you can check withif( md->spawn && md->spawn->state.boss )(note that you can't check directly to md->spawn->state.boss because some mobs do not have md->spawn, so checking both is a must (otherwise it'll crash) 1 Sephus reacted to this Quote Share this post Link to post Share on other sites
0 Sephus 203 Posted February 11, 2014 Thank you v much guys, I've used db->mexp for now as ->spawn->state.boss would only work for scripted spawns. Quote Share this post Link to post Share on other sites
I'm trying to check if the target is a boss (MVP) mob, is_boss(bl) returns the mode which is also used for mini bosses, I need to check if the bl is MVP only. Thank you and any help is much appreciated!
Share this post
Link to post
Share on other sites