[RPG/FUN] PvPReward v1.1 - Killers steal money from their victims [953]

Discussion in 'Inactive/Unsupported Plugins' started by Codisimus, Mar 31, 2011.

  1. Offline

    Codisimus

    This page will no longer be updated. Please follow this project at the Bukkit Dev Page

    PvPReward - Killers steal money from their victims:
    Version: 1.1 (7/16/2011)
    Supports iConomy, BOSEconomy, Essentials, Permissions
    Download Page

    This plugin adds to PvP, in addition to any items that may be dropped, players also steal money from the players they kill. The amount stolen is configurable but is defaulted as follows. (Other variations explained below)

    This plugin does more than just add to PvP, it has many other features for when a player dies of natural causes.

    [​IMG]
    Description:
    Show Spoiler

    Scene01:
    Bob and Jacob have done nothing, all stats are base:
    KARMA POINTS: 0
    DROP PERCENT: 10%
    500 COINS IN ACCOUNT

    Scene02:
    Bob attacks and kills Jacbob, this will do the following things:

    - Bob will gain 2 karma points
    - Jacob will lose 1 karma point ( if he is at 0, it will stay at 0 )
    - Bob's chance for drop of gold will be increased by a 2% modifier if his karma is less than 50
    - If the chance for drop of coins from Jacob ( the killed ) is a success, a random value ( default range of 0%-5% ) will be taken from Jacob's bank account

    Scene03:
    Bob has been bad, and has killed lots of people, he kills Jacob again, the following things occur.

    - Bob will gain 2 karma points putting him over the 50 karma making him an outlaw
    - Jacob will lose 1 karma point ( cannot go below 0 )
    - Bob's chance for drop of gold will be increased to 100% since he is considered an ( outlaw ) and still gains +2 karma
    - If the chance for drop of coins from Jacob ( the killed ) is a success, a random value (default range of 0%-5% ) will be taken from Jacob's bank account

    Scene04:
    Jacob kills bob after bob has 52 karma, the following occurs:

    - Bob will lose 1 point of karma taking him down to 51
    - Bob is still an outlaw so he has 100% chance of drop of gold/coins
    - Jacob WILL NOT earn karma points because he killed an outlaw

    Show Spoiler

    For example: If the modifier is set to 20, whenever an outlaw kills a non-outlaw, he gets 20% more coin on top of the rewards he already would have gotten (if he successfully gets the drops in the first place). Likewise, if the modifier was set to 150, he'd get 150% more coin.

    Now, more in-depth and complex mode: The modifier increases after certain karma thresholds. For example: You have set your options in the config file as follow: karmaThreshold: 10, outlawModifier: 2, modifierMax: 50

    With this, every 10 karma after 50 (60, 70, 80, etc.) will grant the outlaw a 2% bonus to all drops stolen. After it reaches 50% extra drops stolen, it stops increasing (as based on the modifierMax variable). It seems complex, and it's probably not for everyone, but it'd be cool in my opinion.

    (All of that is amount of coin stolen, not the rate at which they drop them, to make it clear!)

    Config Settings:
    Show Spoiler

    RewardType may be any of the following:
    • Karma
    • FlatRate
    • Range
    • Percent
    • PercentRange
    • PercentKDR
    All other settings depend on what the reward type is set to.
    Karma:
    This type has the most features, It is explained above^, the settings are as follows:
    • Percent - The base percentage for calculating whether there will be a drop
    • Amount - The amount of Karma needed to be considered an Outlaw
    • High - The maximum percentage that could be taken from a killed players account
    • Low - The minimum percentage that could be taken from a killed players account
    • OutlawModifier - Outlaws steal an additional x%
    • KarmaThreshold - Increase OutlawModifier every x kills
    • ModifierMax - OutlawModifier will not go beyond x
    • Last three are further explained above
    FlatRate:
    The Killer will always steal a specific amount from the killed, the settings are as follows:
    • Amount - The amount of money that will be stolen upon each murder
    • All other settings don't matter
    Range:
    The Killer will steal an amount of money within a given range, the settings are as follows:
    • High - The maximum amount that could be taken from a killed players account
    • Low - The minimum amount that could be taken from a killed players account
    • All other settings don't matter
    Percent:
    The Killer will steal a certain percent of the killed players total balance, the settings are as follows:
    • Percent - The percent of money that will be taken from a killed player account
    • All other settings don't matter
    PercentRange:
    The Killer will steal a percent of money within a given range, the settings are as follows:
    • High - The maximum percent that could be taken from a killed players account
    • Low - The minimum percent that could be taken from a killed players account
    • All other settings don't matter
    PercentKDR:
    The Killer will steal an percent of money based on the two players KDRs. You receive a higher percent from players with a higher KDR (formula is killedKDR/killerKDR). This percent is taken from the killed players total balance. No settings are used.

    Features:
    • Configure how much money people get
    • Several reward methods/algorithms
    • Option to lose money upon death, whether PvP or not
    • Option of having tombstones instead of players dropping items
    • KDR Leaderboard
    • Configurable combat time
    • Optional penalties for logging or teleporting while in combat
    • Fully customizable messages
    • MultiWorld support
    • Uses iConomy, BOSEconomy or Essentials for money
    • Restrict use with Permissions
    • Included in CraftBukkitUpToDate for easy updating (make sure you come check the changelog if somthing is not working right)
    Commands:
    • /pvp kdr - Display total kills and deaths
    • /pvp karma - Display current Karma level and Karma level to be an Outlaw
    • /pvp outlaws - List current Outlaws
    • /pvp kdr - Display total kills and deaths
    • /pvp rank - List current rank
    • /pvp top - List top 5 KDRs
    Permissions:
    • pvpreward.getreward - no reward if killer does not have this node
    • pvpreward.givereward - no reward if killed does not have this node
    • pvpreward.ignoredeathtoll - will not be charged money when dying
    ToDo:
    • Add Leaderboard
    • Add option of changing an Outlaws permission group *Still trying to figure out the Permissions API
    • Add cooldown for Karma
    • Add drop options
    Changelog:
    Old Versions + ChangeLog can be found at Download Page
    Show Spoiler

    Version 1.1 (7/16/2011)
    • Added Permission node for Ignoring DeathToll
    • Fixed kdr values getting reset
    • Fixed errors when Logging in combat
    • Added color support for all customizable messages
    Version 1.0 (6/26/2011)
    • Added config options
    • Penalties are now optional
    • Added a Penalty Message (DenyTeleMessage)
    Version 0.9 (6/26/2011)
    • Improved OP options
    • Updated Economy support
    • Got rid of Karma commands for non Karma users
    • Added grave feature
    • Added Leaderboard
    • Added cooldown for Karma
    Version 0.8.1 (6/13/2011)
    • Fixed PvP registering
    • Fixed money amount messages
    Version 0.8 (6/12/2011)
    • Cleaned up code/fixed errors
    Version 0.7.2 (6/4/2011)
    • Cleaned up errors and added error messages
    Version 0.7.1 (6/3/2011)
    • Various fixes and code cleanup
    Version 0.7 (6/3/2011)
    • Added Essentials support
    • Added customization options
    • Added option of losing money open death
    • Changed ModifierMax to support negative values
    • Added configurable combat time
    • Added penalty for logging or teleporting
    Version 0.6 (5/4/2011)
    • Updated to iConomy 5
    • Updated to build 740
    • Few various fixes
    Version 0.5 (4/15/2011)
    • Improved Karma system
    • Fixed percent of steal
    • Added /pvp commands
    • Added [Outlaw] tag
    Version 0.4 (4/4/2011)
    • New karma based reward system (set as default)
    • Added Permissions support
    Version 0.3 (3/31/2011)
    • Initial Release
     
    Joh, kahlilnc and Mitsugaru like this.
  2. Offline

    Ratchet

    if the person being killed has 0 money, do they go into -minus value of money?
     
  3. Offline

    Kainzo

    Is there a system to have the karmic tokens diminished after time? as well as by death?
     
  4. Offline

    Marahin

    I've got same problem as tr0y. My players get karma, but no money, even if they have like 1500 coins.
     
  5. Offline

    Vittek

    Great plugin but it won't work on my server.. Kills are not getting registered (As in no karma is ever gained) Perhaps another plugin such as McMMO is blocking it? I'm also using DTP but even with that disabled, kills don't get registered. Using CB766 and yes I set the give and get permission nodes. But I'm using the Essentials Plugin groupmanager for perms, maybe that causes it?
     
  6. It's very sad how Codisimus is neglecting his plugins :(
     
  7. Offline

    awesom03

    hey, just thought i'd let you know we've finally got your plugin up and working, it's going great and really compliments the server, ta very much :)
     
  8. Offline

    Kainzo

    Request for a command to wipe the karma just incase a server wants to be able to have a way to wipe someones hate :p
     
  9. Offline

    embty

    Update for iconomy 5 please :>
     
  10. Offline

    Kainzo

    Care to elaborate maybe in the first post exactly what these things do?

    Percent=10
    WholeNumbers=false
    Amount=20
    OutlawModifier=10
    High=10
    Low=0
    ModifierMax=150
    RewardType=Karma
    KarmaThreshold=8

    I Was reading thru and found a few of them but I cant be bothered to read all 7 pages...
     
  11. Offline

    GmK

    Kainzo, tsts, I didnt expect that of you :p

    Open the third spoiler in the OP, 'Karma' section ;)
     
  12. Offline

    embty

    Im using essentials eco with register bridge for iconomy. When poeple kill on my server nothing happens.
     
  13. Same thing here, except I'm using iConomy5. Ended up writing my own version of this
     
  14. Offline

    Vittek

    Tell me more! :D
     
  15. Offline

    Kainzo

    @GmK - i swear it wasn't there when I looked :p guess it was late.
     
  16. Sorry, I'm not publishing any of my custom plug-ins. Not at the moment, at least, because I would be unable to provide proper support for it. I'll rather help Codisimus test it.
     
  17. Offline

    GmK

    I'd happily use it, knowing fully that I wouldnt get support or help with it!
     
  18. Offline

    embty

    OK can someone help us with this bug? when installing the plugin nothing happens when u kill players
     
  19. Offline

    Vittek

    Join the club.
     
  20. Offline

    Kainzo

    The naming conflcits with Herochat's btw. Not sure if you knew this or not - I dont know of a work around except requesting you make a config for this so we can change what it sets the name to.
     
  21. Btw Kainzo are you behind Herosneak?
     
  22. Offline

    Shay Williams

    This no longer works with the newest version of Essentials due to the change in economy handling. Fix? :)
     
  23. Offline

    Sleelin

    @Codisimus: I don't know if any other plugin devs, or anyone else has told you that your plugin registers to the command syntax "/pvp*" where * represents anything. I also developed an extension which registers the command /pvp and someone asked me to make it compatible with this. So I made it also register /pvpt as an alternative, and it turns out your plugin is hogging /pvp[anything]. This was a simple fix for me, as I instead registered /tpvp as the alternative. I'm guessing you check for the command via chat events instead of command registers, and when you checked for /pvp you simply checked if the first four characters of the chat event were "/pvp". In this case, the solution is quite simple and I hope you can work it out for yourself, but if not, shoot me a message and I'll help you out with it ;P

    Anyway, just my two cents. Thanks.
     
  24. Offline

    Codisimus

    @Sleelin
    Anyway, just my two cents. Thanks.[/quote]
    ya I do
    if (startsWith(pvp))
    I'll change it to
    if (.equals(pvp))
    Sorry about that, didn't think it would cause any problems
     
  25. Offline

    Sleelin

    @Codisimus: All good, thanks for doing that!
     
  26. Offline

    JDD

    Shortly after posting as to when this would be updated to iConomy 5 I noticed in your change log you had stated it had been updated, but the support at the top does ont list that it supports iConomy 5, so I'm a bit confused :).

    @Codisimus so is this working for iConomy 4.x as indicated at the top of the post, or iConomy 5 as indicated in the change log?
     
  27. Offline

    Codisimus

    when I update this for 1.6 it will support both (as well as essentials econ)
     
  28. Offline

    m5k

    Your plugin is very advanced and interesting but seeing that this is the only pvp and money related plugin, I'd like to ask you if you could add a "simple" mode in the config, which would simply give an exact amount of money to certain groups, that kill other assigned groups. For example only give GroupA money if it kills groupB, but not give any money for killing any other group. I've been dying for a simple pvp reward plugin,
     
  29. Offline

    Daniel Few

    @Codisimus
    Would it be possible to add an option to select a cuboid area to define where this happens.
    I was wanting a 'safe' pvp arena where you dont loose anything (including money) and a 'un-safe' one where you loose the items your holding + say 20% of ur money.
    Btw thanks for all your plug-ins. I'm currentl;y using PhatLoots, ButtonWarp and Turnstile :)
    -DanJames
     
  30. Offline

    MG127

    what happens else when someone reaches outlaw-status?
    suffix = [outlaw]
    and something happens with player_move, player_iteract and entity_damage .. am i right?
    reason:
    Show Spoiler

    i got an error on another plugin when someone reaches the outlaw status:
    Code:
    2011-06-01 15:43:57 [SEVERE] Could not pass event ENTITY_DAMAGE to PwnCraft
    java.lang.NullPointerException
        at me.Uremir.PwnCraft.pcCombatListener.onEntityDamage(pcCombatListener.java:94)
        at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:570)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.EntityArrow.p_(EntityArrow.java:169)
        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:374)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    2011-06-01 15:43:56 [SEVERE] Could not pass event ENTITY_DAMAGE to PwnCraft
    java.lang.NullPointerException
        at me.Uremir.PwnCraft.pcWizard.boneShield(pcWizard.java:612)
        at me.Uremir.PwnCraft.pcCombatListener.onEntityDamage(pcCombatListener.java:67)
        at org.bukkit.plugin.java.JavaPluginLoader$47.execute(JavaPluginLoader.java:570)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:406)
        at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:156)
        at net.minecraft.server.EntityArrow.p_(EntityArrow.java:172)
        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:374)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    2011-06-01 15:43:57 [SEVERE] Could not pass event PLAYER_INTERACT to PwnCraft
    java.lang.NullPointerException
        at me.Uremir.PwnCraft.pcPlayerListener.onPlayerInteract(pcPlayerListener.java:130)
        at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:299)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:310)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:162)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:133)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:505)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.a(NetworkManager.java:196)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:377)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:292)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    2011-06-01 15:43:55 [SEVERE] Could not pass event PLAYER_MOVE to PwnCraft
    java.lang.NullPointerException
    2011-06-01 15:43:55 [SEVERE] Could not pass event PLAYER_MOVE to PwnCraft
    java.lang.NullPointerException
    2011-06-01 15:43:55 [SEVERE] Could not pass event PLAYER_MOVE to PwnCraft
    java.lang.NullPointerException
    ... etc.
    

    using CB 803
     
  31. Offline

    LlmDl

    Can anyone confirm this works with 818?
     

Share This Page