[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

    GayJuice

    whats wrong with BOSEconomy and pvp rewards? I run both on my server

    Any chance of adding a known bugs/issues bit in the OP?

    Juice
     
  3. Offline

    Codisimus

    banks isn't working properly yet but I guess that effects my Turnstile and ButtonWarp plugins and not PvPReward
     
  4. Offline

    alfskan

    Code:
    2011-07-22 09:32:49 [SEVERE] Could not pass event PLAYER_INTERACT to PvPReward
    java.lang.NullPointerException
        at PvPReward.PvPRewardPlayerListener.onPlayerInteract(PvPRewardPlayerListener.java:163)
        at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:307)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:321)
        at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:168)
        at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:210)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:552)
        at net.minecraft.server.Packet15Place.a(SourceFile:57)
        at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
        at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:84)
        at net.minecraft.server.NetworkListenThread.a(SourceFile:105)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:457)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:367)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
    I got this error when I interact with MOD`s items.
     
  5. Offline

    sct

    Been trying to figure out a way to pass the [Outlaw] prefix to Herochat but haven't been able to do so. Anyone have any luck with this?
     
  6. Offline

    manniL

    Maybe you can combine this plugin with the Jail plugin, so outlaws could jailed automaticly, if they die.
     
  7. Offline

    Olat

    Code:
    09:14:01 [SEVERE] Could not pass event ENTITY_DEATH to PvPReward
    java.lang.ClassCastException: org.bukkit.craftbukkit.block.CraftBlockState cannot be cast to org.bukkit.block.Sign
            at PvPReward.Record.digGrave(Record.java:141)
            at PvPReward.PvPRewardEntityListener.onEntityDeath(PvPRewardEntityListener.java:61)
            at org.bukkit.plugin.java.JavaPluginLoader$59.execute(JavaPluginLoader.java:656)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:332)
            at net.minecraft.server.EntityPlayer.die(EntityPlayer.java:141)
            at net.minecraft.server.EntityLiving.damageEntity(EntityLiving.java:391)
            at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:436)
            at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:179)
            at net.minecraft.server.Explosion.a(Explosion.java:143)
            at net.minecraft.server.World.createExplosion(World.java:1466)
            at net.minecraft.server.WorldServer.createExplosion(WorldServer.java:145)
            at net.minecraft.server.EntityCreeper.a(EntityCreeper.java:118)
            at net.minecraft.server.EntityCreature.c_(EntityCreature.java:64)
            at net.minecraft.server.EntityLiving.v(EntityLiving.java:685)
            at net.minecraft.server.EntityMonster.v(EntityMonster.java:26)
            at net.minecraft.server.EntityLiving.m_(EntityLiving.java:218)
            at net.minecraft.server.EntityMonster.m_(EntityMonster.java:30)
            at net.minecraft.server.EntityCreeper.m_(EntityCreeper.java:68)
            at net.minecraft.server.World.entityJoinedWorld(World.java:1198)
            at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:48)
            at net.minecraft.server.World.playerJoinedWorld(World.java:1180)
            at net.minecraft.server.World.cleanUp(World.java:1104)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:447)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:361)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    
     
  8. Offline

    Qiadda

    Code:
    2011-08-01 15:27:25 [INFO] [PvPReward] Load failed, saving turned off to prevent loss of data
    2011-08-01 15:27:25 [SEVERE] java.lang.NumberFormatException: For input string: ")"
    2011-08-01 15:27:25 [SEVERE]     at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    2011-08-01 15:27:25 [SEVERE]     at java.lang.Integer.parseInt(Integer.java:470)
    2011-08-01 15:27:25 [SEVERE]     at java.lang.Integer.parseInt(Integer.java:514)
    2011-08-01 15:27:25 [SEVERE]     at PvPReward.SaveSystem.loadFromFile(SaveSystem.java:33)
    2011-08-01 15:27:25 [SEVERE]     at PvPReward.PvPReward.onEnable(PvPReward.java:47)
    2011-08-01 15:27:25 [SEVERE]     at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:126)
    2011-08-01 15:27:25 [SEVERE]     at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:878)
    2011-08-01 15:27:25 [SEVERE]     at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:272)
    2011-08-01 15:27:25 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:162)
    2011-08-01 15:27:25 [SEVERE]     at org.bukkit.craftbukkit.CraftServer.enablePlugins(CraftServer.java:146)
    2011-08-01 15:27:25 [SEVERE]     at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:284)
    2011-08-01 15:27:25 [SEVERE]     at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:271)
    2011-08-01 15:27:25 [SEVERE]     at net.minecraft.server.MinecraftServer.init(MinecraftServer.java:148)
    2011-08-01 15:27:25 [SEVERE]     at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:335)
    2011-08-01 15:27:25 [SEVERE]     at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-08-01 15:27:25 [INFO] PvPReward 1.1 is enabled!
    2011-08-01 15:27:25 [INFO] [PvPReward] Successfully linked with Permissions!
    2011-08-01 15:27:25 [INFO] [PvPReward] Successfully linked with iConomy 5!
     
  9. Offline

    Senlarus

    ENHANCEMENT REQUEST
    I love your plugin but I would also want the ability to allow people to toggle a pvp flag on and off. I found another plugin for this but it uses /pvp also and people can't type /pvp on because your plugin's help file comes up. It would be nice to have an all-in-one solution or perhaps a way to alias the /pvp command as /pvpr or something.
     
  10. Offline

    manniL

    @Codisimus

    The karma at my server ís in the negativ range

    (-20 f.E.)
     
  11. Offline

    Locx

    @Codisimus

    Everything is working great for me :D

    But the only problem is that when a player becomes an outlaw, It doesn't show the Tag when the player talks.
    Am I doing something wrong? or do I need a different Plugin?
     
  12. Offline

    tylerthanson

    Hello - I am using HeroBounty in conjunction with the PVP Reward plugin, to attempt to create both incentives and drawbacks for PVP oriented players on my server.

    Both are great plugins and operate fine independently of one another, but when installed together only PVP Reward functions properly. Players can still use all HeroBounty menus, create and accept bounties, and the dialogue for earning bounty rewards even appears upon successful completion of the contract.

    Unfortunately (for the killer, mostly), the money isn't actually disbursed to the player. Their earn their small reward (for killing another player) due to PVP Reward, but the actual payout of the Hero Bounty never occurs. I am using the most recently updated version of iConomy, Hero Bounty, and PVP Reward, so I'm unsure of the actual issue.

    Any help you could offer me would be greatly appreciated. Thank you.
     
  13. Offline

    riuthamus

    Did this lose support?
     
  14. Offline

    Guenael

    hello , how i can remove sign when die , people use it to remove sign on my protect chest (when die in front of chest and your sign remove lockette sign :s )
     
  15. Offline

    MG127

    i have some issues with the grave signs:
    1. not all items are stored within, some are still laying around the sign
    2. there are more than one sign per player (pls add 2 the config)
    3. the sings aren't removed after 5 minutes (maybe cause the chunks weren't loaded)
    4. the sings are destroying non-solid blocks like halfestones, other sings, soulsand and so on, pls check if the block is AIR
    5. there are empty signs for players that died with an empty inventory, might be ok, but not if there are a dozent for one player on one place only cause they had a bit fun killing them selfs
     
  16. Offline

    Sooks

    I have a little problem. It says something along the lines of "you have lost 0 coins" to the person who has died. Or to the killer "You have gained 0 coins". I have everything setup accordingly and can only assume it's not hooking with iConomy correctly which is my economy plugin.
     
  17. Offline

    _Hayleigh_

    Getting an error with latest craft bukkit and it wont load :(
     
  18. Offline

    GmK

    It almost looks like it :(

    @Codisimus come back to us! :D
     
  19. Offline

    riuthamus

    Indeed, i loved his plugins.... damn son!
     
  20. Offline

    Olat

    With cb 1060 Arrow dmg is fubar because the API for projectiles changed drastically. So until some one wants to pick this up. We cant use it :(
     
  21. Offline

    Codisimus

    @tylerthanson
    I will run some test after I update this plugin

    Thank you for all of these. I will try to get this working as soon as possible. Until then, remember you can always turn it off in the config

    @riuthamus

    @GmK
    Sorry for being inactive (I explained why in my latest post on my Turnstile plugin) but I'm back and will be updating all my plugins and hopefully creating a few new ones as well (requests and some ideas of my own). Again sorry for the inconvenience
     
    GmK likes this.
  22. Offline

    MG127

    yeah i turned it off, but it took me about an hour to find the plugin that creates the grave signs xD
     
  23. Offline

    tylerthanson

    So sorry I didn't update here - the issue was completely centered on Hero Bounty. Another user / developer released a revised version that seems to have corrected the problem, and now both plugins work in mutual harmony. Sorry to make it seem like your plugin (which is awesome btw) was in any way at fault.
     
  24. Offline

    Codisimus

    @MG127
    Ya, the graves are still beta... should've been off by default

    no harm done. Glad it all worked out (and with no effort from me =P)
     
  25. Offline

    riuthamus

    BEST NEWS EVER! We all love your plugins.
     
  26. Offline

    Codisimus

    Thank you! glad I can start working on these again. I'm trying to get github setup but am having some trouble. Once I figure it out I can start updating
     
  27. Offline

    Zaros

    Anyone with this also running cookiemonster and having issues?
     
  28. Offline

    Codisimus

    wut kind of problems? my plugin should only register PvP while cookie monster should only register PvE
     
  29. Offline

    Zaros

    Its an error on their side, about to try cookie monster alone:
    Code:
    *SNIP*
    Edit: Cookie monster doesn't like pvp I guess, its just that plugin.
     
  30. Offline

    Sergeant1337

    Can I use the config so that people only get 50 % of the money from the person they kill?
    Cuz I only want people to steal half the money, nothing else :)
     
  31. Offline

    Codisimus

    let me get this straight... the killer steals half of the it's victim's money?
    So I have 10 coins and you have 50 so if you kill me then I have 5 and you have 55?
     

Share This Page