iConomy - mugging!

Discussion in 'Archived: Plugin Requests' started by AZUMIKKEL, Apr 7, 2011.

  1. Offline

    AZUMIKKEL

    "Gimme all your money!"

    Would it be possible to make a plugin that takes X amount or Y percent from a killed player, and gives it to the attacker?
    Much like the plugin @halvors made: http://forums.bukkit.org/threads/fu...e-money-from-players-when-they-die-617.10131/

    I don't think this would be very hard (although I am a nut at javascript).
    Just add something like this to the iConomyDeath plugin:
    Code:
    if (DeathReason == player)
    #take x amount of coins
    #give to attacker (player)
    And if someone has extra time, make the plugin log the last human attacker for each player since their last death, then if the player suicides, the attacker won't be unrewarded.



    This plugin would make my server complete <3

    Okay :(

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

    McSpazzy

    Perhaps you can get him to add that? Features are shiny! Plus he already has all his base code.
     
  3. Offline

    halvors

    Could implement it, but thinking avout make this a own plugin, iConomyPvP or something.

    What do you think?
     
  4. Offline

    Codisimus

    Take a look at my plugin PvPReward
    It has lots of features and can allow giving x amount or y percent. I think you'll find that it exceeds your request.
    BTW,
    It was a little more difficult than that =P
     
  5. Offline

    halvors

    Yes, try Codisimus's plugin :) I can implement it, but no need if you can use PvPReward :)
     
  6. Offline

    AZUMIKKEL

    Thank you, it's all I ever wanted.
    Does it count if you attack someone and they run into a spider as well?
     
  7. Offline

    halvors

  8. Offline

    Codisimus

    right now it counts as you killing them if they die within 1 second of you hitting them. I am adding an option in the config to allow a longer time span
     

Share This Page