[INFO/FUN] MonsterTriggers v0.5 - Make monsters talk! And stuff. [740]

Discussion in 'Inactive/Unsupported Plugins' started by Reil, Mar 2, 2011.

  1. Offline

    Reil

    MonsterTriggers
    Make monsters talk!
    A fun addon to rTriggers
    [​IMG]
    1.0 Features:
    • Add-on to rTriggers
    • You can trigger a message whenever a hostile mob targets a player.
    2.0 Instructions:

    Here's what you really came here for:
    Code:
    ######
    # This will get you what you see in the above screnshot!
    #    Everyone see this
    <<everyone>>=<<everyone>>:mobkilledbyplayer:<<triggerer>> has killed a <<mob>>!
    #    Only the killer sees this.
    <<everyone>>=<<triggerer>>:mobkilledbyplayer|Cow:<&5Cow&f>: Oh no!  <<weapon>>s!  My only weakness!
    
    ######
    # This makes a zombie gloat when it kills you:
    <<everyone>>=<<everyone>>:playerkilledbymob|Zombie:<Zombie>: I think you need your brains more than I do.
    
    # Announces whenever a mob kills someone:
    <<everyone>>=<<everyone>>:playerkilledbymob:<<triggerer>> has died at the hands of a <<killer>>!
    
    ######
    # Makes a creeper say something random whenever it sees a player it wants to kill.
    <<everyone>>=<<everyone>>:targetsplayer|Creeper:<<list|Creeper|rand>>
    <<list|Creeper>>=<Creeper>: Ssssswell day, isn't it?
    <<list|Creeper>>=<Creeper>: That'sssss a nice everything you have, there.
    
    <<customtrigger>>=<<everyone>>:mobdamage|Creeper|fire:<Creeper>: You think fire will sssstop me?
    
    
    You'll need to add those lines (and lines like it) to your rTriggers.properties file (because you've installed rTriggers already, right?)


    Usable mobs: Chicken, Cow, Creeper, Ghast, Pig, PigZombie, Sheep, Skeleton, Slime, Spider, Squid, Zombie, Wolf, Giant.

    These have to be upper case.

    3.0 Changelog:
    0.5 (2011/05/11)
    • Requires rTriggers 1.8 or later.
    • New option: playerkilledbymob!
    • Try using this plugin with rTrigger's new feature: the <<near-triggerer|distance>> recipient!

    0.4 (2011/05/10)
    • New changelog format!
    • New option: mobkilledbyplayer. Has replacement tags that accompany it: <<mob>> and <<weapon>>.
    Older versions:
    • v0.3 - Targetsplayer will now only trigger when the monster targets something new (no more spamming targetsplayer when you hit a mob!)
    • v0.2 - Added triggerer support for being targetted. Added mobdamage hook.
    • v0.1 - First version! Yay!
     
  2. Offline

    Kainzo

    oh....
     
  3. Offline

    Reil

    Thanks for fielding that, ioScream!

    Updated fo r612!
     
  4. Offline

    Kainzo

    I cant seem to get the colors to work at all, I've tried both methods with no avail.

    # Properties file generated on Thu Mar 31 22:07:39 CDT 2011
    <<everyone>>=<<triggerer>>:targetsplayer|Creeper:<Creeper>:<<color>>a SSSSsssssssssssssssss!
    <<everyone>>=<<triggerer>>:targetsplayer|Spider:<Spider>:<<color>>8You shall make a great feast for my children, <<triggerer>>!
    <<everyone>>=<<triggerer>>:targetsplayer|Skeleton:<Skeleton>:<<color>>7 I won't stop until we are both DEAD, <<triggerer>>!
    <<everyone>>=<<triggerer>>:targetsplayer|Zombie:<Zombie>:<<color>>eYour children shall be my feast, <<triggerer>>!
    <<everyone>>=<<triggerer>>:targetsplayer|Wolf:<Wolf>:<<color>>d<<triggerer>>, what shall I do next?
    <<everyone>>=<<triggerer>>:targetsplayer|Slime:<Slime>:<<color>>a<<triggerer>>, you shall be smothered by slime!
    <<customtrigger>>=<<triggerer>>:mobdamage|Zombie:<Zombie>: <<color>>e brains.... BRAINS!
    <<customtrigger>>=<<triggerer>>:mobdamage|Skeleton:<Skeleton>:<<color>>7It appears you have my torso..
    <<customtrigger>>=<<triggerer>>:mobdamage|Spider:<Spider>:<<color>>8I will lay eggs in your mother's EYES, <<triggerrer>>!
    <<customtrigger>>=<<triggerer>>:mobdamage|PigZombie:<PigZombie>:<<color>>fPrepare to DIE!
    <<customtrigger>>=<<triggerer>>:mobdamage|Creeper:<Creeper>:<<color>>aLoOK iNtO my EyESSSSSSSSSSSSSSSSSSs...
    <<customtrigger>>=<<triggerer>>:mobdamage|Slime:<Slime>:<<color>>aI shall SMOTHER thee!
     
  5. Offline

    ioScream

    The messages appear, but colorless?
     
  6. Offline

    Kainzo

    it has a strange y with two dots above it - the message, however, does appear. (in white)
     
  7. Offline

    ioScream

    What OS just out of curiousity? I'm not the dev nor am I related to him in anyway, just trying to help. I'm going to upload a portion of my file that you should try.
    Also, do your colors work in the basic rTriggers or are you just using rTriggers + MonsterTriggers just for the MonsterTriggers?
     
  8. Offline

    Kainzo

    Just for monstertriggers ... Debian/linux - also is there a way to turn down the spam on monsters? it spams BADLY - wish it would be a percentage :(
     
  9. Offline

    Reil

    Does anything else with color work, like other plugins? It seems that every so often, a build of Bukkit'll break colors for me and give me that weird umlaut'd y that you speak of.

    Also: Does it send messages when it isn't supposed to when it spams?
     
  10. Offline

    ZeusHerscher

    good plugin im scared now from creepers :p
     
  11. Offline

    Don Redhorse

    is it possible to get a timer in there so that the same message isn't spawned all the time.. atm it just floods the screen with skeleton target......
     
  12. Offline

    ioScream

    I only use the basics to rMonsters. which btw is nothing more than an extension to rTriggers.. no problems.. please post your config.. and even if the author isnt around. I'll TRY to help you. I've gotten commands, MoTd, Rules, Online, MonsterTriggers to work seamlessly and am willing to share my knowledge/config file. Reil is one of my favorite programmers because he understands the importance of adhering to standards. Standards.

    P.S. I've wasted time with a plugin dev that refused to adhere to the standards of the VERY SIMPLE config file, in fact he hates it..... it's redonkulously simple.. anyway.. it's the only plugin I've ARGUED with because he won't adhere to the standards and thinks he knows better... fool. anyway.. the end.

    Love this plugin.. gives me all the access i need, and my users... nothing more, nothing less.
     
  13. Offline

    Cupcakes

    I would definitely re-enable this plugin if we can limit the amount of times the trigger is display per entity. If there's one Zombie, seeing you the first time brings up a trigger, hitting him knocks him back and 'sees' you again and there's another trigger.. Add in a huge mob of Zombies and you seriously have horrible spam.

    I like it since it's unique.. but the spam from it deters me from even using this anymore. Especially with a server with more than 15+ active people at any given time :\.
     
  14. Offline

    Reil

    Yeah, I've been looking into checking 'before' and 'after' targets. I'm kind of sitting on the idea at the moment, because that requires persistent memory to track previous targets, and has the potential to leak (as entities come in and are despawned/removed). I think I've got it down though. Expect something between today and Sunday, depending on how much free time I've got!
     
  15. Offline

    Cupcakes

    Sounds awesome! If anything, is there any easy way to just set up some parameters that will only display the message once per entity? Rather than checking for before/after? Or is that essentially the same thing?

    :)
     
  16. Offline

    ioScream

    That's what he is talking about. Reil is pretty awesome, so expect quality.. anything less and we can lynch him.
     
  17. Offline

    Reil

    Wait, lynching, what? D;

    The idea I had was that an entity wouldn't repeat itself unless the target changed. Would you rather have that or it only showing once, ever for each entity?
     
  18. Offline

    Reil

    IT HAS BEEN DONE.

    Monsters shouldn't trigger their targetsplayer more than once, unless they actually change targets. :3

    I need to implement the cleaning technique I put in MonsterTriggers in rTriggers too. It's nice, and there might be a very small memory leak no one's noticed in rTriggers. <___>
     
  19. Offline

    Reil

    Oh snap. If you guys downloaded between my last post and now, you probably want to redownload. I forgot to uncomment something that prevents memory leaks.
     
  20. Offline

    ioScream

    I think you left debugging on.. let me re-download and take a look..

    Code:
    [INFO] Cleaning MonsterTrigger hashmap...
    
    Yeah, it's still there. In MTCleaner.java. I commented it out on mine.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 10, 2016
  21. Offline

    SilverLight

    still too much spam to use.
    I just have what's under the "Here's what you really came here for:" of your main post.
    'Burr' about 100x every few seconds.
    I love the idea of this plugin but it just makes chat unusable.
     
  22. Offline

    Reil

    Yeah, you probably don't want to use "mobdamage." That'll trigger every time a zombie gets hurt, no matter what it was hurt by. I personally only use the targetting messages.

    Next update (whenever that happens), I'll put a mob killed by player event. It'll be much less spammy than mobdamage.
     
  23. Offline

    DemonCraft

    Please make a video of this.
     
  24. Offline

    Reil

    @DemonCraft A video? That sounds like it might be a good idea. How about a screenshot in the meantime? It features the new option. Speaking of which...

    0.4 Update!

    New option! It is: mobkilledbyplayer. You can specify what mob it is, like this: mobkilledbyplayer|Cow. With it comes new replacement tags, like <<weapon>> which is what the player killed it with, and <<mob>>, which is the type of the mob you killed!
     
  25. Offline

    Reil

    UPDATE!

    0.5 (2011/05/11)
    • Requires rTriggers 1.8 or later.
    • New option: playerkilledbymob! Make monsters praise their own victories, or something.
    • Try using this plugin with rTrigger's new feature: the <<near-triggerer|distance>> recipient!
     
  26. Offline

    sim14789

    Sssssssssssssssssup buddy...(Boom)
     
  27. Offline

    Liger_XT5

    Code:
    2011-05-12 17:37:38 [SEVERE] Could not pass event ENTITY_DAMAGE to MonsterTriggers
    java.lang.NoSuchMethodError: com.reil.bukkit.rTriggers.rTriggers.damageCauseNatural(Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;)Ljava/lang/String;
        at com.reil.bukkit.MonsterTriggers.MTListener.onEntityDamage(MTListener.java:63)
        at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:518)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at net.minecraft.server.Entity.a(Entity.java:643)
        at net.minecraft.server.Entity.move(Entity.java:583)
        at net.minecraft.server.EntityLiving.a(EntityLiving.java:570)
        at net.minecraft.server.EntityLiving.u(EntityLiving.java:676)
        at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
        at net.minecraft.server.EntityLiving.p_(EntityLiving.java:231)
        at net.minecraft.server.EntityMonster.p_(EntityMonster.java:34)
        at net.minecraft.server.EntityCreeper.p_(EntityCreeper.java:57)
        at net.minecraft.server.World.entityJoinedWorld(World.java:1009)
        at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:53)
        at net.minecraft.server.World.playerJoinedWorld(World.java:991)
        at net.minecraft.server.World.cleanUp(World.java:968)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:369)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    2011-05-12 17:37:38 [SEVERE] Could not pass event ENTITY_DAMAGE to MonsterTriggers
    java.lang.NoSuchMethodError: com.reil.bukkit.rTriggers.rTriggers.damageCauseNatural(Lorg/bukkit/event/entity/EntityDamageEvent$DamageCause;)Ljava/lang/String;
        at com.reil.bukkit.MonsterTriggers.MTListener.onEntityDamage(MTListener.java:63)
        at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:518)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
        at net.minecraft.server.Entity.N(Entity.java:261)
        at net.minecraft.server.EntityLiving.N(EntityLiving.java:116)
        at net.minecraft.server.Entity.p_(Entity.java:192)
        at net.minecraft.server.EntityLiving.p_(EntityLiving.java:230)
        at net.minecraft.server.EntityMonster.p_(EntityMonster.java:34)
        at net.minecraft.server.EntityCreeper.p_(EntityCreeper.java:57)
        at net.minecraft.server.World.entityJoinedWorld(World.java:1009)
        at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:53)
        at net.minecraft.server.World.playerJoinedWorld(World.java:991)
        at net.minecraft.server.World.cleanUp(World.java:968)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:369)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    This happens when ever a lightning strikes a monster. It repeats A LOT until the sound of thunder stops.
    I just installed this plugin, used to have it, but people on my server didn't like the phrases I had and wouldn't make any suggestion.

    Anyways, CB 766 rTriggers 1.8, downloaded monstertriggers just a few minutes ago.
    The lightning happens most when a monster gets near a teslacoil.
    Teslacoil plugin

    Edit:

    I just noticed you missed one creature on the usable mobs and monsters. Giants
     
  28. Offline

    Reil

    Are you sure that it's rTriggers 1.8? That error is from MonsterTriggers trying to access a function I added to rTriggers in 1.8; it's not finding it.

    Ah, Giants should be fine, too. The code should work for anything that has a class name starting with 'Craft.' I'll add it to the list.
     
  29. Offline

    Liger_XT5

    I'm sure I uploaded 1.8. I'll reupload rtriggers 1.8 and monstertriggers when I can tomorrow.
    Road trips. What fun...
     
  30. Offline

    Azhuryen

    LOL so funny. I didnt feel alone wen a cow is in my house :p Thank you!
     
  31. Offline

    Liger_XT5

    I just put in rtriggers 1.9 and monstertriggers .5 and I get the following upon reload:

    Show Spoiler

    2011-05-16 15:39:24 [SEVERE] Could not pass event ENTITY_TARGET to MonsterTriggers
    java.lang.NullPointerException
    at com.reil.bukkit.rTriggers.rTriggers.getTagReplacements(rTriggers.java:406)
    at com.reil.bukkit.rTriggers.rTriggers.triggerMessages(rTriggers.java:267)
    at com.reil.bukkit.MonsterTriggers.MTListener.onEntityTarget(MTListener.java:49)
    at org.bukkit.plugin.java.JavaPluginLoader$52.execute(JavaPluginLoader.java:548)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:289)
    at net.minecraft.server.EntityCreature.c_(EntityCreature.java:35)
    at net.minecraft.server.EntityLiving.u(EntityLiving.java:657)
    at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
    at net.minecraft.server.EntityLiving.p_(EntityLiving.java:231)
    at net.minecraft.server.EntityMonster.p_(EntityMonster.java:34)
    at net.minecraft.server.World.entityJoinedWorld(World.java:1009)
    at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:53)
    at net.minecraft.server.World.playerJoinedWorld(World.java:991)
    at net.minecraft.server.World.cleanUp(World.java:968)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:369)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:287)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
     

Share This Page