[Looking for] A reward plugin

Discussion in 'Bukkit Help' started by Semirotta, Jun 7, 2013.

Thread Status:
Not open for further replies.
  1. Hey guys and girls!
    I am looking for Reward Plugin which makes it possible for certain (configurable) mobs/animals to drop an extra item as reward while the normal drop would still be dropped by it.
    Just a simple plugin which allows me to add either item_name or item_id to config for a certain hostile mob or friendly mob to drop as extra.

    I am NOT sure if this kind plugin exists but if not, could someone make it? I don't think it is really that difficult to create but I myself do not know any kind of java coding.

    Example config:
    Creature_name: Zombie
    Reward: Item_name/Item_Id/Written_Book
    Allow_Spawner: True/False (allow reward from spawner or not)
    Drop_Chance: 0-100 (the higher number, higher drop rate)
    Message: MSG when the reward is dropped
    Default_Drop: True/False (Determines if default drop is dropped too or only the reward item)

    Creature_name: Sheep
    Reward: Item_name/Item_Id/Written_Book
    Allow_Spawner: True/False (allow reward from spawner or not)
    Drop_Chance: 0-100 (the higher number, higher drop rate)
    Message: MSG when the reward is dropped
    Default_Drop: True/False (Determines if default drop is dropped too or only the reward item)

    If even possible, I would love to make enemies drop a book which is named as something like "$$$" then inside when you open to read it, it tells how many emeralds it is worth. (Which can be traded with Shopkeepers for game currency)

    Suggested name:
    SemiRewards

    Commands:
    /sr reload
    Reloads the plugin.

    Permissions:
    - sr.reload
    OP only

    When it should be done?
    ASAP
    People who do not know what "ASAP" means:
    As soon as possible


    NOTE:

    I would like to keep this plugin as "private" plugin since I am trying to make my server bit more custom so not every plugin is the same as other servers has.
     
  2. Offline

    Ultimate_n00b

  3. I dont want Otherdrops, it is a lot bigger what i really need.

    Well let's give this some time, hopefully someone could do this. It would help me very much with my shop idea.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  4. Offline

    Japauli

    I recommend you get MobArena. You can choose the rewards for each wave of mobs, and the difficulty and amount of mobs, and types of mobs.
     
  5. Offline

    Zarius

    Semirotta

    :confused: You do know that most of the OtherDrops code is due to supporting custom drops from mobs?

    Any plugin that tries to support dropping anything (including meta) from any type of mob is going to be a fair size.

    Any the request is almost identical to OtherDrops, eg.

    PHP:
      Zombie:
      - 
    dropItem_name/Item_Id/Written_Book
        spawnedby
    : -SPAWNER (remove to allow reward from spawner)
        
    chance0-100 (the higher numberhigher drop rate)
        
    messageMSG when the reward is dropped
     
      
    drop: DEFAULT (Determines if default drop is dropped too or only the reward item)
     
      
    Sheep:
      - 
    dropItem_name/Item_Id/Written_Book
        spawnedby
    : -SPAWNER (remove to allow reward from spawner)
        
    chance0-100 (the higher numberhigher drop rate)
        
    messageMSG when the reward is dropped
     
      
    drop: DEFAULT (Determines if default drop is dropped too or only the reward item)
    If you are referring to the extra triggers I've been adding - fishing, redstone, playerjoin, etc - please keep in mind that these triggers only add about 30 lines of code - the vast majority of the code is for supporting custom data/metadata on items - eg. red wool, text for books, etc.
     
  6. MobArena is only the certain arena where mobs give the reward, i am not looking for that. I look for global changes, each mob type (hostile to animal)


    Zarius
    Well i have used your plugin before and i even donated to you if im not absolutely wrong. It sure is a really good plugin, are those texts the ones i use in config so it will work like i want to? also how can i drop a written_book with this? Which includes small text like "Worth 1 Emerald" ?
    This i have now:
    http://pastebin.com/Z2FWc0NX

    I have no item set because i dont know how to make written book named "$$$" and inside text "Worth 1 Emerald". Or even a normal book named $$$ as a drop (Rather green and bold $$$ than normal $$$)

    EDIT:
    I launch it gives these errors:
    http://pastebin.com/MtpZQd0m


    I understand the error below but why does it give same about -SPAWNER ? I don't want the reward from monsters who spawn by spawners so people cannot farm the "money".
    1. in "<string>", line 49, column 10:
    2. - drop: Item_name/Item_Id/Writte ...

    Zarius
    I tried contacting you before and posted the message above, could you help me out on this really quick so i can stop worrying about the drop thing ? :( I am so sorry of bothering you like this.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  7. Offline

    Zarius

    Semirotta - was only a family vacation :)

    The spacing was wrong in your config - didn't match the spacing in my example - so it wouldn't load (the "SPAWNER" error is just because your spacing is wrong). And no, the example was just an example, not a working config :D Here's a better version with the book included: http://pastebin.com/0yLEMC0b
     
  8. Oh great , had a good time ? :)
    I get error.
    http://pastebin.com/FRahNUQV
     
  9. Offline

    Ultimate_n00b

  10. Offline

    Ultimate_n00b

    Pasted right from your config:

    1. # note the spacing below here is wrong in places... "drop" "spawnedby" etc all need to line up.
    2. # eg. zombie villager is correct, blaze spacing is wrong.
     
  11. It was the one you posted and you said it was working. :D
     
  12. Offline

    Ultimate_n00b

    I didn't post it D:
    Blame Zarius!
     
  13. oh wat :D
    can you make fixed pastebin for me? :D
     
  14. Offline

    Zarius

    Semirotta - I didn't say it was fixed :p You're supposed to look through the config to see what I changed and learn how to do it. I don't have time to correct the whole config so I only changed the first few entries in the file, the rest are incorrect and need fixing based on my comments and examples at the top of the file :)
     

  15. Darn you and your mystique stuff.
    EDIT:
    I think i got it fixed, no errors this time :D

    EDIT2:
    Why cant LAPIS_ORE work?! i have tried LAPIZ_ORE also but it wont know it. others i fixed
    http://pastebin.com/N7zyfrvx
     
  16. Offline

    Zarius

    Yeah, sorry, broke lapis ore in the beta - latest dev build fixes it (or an earlier beta).
     
  17. Downloaded latest devbuild (2.8b.552) and it still skips LAPIS_ORE
     
  18. Offline

    Zarius

    Can you paste me the config with the lapis ore?
     
  19. http://pastebin.com/b2riQEqc

    I have copied it from the "ready" file there was and edited the spaces correctly thats all.
    Complete configs is this:
    http://pastebin.com/gMhu09ML

    Everything else works but the lapis_ore , no matter what you type as lapis it wont accept the ore. :(
     
  20. Offline

    Zarius

    Semirotta - Sorry about the mixup with LAPIS - fixed in the latest dev build (there were two issues, I'd previously fixed the issue with LAPIS_ORE as a drop but not as a target).
     
  21. Worked now :) fails = 0

    Zarius
    I got to ask you one more thing.
    Is this http://pastebin.com/Mjnt64zS correct.
    It makes the MOB, in this case Skeleton to drop $$$ money note with 0.5% chance, 0-1 of them.
    and if killed with Gold Pickaxe, it has also 0.02% chance of dropping 0-1 Spawn eggs of its kind.
    Spawner spawned monsters = not dropping either of those.
    Also am i supposed to have:
    Chance: 10%
    or
    Chance: 10
    or is it the same if i have or not have % behind the number?

    How to make sign have a chance to break up when broken from wall?
    SIGN:
    - tool: ANY

    drop: [323/1/80%, STICK/4-8/20%]

    this tells me that name "SIGN" is unrecognized.
    If i just ignore the SIGN issue,
    I dont get any "fails" when reloaded the plugin so I would assume it is working.

    EDIT:

    Is it possible to make Blazes to spawn in desert biomes during day/night time?
    Like, during day time = blazes spawn
    Night time = blazes & zombies spawn both

    Is it possible to make Zombies spawn baby zombies with small chance if the Zombie gets hit by player? if so, how?
    I have so much to do and so little time :(

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 1, 2016
  22. Offline

    Zarius

    Semirotta

    Not quite. I'll address the second part first (workbench/furnace).

    Firstly, and this is why I like to use names rather than numbers, you have the workbench dropping 61 which is a furnace. But most important is to understand that _all sections_ of the config run - so it'll roll a die for the first part (breaking) and have a 20% chance of breaking, it will then consider the second part completely independently and roll another die with an 80% chance of getting the item. This means there's a chance of it both breaking and dropping plus a chance of no drop at all.

    I've posted a modified example here: http://pastebin.com/AH0sXrds - this uses the "flags: UNIQUE" parameter to say "when the break section runs, don't consider any other sections for that target". I then removed the chance for the drop itself - this means "always (100%) drop the furnace/workbench, _except_ when it breaks".

    --
    --

    The first config (book & spawn egg) looks ok except I'm not sure why you're using quantity: 0-1 this just means there's a 50% chance of no drop occuring but the message telling you the drop occurred will still play. I'd suggest putting the quantity at 1 and halving the chance value if you want it to happen less.
     

  23. The furnace/workbench i fixed also just like you explained it since i found out about it at the otherdrops page but at least i know now that it is absolutely correct.

    I don't even know why i set 0-1 there either, must fix it. I love how this plugin does everything ever possible to do :D
    Must admit it is one of the best plugins i've ever seen.
     
  24. Offline

    computerman_

    Try Skript(Skript lets you right your own script it really easy)
     
  25. Thank you but no thank you, I've worked so hard and long days with the OtherDrops already. I am no longer going to change my mind about it.
     
  26. Offline

    computerman_

  27. Offline

    Zarius

    Semirotta

    Sorry, missed the sign & blaze issues somehow.

    Yeah, "SIGN" only refers to the item in your hand. Bukkit has two distinct signs as a block - a "WALL_SIGN" (hanging on wall) and a "SIGN_POST" (on a post) - or you can use the OtherDrops alias of "ANY_SIGN".

    Blazes example:

    PHP:
      # simple replacement of 5% (adjust as you wish) of mobs in the desert
      # zombies will continue to spawn at night
      
    ANY_CREATURE:
      - 
    actionmobspawn
        chance
    5%
        
    dropBLAZE
        biome
    DESERT
    5% chance of zombie babies upon hitting a zombie.

    PHP:
      ZOMBIE@ADULT:
      - 
    actionHIT
        tool
    PLAYER
        drop
    ZOMBIE@BABY/5%
    I haven't tested these (written from the top of my head) but they should work fine.
     
  28. Oh this is just perfect, i really owe you one for these valuable informations! Thank you !!
    Do the blazes spawn during day time and the zombies spawn as blazes too during night time?
     
  29. Offline

    Zarius

    Yeah, blazes at day and blazes/zombies at night should be the result.

    Keep in mind that OtherDrops doesn't create any new spawns (I don't want to rewrite the system). It just replaces existing mobs that spawn. In that example above 5% of any creature will be replaced with a blaze (might be a bit high of a chance value, adjust as you like). Zombies naturally only spawn at night so they'll keep on spawning as usual, just that a few of them (along with any other mob) will be replaced with a blaze.

    You could limit it to replacing hostile mobs but hostile mobs don't spawn at day time.
     
Thread Status:
Not open for further replies.

Share This Page