[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

    Codisimus

    umm your not useing tabs right? perhaps try redownloading and restarting the server
     
  3. Offline

    awesom03

    right i deleted it, restarted my server, reinstalled it, restarted it again and nothings happened. same as before. also its definitely spaces and not tabs :(. Could it be something in the iConomy folder? if it is then heres the link (obviously i left out the bottom of the iconomy file) http://pastebin.com/yPVfapL5
     
  4. Offline

    Phaedrus

    Try permissions 2.7
     
  5. Offline

    Codisimus

    has it ever worked for you? try loading with nothing but iconomy permissions and pvpreward
     
  6. Offline

    Frosth

    Howdy.
    Would it be possible that the Outlaws get added/removed to and from a specific Permissions group ?

    This could be interesting for roleplay reasons to cut off evil players from good services and cut off good players from evil services.

    Other than that, I cannot see anything to improve this mod. It's pretty amazing. great job !

    EDIT: Well actually I did find something else.
    I tried having a negative modifier to make it reduce the amount of gold stolen by an outlaw.
    Here is my config file:

    #Mon Apr 18 22:32:54 CEST 2011
    Percent=100
    WholeNumbers=true
    Amount=6
    OutlawModifier=-0.05
    High=60
    Low=60
    ModifierMax=-0.4 #Expected to bug
    RewardType=Karma
    KarmaThreshold=2

    And error message:

    04:16:11 [SEVERE] For input string: "-0.05" loading PvPReward v0.5 (Is it up to date?)
    java.lang.NumberFormatException: For input string: "-0.05"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:458)
    at java.lang.Integer.parseInt(Integer.java:499)
    at PvPReward.PvPReward.loadConfig(PvPReward.java:266)
    at PvPReward.PvPReward.onEnable(PvPReward.java:59)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:127)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:578)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:216)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:115)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:93)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:215)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:202)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:142)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:257)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:375)


    I tried with and without " " around the numbers.
    Integers should be able to handle negative numbers, also, I checked with the yml format, and my file is valid on that part.

    I was pretty sure the ModifierMax would bug out but expected the outlawModifier to work and output a negative number.

    Would it be possible to have:

    Bob: 6 karma; Jacob: 0 karma
    Bob: 500 , Jacob: 500
    Bob kills Jacob
    Bob gains +2 Karma, to reach 8 karma
    Bob's Modifier is now at -0.1
    Bob steals (500 x 60 / 100) + ((500 x 60 / 100) x -0.1) = 300 + (-30) = 270
    Bob: 770 , Jacob: 230

    And the ModifierMax being the max ammount of modiffiers increment being applied ?
    Ex: ModifierMax=8 would mean: OutlawModifier x 8 = -0.4

    The way I'm trying to use this system is as a noob ganking deterrent. Being Outlaw on our server should be a possible path, but the choice to have a hard life.
    A hardcore Outlaw would steal only 30% of it's kills, while loosing 60%. But on an other hand, all kills yeld money, leaving no room for luck.

    I feel I may be trying to reverse your plugin's intent while expecting a minus sign in the conf file to make miracles :p
     
  7. Offline

    Codisimus

    Try this instead:
    Percent=100
    WholeNumbers=true
    Amount=6
    OutlawModifier=-5
    High=60
    Low=60
    ModifierMax=-100 #wont really be able to use this, so we will set it too high to cause errors
    RewardType=Karma
    KarmaThreshold=2
     
  8. Offline

    Frosth

    Ok, this did not break or make any warnings on the server output. So I'd say it considers it a valid number.

    I have no one to test this out with currently. But wouldn't that be -500% x Karma/KarmaThreshold of the gold stolen by an outlaw ? Or am I misunderstanding the modifiers ?
     
  9. Offline

    Codisimus

    no, that is how you would input 5% (I divide the numbers by 100) This means that instead of stealing 100 coins you would steal 105
     
  10. Offline

    Frosth

    I see.
    Then you might want to edit your opening post in the second spoiler it states that 0.2 = 20%.
    But in the config spoiler it indeed says that it is a flat percentage.

    What about changing the modifierMax to be the number of times the modifier is applied, so it can handle negative modifiers ?

    Anyway, thank you for the answers.
     
  11. Offline

    Codisimus

    Thanks for pointing that out, I actually didn't write that part and I forgot to check it first. Personally i think using 20 instead of .2 makes a lot more sense
     
  12. Offline

    Frosth

    I agree. But I guess the original idea/ name was a multiplier, so it actually made sense in that context.

    By the way, do you still accept feature ideas on your mods ? Or are you just maintaining them currently ?
    I'm testing several of them at the moment and would love to help you out testing/improving them. :)
     
  13. Offline

    Codisimus

    Well if it was a multiplier wouldn't it need to be 1.2? but I see wut your saying... i need to rewrite sum things.
    I'd love to here your ideas, I am actually adding loads of things to all my plugins for the 1.5 update. and this plugin has so many requests I can't keep up with them. But let me kno wut your thinking
     
  14. Offline

    p.ndsl

  15. Offline

    Codisimus

    Yup, I'm working on it.

    EDIT: Thinking of adding an option of having money stolen for teleportation too
     
  16. Offline

    riuthamus

    Can this be an option set, while i like the idea i know many of my players would.. freak at this right now, need to ease them into this.
     
  17. Offline

    joejoe

    great plugin ;)
    It's working with Cb720 but no longer with Cb733, i stay on 720 ;)
     
  18. Offline

    snatch182

    Hi there, when can we expect new version for 733 bukkit build?

    I was trying to make it work at 720 with FlatRate and it's not working :(

    so im still waiting...
     
  19. Offline

    Codisimus

    yes all new features will be optional

    I want to have all my plugins updated to 733 by the end of tomorrow but it's a lot of work so no promises
     
  20. Offline

    p.ndsl

    I'm currently running, phatloots, pvpreward, turnstile, dungeonreward. The youtube video with that walkthrough on newbieisland got me interested in your plugins. Have a cake. [cake]
     
  21. Offline

    snatch182

    Ok im waiting, plz inform us :)
     
  22. Offline

    arsjet

    [outlaw] don't want to add it. What should I do?
     
  23. Offline

    Codisimus

    I'm working on making everything customizable
    Do you not want the outlaw tag? or don't want outlaws in general?
     
  24. Offline

    GmK

    @Codisimus

    Love the plugin! We started using it on one of our test servers, and it runs absolutely splendid. Still trying to find the perfect Karma-Combinations, as it'll be on a big server with many players, dont want too many Outlaws running around after a week already ;)

    One suggestion for your 'Make it customizable': Different colored Outlaw titles depending on the amount of Karma they have. So e.g. a 50 Karma 1st level outlaw has blue, a 100 Karma outlaw has gold, and so on. That would add some more incentive to get the best outlaw title! Or - alternatively/additioanly: Changing titles depending on karma, Outlaw - ExtremeOutlaw - DerpMasterOutlaw, etc

    Thank you!
     
  25. Offline

    arsjet

    I want to be able to set tag not needed or required.
     
  26. Offline

    snatch182

    @Codisimus
    is it possible to quick add to this plugin something like "NoDrop" ? So when player is killed he dont drop any items only coins like its in PVPreward?
     
  27. Offline

    Codisimus

    no drop as in players keep their items? or the items simply disappear?
     
  28. Offline

    snatch182

    Players keep them all. Simply.

    Edit:
    In later versions you can optionaly add something like % to drop an amount of items. But for now it would be great just to keep them all and loose only coins like pvpreward
     
  29. Offline

    Codisimus

    ok i think i can do that

    Everything will soon be customizable, and I'll add in the option for multiple tags to match each outlaw level

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

    m5k

    I'm stunned at the size of this plugin. I thought it was something simple to suit my needs, but this is a pretty big project with the karma and all.

    I'd like to ask if it would be possible to use this as a simple kill-reward. Like you kill someone, you get 30 gold, he doesn't lose any. Sure people would farm eachother, thus requiring to check if they're X blocks away from spawn and silently logging it if they are too close.
     
  31. Offline

    Codisimus

    In addition to losing money on death (without killer gaining money), I will also add gaining money on kill (without killed losing money). You don't have to use the karma reward type if you want sumthing simple like this (not sure if you knew that or not) I will also add the logging if near spawn and perhaps use my TextPlayer plugin to alert admins via text message if users start farming.
     

Share This Page