[REQUEST] potion effects and chances

Discussion in 'Archived: Plugin Requests' started by xguysprison, Jul 3, 2014.

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

    xguysprison

    i first want to say that my english aint that good so bare with me!

    Plugin category: im not sure about it

    Suggested name: futurepvpwithchances

    What I want: I want a plugin where i can give a sword or axe or armor a potion effect but i want it to be like if i give a sword posion 2 for 5 seconds then there is a procent chance that when i hit a player it posions him for 5 second like this http://gyazo.com/08537b44ec7977003c400d31764c827f .
    And i also want a way to get the id after i add the enchantmant so i can get the id of a sword with posion 2 and 4%chance to add to a kit or with a drop rate for a player or mob.

    potion effects to add is

    posion 1 for 7 seconds and 2 for 5 seconds.
    wither 1 for 7 seconds and 2 for 5 seconds.
    lifesteal 1 (when the player gets hit the player loses 4 hearts).
    stun 1 for 5 seconds and stun 2 for 7 seconds.
    ultashooter (
    Arrows fired travel twice as fast
    ).
    Skin of the Nether 1 (Receive infinite Fire Resistance. Any two pieces of armor you are wearing must contain this enchantment to work).
    Visionary 1 (Receive infinite Night Vision. Can only be applied to a helmet. You must be wearing the helmet that contains this enchantment to receive effect).

    Ideas for commands: come up with ideas .

    Ideas for permissions: come up with ideas .

    When I'd like it by: as fast as possible please.

    if there is anyother questions just ask thx for your time :)
     
  2. Offline

    xguysprison

  3. Offline

    daavko

    xguysprison I will try this after I complete my other requests, but don't expect it too early.
     
  4. Offline

    xguysprison

    daavko thx i got good time and many times thanks
     
  5. Offline

    xguysprison

    daavko do you think you can make it redy for tuesday or wensday?
     
  6. Offline

    daavko

    xguysprison I believe I could. However, I don't really like that name you suggested :D (I know, I'm horrible with this). Would you mind if I named it EnhancedWeapons?
     
  7. Offline

    xguysprison

    daavko i am so retarded when its names thats why i just suggestee it so you can come up with one
     
  8. Offline

    xguysprison

    @daabko any news ?
     
  9. Offline

    daavko

    xguysprison Yeah, I have bad news. I won't be able to make this plugin, because I somehow accidentaly removed it from my Projects folder (I don't even know how did I do that :oops:), and I don't really want to do it all again. If anybody else wants to make this for you, that would be nice. I'm really sorry. :(
     
  10. Offline

    xguysprison

    daavko ok its ok but if you know anyone who maby choud do this please ask him/her
     
  11. Offline

    IDragonfire

    Take a look at the heroes plugin ...
    Sure one skill meet your requirements ...
     
  12. Offline

    xguysprison

    IDragonfire no becus there is not what i need. comeone guys please i need this !!!!!!!!!!
     
  13. Offline

    izarooni

    In the Gyazo, is the poison stat an actualy stat or is it added as a lore? :confused:
     
  14. Offline

    xguysprison

    izarooni a lore it can be be wich one you think is most easy
     
  15. Offline

    izarooni

    I don't think you can do that. The easiest way I can think of doing this is creating a new chest that can be accessed with a command with all of the custom weapons/items and if the player had the permission he/she could pick up the item.
     
  16. Offline

    xguysprison


    @izarooni

    well can you in anyway then like add a place where you can buy them in a gui shop ? so if you do /eshop it opens a gui shop where i can buy the enchantments for a amount of money that i can edit in a command or in config file
     
  17. Offline

    izarooni

  18. Offline

    xguysprison


    @izarooni

    just try the EssentialsEco that is from the Essentials plugin
     
  19. Offline

    timtower Administrator Administrator Moderator

    Hook into Vault, then you can support all economy plugins
     
  20. Offline

    ThePluginMaker

    It's possible this plugin in on a server called: Gontroller, there's a chance you can get hero swords by doing stuff, it's just a added stat not just a lore. All you have to do is make it so the plugin looks for a diamond sword with that lore, and add the effect poison 1-2 with it and add chances.

    Code:java
    1. public void onEntityDamageByEntity(EntityDamageByEntityEvent e) {
    2. if (e.getDamager() instanceof Player) {
    3. if (e.getEntity() instanceof Player) {
    4. Player player = (Player) e.getDamager();
    5. Player victim = (Player) e.getEntity();
    6. ItemStack weapon = player.getItemInHand();
    7. if (weapon == null) {
    8. return;
    9. }
    10. if (weapon.getType().equals(Material.DIAMOND_SWORD)) {
    11. if (weapon.getItemMeta().getLore() != null) {
    12. if ((weapon.getItemMeta().getLore()).equals("Poison II (4% chance to poison)")) {
    13. }
    14. }
    15.  

    Something like this?
    I'll give this plugin a try.

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

    timtower Administrator Administrator Moderator

  22. Offline

    xguysprison


    thx @ThePluginMaker
     
  23. Offline

    ThePluginMaker

    I got the plugin done but i'm getting this error. Any idea?
    7e1b3d21f31783c5856cbb9586da035f.png
    If for some reason it's do do with more than one of these:
    public class Main extends JavaPlugin {
    i have a few class files, but only one of them have to do with JavaPlugin, the rest are Listeners or nothing...
     

    Attached Files:

  24. Offline

    timtower Administrator Administrator Moderator

  25. Offline

    ThePluginMaker

    timtower
    Sorry, i forgot i had spigot on the server.. lol i changed the message
     
  26. Offline

    timtower Administrator Administrator Moderator

  27. Offline

    ThePluginMaker

    xguysprison
    Done with the plugin, i can add more swords in the future, but yeah here you go:
    https://www.dropbox.com/s/m0zeu7btu2hmv7i/HeroSwords.jar
    Command: /herosword get list (opens a chest gui with the sword in it, theres a 4% chance of poison 2 for 5 seconds)
    Permission: herosword.use
    ~~BUG~~
    If someone renames a diamond sword to "Hero Sword" it'll still do the 4% poison, finding a fix now, if anyone could help me?
     
  28. Offline

    xguysprison

  29. Offline

    ThePluginMaker

    xguysprison
    To make it work, for example you can make it so an essentials kit changes the name to Hero Sword (might want to find a plugin to disable renaming or disable renaming an item to "Hero Sword") That should work, also for better look just add a lore so for essentials it should look like this:
    Herosword:
    delay: 0
    items:
    - 276 1 name:Hero_Sword lore:&cPoison II (4% chance to poison)
    Something like that
     
  30. Offline

    xguysprison

    ThePluginMaker

    ok thanks oh yeah when do you think you will have these potion effects done ? posion 1 for 7seconds and 2 for

    5 seconds.
    wither 1 for 7 seconds and 2 for 5 seconds.
    lifesteal 1(when the player gets hit the player loses 4 hearts).
    stun 1 for 5 seconds and stun 2 for 7 seconds.

    becus they are the ones most needed and when you add all these swords can you also add them as axes ? becus players use both axes and swords for pvp
     
Thread Status:
Not open for further replies.

Share This Page