ControlORBle

14 - LikeABoss hooked-in natively

What is the enhancement in mind? How should it look and feel?
I was wondering if you would be interested in hooking this into likeaboss so that the custom experience control can stay with controlorble, and support more xp for bosses.

So that in the config a new section would be:
likeaboss: true/false (false default)
monster-boss:
  Blaze: 20
  CaveSpider: 10
  Creeper: 10
  Enderman: 10
  EnderDragon: 40000
  Ghast: 10
  Giant: 10
  MagmaCube: 10
  PigZombie: 10
  Silverfish: 10
  Skeleton: 10
  Slime: 2
  Spider: 10
  Wolf: 10
  Zombie: 10

(or whatever you want for values... this is just an example)

Please provide any additional information below.

User When Change
feildmaster Jun 20, 2012 at 21:07 UTC
ryanwagner Jun 03, 2012 at 02:48 UTC
feildmaster May 11, 2012 at 01:50 UTC
ryanwagner May 01, 2012 at 15:32 UTC Create

You must login to post a comment. Don't have an account? Register to get one!

  • 5 comments
  • Avatar of feildmaster feildmaster Feb 18, 2013 at 18:21 UTC - 0 likes

    This will have to wait until the version 3.0 update.

  • Avatar of feildmaster feildmaster Jun 20, 2012 at 21:07 UTC - 0 likes

    I'll see what I can do... I have an interesting idea for something like this.

  • Avatar of bm01 bm01 Jun 17, 2012 at 06:03 UTC - 0 likes

    @feildmaster: Go

    More or less, you have to retrieve the Likeaboss instance, then call "instance".getBossManager().getBoss(LivingEntity), however it may change in the future. getBoss() returns null if the entity provided isn't a boss.

    You'll probably want to check if an entity is a boss after an EntityDeathEvent, but your listener's priority must be higher than "NORMAL" because bosses are also removed on this event.

    There's a custom event if you prefer (cam.event.BossDeathEvent) but I'm not sure if it's convenient enough. The original EntityDeathEvent isn't canceled (of course, since that isn't possible) so you would have to deal with both events, usually it requires more work.

    If you have any question feel free to send me a PM, I could even add a proper API if you think it's needed (like, static methods, maybe?).

    Last edited Jun 17, 2012 by bm01

    BFAK:56593,34358affebd4fb076f8ceaa8ffe015453ba2330498cae298f780e344728d5ef5 Likeaboss, on BukkitDev.

  • Avatar of ryanwagner ryanwagner Jun 03, 2012 at 02:48 UTC - 0 likes

    They must have because several other plugins have adapted likeaboss compatibility.

    mobhealth is a good example

  • Avatar of feildmaster feildmaster May 11, 2012 at 01:49 UTC - 0 likes

    I usually don't make plugins that hook into other plugins... But would you know if they have a simple way of detecting if a monster is a boss?

  • 5 comments

Facts

Last updated
Jun 20, 2012
Reported
May 01, 2012
Status
Accepted - Problem reproduced / Need acknowledged.
Type
Enhancement - A change which is intended to better the project in some way
Priority
Medium - Normal priority.
Votes
0

Reported by

Possible assignees