[10$]RealmThieves

Discussion in 'Archived: Plugin Requests' started by m5k, Sep 18, 2011.

  1. Offline

    m5k

    BukkitPermissions, nodes: thieves.thief, thieves.immune
    Player with the thief node can rightclick on another player who doesn't have the immune node while not holding anything and sneaking, then he will steal a random item at a 50% chance.
    Success: Thief gets the item
    Failure: Player gets the message "You feel someone rummaging through your pockets".
    Either way the steal ability goes on cooldown.
    Each attempt to steal something costs 1/2 energy (hunger).

    config.yml
    Code:
    failmessage: 'You feel someone rummaging through your pockets.'
    stealcost: 1 #in half-hunger
    stealcooldown: 10 #in seconds
    sneakrequired: 'true'
    items.yml
    Code:
    263:stack #as much as the player has
    264:1 #only one per attempt
    331:0 #this item will never be stolen
    Offering 10$. We're low on donations (only got like 50$), so I'm spending them carefully
     
  2. Offline

    MuisYa

    Should be madeable, tough i wont make it for you yet.
    I first want a stable 1.8 recommended build :3

    Very good idea btw!
     
  3. Offline

    m5k

    Wonderful. I'll send you a pm when they release a recommended build.
     
  4. Offline

    codename_B

    I could also have a shot at this if you like, seems fun.
     
  5. Offline

    m5k

    1185 is out, the 10$ reward is up for grabs. (paypal)
     
  6. Offline

    iffa

    Maybe. (random item, okay)

    EDIT: Yes, if it's not taken tyet.

    EDIT2: I dont understand your items.yml example

    EDIT3: undersatand now, are your players intelligent enough to not abuse the system and stop the cooldown by rejoining
     
  7. Offline

    m5k

    Don't know about that but since you can clearly see them relogging it can be screenshotted and the player will be banned.
     
  8. Offline

    iffa

    Okay yeah, I will get this out today or tomorrow
     
  9. Offline

    MuisYa

    Is there API to withdraw hunger bar health?
     
  10. Offline

    iffa

    Yes.
     
  11. Offline

    MuisYa

    I cant find any API to withdraw hunger bar health...
    I will try to make a start on the plugin soon, if @iffa isnt going to do it?

    @iffa Send me to it please, so i will take a look.
    Are you going to make this plugin btw?

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

    iffa

    I've got most of this done, and no need to tag me, I'm watching this thread.

    also: player.getFoodLevel() and player.setFoodLevel(int value)
     
  13. Offline

    MuisYa

    @iffa Ah iscool! ;)
    Havefun coding!
    And thanks for the API!
     
  14. Offline

    iffa

    I've finished this plugin now. (kind of) Making a file for items etc is kind of gay so right now the thief gets a random item(stack) from the target's inventory.
     
  15. Offline

    Bush

  16. Offline

    iffa

    Okay.

    Sent a download to you (m5k)
     
  17. Offline

    m5k

    Alright, I'll test it out and donate you the 10$ if everything's in order.
    For now, the generated config says
    Code:
    # Configuration file for ServerGoblins
    # Please see https://github.com/Pandarr/ServerGoblins/wiki for configuration details.
    and puts all the default config in one line. I'll test the plugin itself when I get home.

    Luckily a player joined the server and I was able to test it.
    He didn't get the message, stealing had no cooldown, cost no hunger, didn't require sneaking and you could steal "nothing", as it didn't check if the slot you were stealing from had any items in it or not.

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

    iffa

    Config in one line -> shitty notepad

    If nothing actually happens, then it's not making it to the stealing part. Testingg.

    EDIT: Confirmed working. I went sneaking, right clicked a player and the player was greeted with the failmessage. After the cooldown (which actually works), I tried again and I was successful. I received some flowers from the player.
     
  19. Offline

    Bush

    may i also test this pls
     
  20. Offline

    m5k

    Damn, I'll test again now that a mod is online. I was using notepad++ btw.
    EDIT: or not, how could I have used regular notepad without realizing it O_O

    Okay, fixed the config, did more testing. Everything is working except the item just dupes instead of being stolen.

    Sorry for the testing fail on my part.

    Once you get that fixed I'll gladly send you the 10$

    Okay, more testing, it only dupes when the person has the 'thieves.immune' node

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

    iffa

    Duping? Hmm... as in the target doesn't lose the item?

    EDIT: Fixed. The target should now lose the stolen item. Updated the original link.
     

Share This Page