Inactive [FUN] WolfPound v1.0.2 - Adopt a wolf today! [953, 1000, 1060]

Discussion in 'Inactive/Unsupported Plugins' started by fernferret, Apr 1, 2011.

  1. WolfPound - Adopt a Wolf Today:
    Current Version: v1.0.4 - Get it at dev.bukkit.org

    Please Move All Discussion/Questions/Comments/Issues to our dev.bukkit.org Site!
    BukkitPerms verison on it's WAY!

    Want live help? Join #wolfpound on EsperNet

    Wolf Pound aims to make obtaining these epic companions just a little easier by allowing users to buy them (or have them for free)! The process is very simple and there are no config files to edit! Simply copy the jar to your plugins folder, create a sign with the required text, and you're good to go!

    Features:
    • Lets users buy wolves (or you could make them free :))
    • Integrates with iConomy, BOSEconomy, RealEconomy, Essentials Built in Economy, and Permissions!
    • All wolves spawned by this are neutral, meaning you must train them yourself with bones! See Below:
    • Spawn wolves as neutral, friendly or REALLY ANGRY
    • Spawn multiple wolves with one command! (Disclaimer: I am not responsible for the massive amount of wolves you spawn, or if wolves start getting in fights)
    • Limit the number of wolves you can spawn with the command
    • Multi-World Support! All options are now configurable PER WORLD!
    Download V1.0.2
    Download V1.0.1
    Download V1.0
    Download V0.12
    Download V0.11
    Download V0.9
    Download V0.8
    Download V0.7
    Download V0.6
    Download V0.5
    Download V0.4
    Download V0.3
    Download V0.2
    You don't want V0.1
    Github Source

    Video Demo: (Thanks @EpicDavi!)


    Todo:
    • Restrict wolves per time (wp[mhd]) This would not restrict the number of wolves a user can have, only a limit on how many they can get per amount of time from the sign, to reduce wolfspam - Medium
    • Refactor. The code is a mess and it's making future changes hard. I'm working on this in my free time from MV2 - HIGH
    How to setup a Pound (Store) (Simple):

    If you've used Essentials Free/Buy/Sell/Trade, then this should be a breeze, for everyone else, it should still be very easy.
    • Place Sign
    • Make Line 1 say: [WolfPound]
    • OPTIONAL: Make Line 2 say: $10
    • OPTIONAL: Make Line 3 say either: angry, friend, or neutral
    • DONE!
    Example Sign:

    [​IMG]
    Note: You can have line 2 in whatever currency you want, it could say `100 Rupees` and that would be valid.

    How to setup a Pound (Store) (Advanced example):
    [​IMG]
    • Sign1: No params = Free wolves
    • Sign2: 2:bone = It costs 2 bones to get a wolf
    • Sign3: 1:260 = It costs 1 Item #260(apple) to get a wolf
    • Sign4: 3 = It costs 3 dollars from an econ plugin, if none is found, wolf is free
    • Sign5: $10 = It costs 10 dollars from an econ plugin, if none is found, wolf is free
    Config file: (If you mess it up, delete it and it will auto regen)
    You don't actually ever need to touch this. You can use the commands that are outlined in the commands section entirely!
    Code:
    adopt:
        price: 0.0 # Set this to the number of dollars or items you want
        type: -1 # Set this to a positive integer to use an item, or leave it -1 to use dollars
        limit: 10 # The max number of wolves someone can spawn using the /adopt command
        aggro: friend # Could also be angry or neutral
        worlds:
            world:
                price: 0.0
                type: -1
                limit: 10
                aggro: friend
    Permissions:
    I have included 3 types of permissions:
    wolfpound.create - Allows users to create/destroy Pounds
    wolfpound.use - Allows users to use Pounds
    wolfpound.adopt - Allows users to type /adopt [X] and get a wolf (or X wolves, the X is optional)
    wolfpound.admin - Allows users to and use the /adopt setprice/settype/setlimit/setglobal

    Integration with other Plugins
    All integration with other plugins is handled automatically, but I thought I would explain a little about what this means.

    Permissions Plugin Support
    If you have Permissions installed, it restricts commands based on those, if you don't, it's a free-for-all.

    Economy Plugin Support
    Econ support is in this order(meaning it will use the one at the top of the list if you have it, then go down the list):
    1. iConomy - Version 4.6.5, Version 5 (Yes both of them :D)
    2. BOSEconomy - Version 0.6.2
    2. RealEcon - Version 0.6.2
    3. Essentials Economy - Version 2.2
    If you have none of the above Installed, all Pounds will give wolves away for free, regardless of what you put on the second line. The version numbers listed simply show which version is the latest I've tested with, they will most likely work with newer or older versions.

    Commands
    {} = needed; [] = optional

    Code:
    /adopt [X] : Where X is the number of wolves you want. If X is not present, it defaults to 1. Automatically charges you price * X
    /wpprice [all | w:WORLD]: States the price of a wolf.
    /wplimit [all | w:WORLD]: States how many wolves can be adopted at once.
    /wpsetprice {PRICE} [global | w:WORLD]: Sets the price to buy a wolf using the /adopt command.
    /wpsetaggro {angry | friend | neutral} [global | w:WORLD]: Sets the agressiveness of a wolf when it is obtained via /adopt.
    /wpsettype {ITEM_NAME | ITEM_ID | money} [global | w:WORLD]: Sets the type of currency used to buy a wolf via /adopt.
    /wpsetlimit {NUMBER} [global | w:WORLD]: Sets the number of wolves one can adopt at once via /adopt.
    /wpreset {w:WORLD | global}: Resets specified world to default from the current world if none is specified, or all if global is specified.
    
    Please Post any questions/comments/request!

    Changelog:
    Version 1.0.2
    • Upgrade AllPay Version. Now this works great with MV2!
    • Remove dependency on CraftBukkit, should be more stable with future updates
    Version 1.0.1
    • Fix massive console spam caused by AllPay (Thanks @phaed) - tested by renaming to aWolfPound
    • Fix Essentials Economy (2.2+ required as of now)
    • Supports permissions 2x and 3x
    Version 1.0
    • WARNING: MOST COMMANDS HAVE CHANGED (OP is currently being updated)
    • Fix several ecommerce bugs
    • Now features AllPay integration! No longer will you have to choose your econ plugin based on WolfPound!
    • Much better code :)
    • New wolf functions from RB 766
    Version 0.12
    Version 0.11
    • Update for MC 1.5/CB 704+
    • Fix compatibility error with other plugins that used signs
    • Fix Essentials economy giving you money if wolves were free
    Version 0.9
    • Add RealEconomy Support
    • TONS OF BUGS SQUASHED - .9 is a MUST HAVE UPDATE (See Github if you want to see what bugs were squashed)
    Version 0.8
    • Add friendly, neutral or angry spawning options
    • Add /adopt agro X command to allow setting default wolf type spawned via the command
    • Add Line 3 of signs now controls how a wolf spawns
    Version 0.7
    • Add multi-world support
    • Add ability to limit wolves spawned with the /adopt command
    • Improve error messages
    Version 0.6
    • Add partial item matching (now you can use cook instead of cookie)
    • Fix BUG where if you had the exact number of items requested, it would give you a wolf but not take items
    • Add better error messages when creating signs
    • Add config file support for buying wolves via the /adopt command
    • Fix some other bugs I forgot about...
    Version 0.5
    • Refactor banking to reduce future errors
    • Add support for using items as the currency for wolves
    • Add config file support for buying wolves via the /adopt command
    Version 0.4
    • Add /adopt X, where X is the number of wolves you want
    Version 0.3
    • Add BOSEconomy Support
    • Fix message to users on every sign
    Version 0.2
    • Add /adopt that requires permission wolfpound.adopt
    Version 0.1
    • Releasing WolfPound
    Other Wolf Plugins:
     
  2. Offline

    Major

    See the above post.
     
  3. Offline

    Kostronor

    Works really well for me with 617!
    Thanks for this, saved my day :D
     
  4. Alright, so .5 had a lot of core changes that should make the future of this plugin much brighter, but it didn't add that much funcitonality.

    New formats:
    [​IMG]

    Sign1: No params = Free wolves
    Sign2: 2:bone = It costs 2 bones to get a wolf
    Sign3: 1:260 = It costs 1 Item #260(apple) to get a wolf
    Sign4: 3 = It costs 3 dollars from an econ plugin, if none is found, wolf is free
    Sign5: $10 = It costs 10 dollars from an econ plugin, if none is found, wolf is free

    Config file: (If you mess it up, delete it and it will auto regen)
    Code:
    adopt:
        price: 0.0 # Set this to the number of dollars or items you want
        type: -1 # Set this to a positive integer to use an item, or leave it -1 to use dollars
    Think that's all for tonight!
    When you guys find things that are bugs/not documented well, please let me know!
     
  5. Offline

    MrConfig

    Hi great plugin! Small bug report I created a sign with 2:diamond and it does spawn a wolf when you have diamond in hand but it doesn't take the 'payment' from the player so he keeps his diamonds and get unlimited wolves. I'm using version 0.5 and bukkit 617 and some other plugins (worldguard, worledit, essentials...) but I don't have iconomy or other plugin like that. Thanks!
     
  6. Offline

    2Bucks

    can you make a limit on the number of wolves someone can own?
     
  7. Offline

    ZeusHerscher

    thx so cool ^.^
    :D:D:D:D:D
     
  8. Offline

    MxSmack

    Hey,

    I tested this plugin and when I do a plugin that does cost other stuff than bones or saplings he just spawns a wolf for free.
    Just a thing you might want to know.

    Cheers.
     
  9. Offline

    Nima304

  10. Offline

    Charmz

    Could you add a limit for how many wolves you buy at once? Perhaps /adopt setlimit [X].

    Thanks. :)
     
  11. Offline

    Keav

    Would be really cool if you could make a full wolf pluggin out of this with much more things to do.
    It would be great if you could give other players ownership over one of your wolves if that is yet possible.
     
  12. Offline

    habbah

    You know what would be an awesome feature? if you can make a command that makes your tamed dog spawn to your current location. Is there a way to spawn tamed dogs? Since i know you can spawn untamed dogs to your location at any given time. maybe remove the old dog/dogs and spawn the same number of dogs tamed to the owner. just think it would be awesome, since mine gets stuck and doesn't always tp to me.
     
  13. Offline

    Carbon131

    Well I recompiled the source code (I just wanted to change some messages given to players) and now when I place a sign with [WolfPound] on the first line, it creates a wolfpound and it works perfectly; however, the [WolfPound] is not in blue, it is displayed as 1[WolfPound]. I even tried to recompile the original source code and run it, and it has the same problem. Does anyone know why this is happening? Or if I am missing an external jar file?
     
  14. Ok, so for everyone who is doing this, Here is my recommendation for now: use the item ids. they work. Then just put Diamonds or whatever the id is on the 3rd line. I'll work on the string detection. This comment goes for anyone who is having trouble using strings on the line 1:STRING. The reason it spawns for free is that if it does not find the item (and I may be doing the lookup wrong) then it defaults to free.

    Not until I can see how many wolves a player can own, which is on my todo once bukkit supports a more efficent way of doing this.

    Seeing as my plugin is already in the list :p

    Will add this in the next version

    Again, still waiting on some bukkit changes, once I can assign a wolf to a player, this will be a possibility.

    The only thing I can think of, is your character encoding, it uses a special character to perform the color change, and if you're recompiling with a different character set, it would cause these to go away.
     
  15. Offline

    Carbon131

    @fernferret

    Ah I see. Well thanks for the response, I'll see if I can find another character that would work.
     
  16. Offline

    DoomBunnyPwn

    Would love the second feature suggested, me and my friend were just discussing what an awesome feature that would be. However, I would think that making these configurable would be good, as I personally would not want invisible wolves running around on a pvp server,
     
  17. Eventually I'd like to see everything that is reasonable that has been suggested implemented, but for right now i'm focusing on core bug fixes, so I will confirm this feature (Invinciwolf) has already been implemented but has not been included in .5 and will be more around 1.X, so maybe a week? we'll see :)

    FOR ALL HAVING TROUBLE WITH ITEMS:
    I am going to keep the code that if you type the item wrong it spits out wolves for free, so test it!! Also you MUST be HOLDING the item when right clicking the sign. Currently it DOES NOT do matching, ie. Cobb will not work, but Cobblestone will.

    EDIT: Currently you must have 1 more than the sign says if the block type is placeable!!! (this is because when you click, you effectively place, and it gets removed temporarily from your inv, fix will be in next release)

    Matching is planned for a future relase

    EDIT2: See all currently recorded bugs on the wiki: http://wiki.bukkit.org/WolfPound#Current_Bugs
     
  18. Offline

    desmin88

    @fernferret
    A wolf according to bukkit is essentially an entity, as in here
    With that being said, you can make wolves attach to the player with this method, setTarget(), located here
    Hope you can implement this soon!
     
  19. Offline

    SpiiderPig

    Is it possible to check the ops.txt for Admins that are allowed to place a sign ? Would be handy for people without a Permissions system installed
     
  20. The issue with this is: Wolves MURDER you. currently, setting the target always makes the wolves hostile. I'm talking in several other threads to get a workaround.

    Here is the issue with this, the ops.txt creates permissions that are boolean by nature, either a command is or is not an ops command. I have a problem with this, but if people really want it, I can just arbitrarily assign ops commands. The problem with this is admin A will want ops to have access to ABC and admin B will want ops to have access to only A and C. Currently if no permissions is found, it's a free-for all, but I did add in .5 that if permissions are found, and a user is an op, then they have access to every command, even if someone forgot to give them permission in the permissions plugin.

    Hope that clears some of it up for right now, but we can revisit this later. Currently trying to fix bugs :p
     
  21. Offline

    desmin88

    @fernferret
    Could possibly then set the anger of the wolf with setAngry()?
    Also, what threads are you referring too?
     
  22. Tried it, that does not work after the wolf already has you as a target, and if you do it before, the wolf just sits and looks dumb at you.

    Thread link: (and by several, I mean one)
    http://forums.bukkit.org/threads/get-the-tamed-animals.10760/

    I think this behavior could be very useful to not only myself but for other devs interfacing with animals
     
  23. Offline

    desmin88

    Then if it sits and looks dumb, possibly, setAngry() then setSitting(), then setTarget()?
    I have no idea if it works, just thinking out loud here.
     
  24. I remember trying almost every combo, but I'll give it another go with the bugfixes i'm doing for .6 tonight

    @Carbon131

    You should try building from source now. Decided to switch over to my windows box and do a little dev there and ran into the same thing you did, turns out i was doing it poorly >.<

    https://github.com/FernFerret/WolfPound/commit/9606913b4c31c777d45e746a83a6b27cd15e304e
    Commit message just for you :p

    This is still V.5 but just so you know

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

    Carbon131

    @fernferret

    Haha sweet, I appreciate that, I have some pretty good ideas for this plugin :)
     
  26. Offline

    StankMeaner

    this is sick, dog wars fo life.
     
  27. About to push V.6, may want to wait for that before making changes, lots of new core functions, such as regex item finding

    Version 0.6 is out! See the fixes below. The only "new" things are things that should have been in previous releases, this is a bug fix release!

    Version 0.6
    • Add partial item matching (now you can use cook instead of cookie)
    • Fix BUG where if you had the exact number of items requested, it would give you a wolf but not take items
    • Add better error messages when creating signs
    • Fix some other bugs I forgot about...
     
  28. Offline

    MrConfig

    Only using the sign feature with 3:diamond and it's now working flawlessly with version 0.6. Thanks a lot and great work!
     
  29. Offline

    SnowFlyer

    This is SSOOO helpful!! Now when my buds on the server "accidentally" hit me they will have to deal with the wrath of my wolf pack!!!
     
  30. Version .7 is out!
    • Add multi-world support
    • Add ability to limit wolves spawned per /adopt command use
    • Improve error messages
    A few notes about this release and Multi-World support (to clear up what I feel will be common questions):
    "FernFerret, why would anyone want that?!?!"
    On my server I have seperated inventories, on seperate worlds, I want prices to be different based on where people are, mainly, the free world, (where everyone has the give command) wolves should be free!

    "But I don't want multiworld support!"
    Just always preface the set commands with "global" and you'll always set the globals. If you only have 1 world, then you're in the clear either way, because multiworld support is here to stay! (Yes, i rhymed that.)

    "My config file is messed up"
    Delete plugins/WolfPound/WolfPound.xml
    Then use the commands detailed in the OP to set the settings in game.

    "Why did you add the ability to limit wolves spawned?"
    Short answer: I spawned 1000 wolves, and bad things happened. thus, It was implemented. This does NOT effect signs, and only effects the amount a user can spawn at once. It's really hard to do damage spawning even 10 at a time. If users are spawning too many, make them more expensive for now until I find out how many a user has spawned. This is a todo item.

    Maybe I should move these to the top thread...
    Also, sorry about the wiki being really out of date, I can't log in to it :(

    EDIT: Found a VERY strange bug. If you want WolfPound, hostile mobs and EssentialsChat (not essentials, jsut the chat!) you won't get hostile mobs, no errors thrown, they just won't spawn! I'll be talking with the essentials guys to try and figure this one out...

    EDIT2: Eh... I like iChat enough, if you want formatted chat, use that for now, this is a low priority.
     
  31. Offline

    Ben Quincy

    PROBLEM. if you have 0 dollars you can still buy em....
     

Share This Page