Filled FullArmorSetEffects or (FASE)

Discussion in 'Plugin Requests' started by madtomic, Mar 3, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    madtomic

    Suggested plugin name: FullArmorSetEffects or (FASE)

    What I need:

    I would like a plugin that allows the player certain bonus effects because of a full set of armor set, so whenever a Player wears a full set of Armor (Helmet, Chest, Pants, Shoes) he/she gains the bonus effects.

    The effect never worn off unless a piece of armor is missing.

    Mix and match don't work. It had to be the same type of armor grade.

    Thank you!
    madtomic

    ----

    Command and Permissions:

    /armorsets - Display ArmorSets and Effects info - default to all.
    /fase reload - reload config.yml - with OP or fase.reload

    ----
    /armorsets - display this info in game chat.

    ----- Armor Set Effects -----
    You will gain the follow Armor Set Bonus Effect when you wear all 4 pieces of the armor.
    - Leather: Speed
    - Gold: Regeneration
    - Chain: Resistance
    - Iron: Absorption
    - Diamond: Health Boost

    ----

    Configurable options in config.yml

    armorsets help message - color and format support.

    -----&6[ &8Armor Set Effects &6]-----
    &7 You will gain the follow Armor Set Bonus Effect when you wear all 4 pieces of the armor.
    &f- &3Leather: Speed
    &f- &4Gold: Regeneration
    &f- &5Chain: Resistance
    &f- &6Iron: Absorption
    &f- &7Diamond: Health Boost

    ArmorSet:
    #Grade:Effect
    - Leather: Speed
    - Gold: Regeneration
    - Chain: Resistance
    - Iron: Absorption
    - Diamond: Health Boost

    ----

    Effect number list (Add this to the <effect> section)

    1 - Speed (minecraft:speed)
    2 - Slowness (minecraft:slowness)
    3 - Haste (minecraft:haste)
    4 - Mining Fatigue (minecraft:mining_fatigue)
    5 - Strength (minecraft:strength)
    6 - Instant Health (minecraft:instant_health)
    7 - Instant Damage (minecraft:instant_damage)
    8 - Jump Boost (minecraft:jump_boost)
    9 - Nausea (minecraft:nausea)
    10 - Regeneration (minecraft:regeneration)
    11 - Resistance (minecraft:resistance)
    12 - Fire Resistance (minecraft:fire_resistance)
    13 - Water Breathing (minecraft:water_breathing)
    14 - Invisibility (minecraft:invisibility)
    15 - Blindness (minecraft:blindness)
    16 - Night Vision (minecraft:night_vision)
    17 - Hunger (minecraft:hunger)
    18 - Weakness (minecraft:weakness)
    19 - Poison (minecraft:poison)
    20 - Wither (minecraft:wither)
    21 - Health Boost (minecraft:health_boost)
    22 - Absorption (minecraft:absorption)
    23 - Saturation (minecraft:saturation)
     
    Last edited: Mar 3, 2015
  2. Offline

    Faith

    I'd like to take this on. Don't hold me to it as I have my driving theory test coming up so I might not be able to finish it for a few days. If I decide that I don't want to take it on, I will post back. As for now, I will make this plugin for you.
     
  3. Offline

    madtomic

    Ok, Thanks. Please keep me posted.
     
  4. Offline

    madtomic

    Following up on this project.
     
  5. Offline

    madtomic

    Can someone else take a shot at this? :)
     
  6. Offline

    Signatured

    I'll give it a go.

    Few questions:
    • When do you need it by?
    • Do you want this configurable? Or do you already have set effects? (configurable will take longer)
     
  7. Offline

    madtomic

    You can take as long as you need and I can help test it while you make revisions.

    If you would make it configurable that would be great! See above example of config.yml

    Thanks,
     
  8. Offline

    madtomic

    Just checking for progress.
     
  9. Offline

    Mathias Eklund

    @madtomic
    I made the plugin, surprised it wasn't made earlier.. Took me literally no time at all.

    <Link removed by Timtower, no mediafire>
    Made it according to your instructions, although I made the reload command /fasereload. Didn't see the point of an argument there.

    If you have any questions, or find any bugs... hit me up
     
    Last edited by a moderator: Apr 23, 2015
  10. Offline

    madtomic

    @Mathias Eklund

    Thank you very much. I'll play around with the FASE and let you know if I have any errors. Thanks again.

    @Mathias Eklund

    Would it be possible to add a message telling the player that they received the armor set effect when have full armor set?

    prefix: '' - what is this for?

    Question on the effect: Would it be possible to add a visual effect on the player when they wear the full set?

    Like potion effect when player uses them.

    Thank you again.

    EDIT by Timtower: merged posts
     
    Last edited by a moderator: Apr 23, 2015
  11. Offline

    Mathias Eklund

    1. Yes, I can do that.
    2. the prefix is shown before messages.
    3. Potion effects already have visual effects, don't they? Check your settings and turn particles on.

    EDIT:
    https://www.dropbox.com/s/nj30k5xlkwc602j/FASE.jar?dl=0
    Added the message when they receive the effects. Can be changed in the config as all the other messages.
     
  12. Offline

    madtomic

    1. Great!
    2. I just tried. I had to stop and restart the server. I think the fasereload does not work with prefix. Also, I find it not supporting color format in chat. I use &3TEST and it shows up &3TEST
    3. I will double check my particles settings.
     
  13. Offline

    Mathias Eklund

    Haven't implemented any chat manipulation, so I am not surprised it didn't work.

    I will check the reload thing.
     
  14. Offline

    madtomic

    Bug:

    effectgiven:

    I think need to add another message for effectlost when not wearing full set?

    I find the message shows up when you click any piece of armor.
    You've been given a special effect for wearing full %type% armor.

    Edit: Sometimes the message fired up before it knows which type of armor.

    Do you think if it is better to said, if you wear a full set of this type armor. You would get this armor set effect?

    Then again, it might be too much spam?
     
    Last edited: Apr 23, 2015
  15. Offline

    Mathias Eklund

  16. Offline

    madtomic

    @Mathias Eklund

    It seems to be more complicated than I thought.

    The effectgiven message is still showing up null whenever you click a piece of armor. I think it only shows up Iron/Gold, etc when you click when you are wearing the full set.

    The effectlost message does not work at all. I tested with full set of iron and took apiece off and no message fire. Instead I get the effectgiven message. I tried wearing full set and log off and log back in and take apiece off and no message.

    Also, I discovered that full armor effect is effected by the player log on and log off.
     
  17. Offline

    Mathias Eklund

  18. Offline

    madtomic

    @Mathias Eklund

    These are the behaviors that I'm experiencing. The effectlost and effectgiven message now coming up together.

    If you had full set and click apiece of armor and put it back. It will show effectgiven and effectlost when you put back.

    If you wear only 3 of 4 pieces and click the last piece back on. You would not get effectgiven message.

    ***I will check the log on and log off effects.

    EDIT: I found anther strange behavior. If a player is wearing 3 gold pieces and 1 iron. you take off iron and put gold. you get the gold setarmor effect. it works the other way. this is the only way I get get the setarmor effect comes up.

    However; it does not work when wearing nothing to full gold or iron.
     
    Last edited: Apr 23, 2015
  19. Offline

    Mathias Eklund

    @madtomic The behaviour might be weird, but it does give you the effects. I'm only checking the armor contents on inventory clicks and when the inventory closes. If you don't receive the effects while the inventory is open, just close it and you will receive it..

    EDIT:
    I made the plugin to work 100%, and it does now. At least from when I tested.
    Only thing that might be a bit weird is the messages, which I didn't plan for, don't see the need for them.
     
  20. Offline

    madtomic

    @Mathias Eklund

    Ok, please let me know when I can test the new build.

    Do you think you can add option to toggle on and off the message perhaps?
     
  21. Offline

    Mathias Eklund

    @madtomic
    Haven't made a new build, the last version i uploaded worked fine for me.
    How would the toggling of messages work? Serverside? Playerside?
     
  22. Offline

    madtomic

    @Mathias Eklund
    It would be Serverside only. The player don't really need to control what the plugin does.
     
  23. Offline

    Mathias Eklund

  24. Offline

    madtomic

    @Mathias Eklund

    Question: Would it possible to add more than one effect per armorset? I just thought of this. It might be a cool thing to have.
     
  25. Offline

    Mathias Eklund

    @madtomic Possible: Yes. Will I add it?: No
     
  26. Offline

    madtomic

Thread Status:
Not open for further replies.

Share This Page