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. Nope, definetly not. UNLESS you have the price set to 0.
    Try typing all of these:
    /adopt priceglobal 1
    /adopt typeglobal -1
    /adopt price all

    What does it say your current world price is?

    EDIT: JUST FYI, Adopting friendly wolves is coming later today in .8!
     
  3. Offline

    Jessicadawn

    So im not really a plugin worker but this is what id love wolfpound to do if not already be able to be done.

    Admin A has a sign in a room that no players can get too. Shop opens up players are allowed to come in and click the sign buying 1 wolf for 5000 coins on iconomy. Players cannot use the /adopt or be able to make signs.
     
  4. Yep, that's already possible.
    Using permissions, give admins:
    wolfpound.create
    wolfpound.admin
    wolfpound.use
    wolfpound.adopt

    Give Users:
    wolfpound.use

    Have the admin create the sign with the following text:
    [WolfPound]
    $5000
    friend

    Then users can click it and buy wolves for $5000
     
  5. Offline

    Jessicadawn

    you are awesome <3!
     
  6. Offline

    Identity62

    Hello there,

    The problem you highlighted earlier is happening to me too.
    I have bukkit 617, Permissions 2.5.5, Essentials, iChat, Residence and CommandSigns.
    Whenever I put a panel up with [WolfPound], the message saying "BAM! A wolf was spawned" pops up but no wolf
    gets spawned.

    I first thought CommandSigns could be interfering but it's not (this plugins hilights signs in green by default).

    I'd be very grateful if you could help out here!

    PS: No action whatsoever is logged when I click on the panel.
     
  7. Offline

    ChrisX930

    I've the same Problem...
     
  8. Offline

    inteligence

    I am also receiving the above error and can elaborate if needed.
     
  9. @Identity62 @ChrisX930 @inteligence
    Ok, for all three of you, could you answere these questions for me:
    1. What version of WolfPound do you have?
    2. When the server starts up, what messages does wolfpound give
    3. Please post your WolfPound.yml (located within plugins/WolfPound/) to pastebin.com

    Thanks!
     
  10. Offline

    Identity62

    1 - v0.7 (will upgrade)
    2 - Wolfpound loaded, permissions found (no errors)
    3 - yml is curiously short :confused::
    Code:
    adopt:
        limit: 10
        price: 0.0
        type: -1
        agro: friend
    
    I'll upgrade in 5min and posts results.
     
  11. Offline

    ChrisX930

    1 - v0.8
    2 - Wolfpound loaded, permissions found
    3 - my WolfPound.yml:
    Code:
    adopt:
        limit: 10
        price: 0.0
        type: -1
        agro: friend
    
     
  12. If your YML is that short, that just means that you have not set preferences for individual worlds, and that those settings will be used for all worlds.

    Hmmm, this is very curious, it SHOULD create one by default, I'm guessing there is a file permissions issue preventing this?
    Try creating that folder path (plugins, which should already exist) plugins/WolfPound/WolfPound.yml and putting the following in it:
    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
        agro: friend # Could also be angry or neutral
        worlds:
            world:
                price: 0.0
                type: -1
                limit: 10
                agro: friend
     
  13. Offline

    ChrisX930

    ok, I've tried this but nothing will spawn
     

    Attached Files:

  14. Offline

    Identity62

    After update to 0.8:
    03:06:21 [INFO] [WolfPound] - Version 0.8 Enabled
    03:06:21 [INFO] [WolfPound] using Essentials Economy!
    03:06:21 [INFO] [WolfPound] using Permissions

    The full load-up info here (might help you!) --> http://pastebin.com/iS2BNZkP

    Found the bug!

    I have the Residence plugin to protect zones from damage. Mobs are disabled too, thus preventing wolves from spawning properly (surely because they are potentially harmfull). Now the tricky part is that I wanted to spawn wolves in a "Wolf Shop" in my protected town...

    Now that's gotta be difficult =/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 13, 2016
  15. What other plugins are you using? Are you using one that prevents mobs from spawning?
    Try removing ALL plugins EXCEPT WolfPound and see if it works. Then reenable and try to find if there is a conflict

    @Identity62 Could you link me with that plugin that was causing an issue? I'd like to put it in the first post.

    Also I may be able to work with the author of that plugin so wolves that are friendly will spawn, but neutral/angry wont
     
  16. Offline

    sharkale

    wolf have the follow functions i found could serve you.

    in EntityWolf

    PHP:
    a(String playername): void // setOwner
    a(EntityHuman): boolean // according to the item in hand tame(bone) or feed(pork,etc)
    a(boolean): void // showHearts // display hearts(true) or smoke(false)
    b(boolean): void // setSitting
    c(boolean): void // setAngry
    d(boolean): void // setTamed
    v(): String // getOwnerName
    w(): boolean // isSitting
    x(): boolean // isAngry
    y(): boolean // isTamed
     
  17. Thanks, these should already be implemented as of .8! Definitely good to have them in one place though!
     
  18. Offline

    Identity62

  19. Offline

    Camrules

    If you could get Real Show/Real Economy Integration please, that would be awesome! My Server Admin would put it in if it worked with Real Economy/Real Shop
     
  20. I'll see what I can do, may be a day or two before I get a new version out, as this will be one of the first feature releases, ie. one that does not fix a bug.

    EDIT: I lied. Found a bug, If you DON't use this:
    /adopt agro friend
    or
    /adopt agroglobal friend

    Wolves will still spawn but you'll see a NPE in the console and wolves will always spawn neutral.

    This has already been fixed, and I can confirm that .9 WORKS with 970, but I will decide in a few mins if i'm gonna release .9 with or without the additional econ. More to come soon!

    EDIT2: RealEconomy has no documentation on how to interface with it, so i'm left with the source, it's gonna be longer rather than shorter for this support, sorry.

    Version UPDATE!

    PLEASE UPDATE this contains lots of bugfixes!!!!

    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)
    @Camrules - RealEconomy Support

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

    iCandyz

    how do i add permissions? i downloaded the permissions n stuff and i have boseconomy and i renamed the file and i added me to the users but idk how to add permissions!
     
  22. I have posted my sample config here:http://pastebin.com/i6mkn2eC
    Keep in mind this config IS ONLY for wolfpound, you'll have to add your other permissions in too!
     
  23. Offline

    keeperoflenneth

    A config file would be greatly appreciated. As would the spawn limit per time (even per day?) Perhaps another helpful addition would be storing the count of purchased wolves in a file as well (if you don't feel like dealing SQL anyway). The end goal being that you can track hound purchases through restarts/upgrades etc. Just a suggestion, hope to see a config so i can install this thing :D GL and thanks!
     
  24. Already has a config file, but you can use commands if you don't want to edit it :) We'll see about the others, i feel that SQL is quite overkill for this plugin
     
  25. Offline

    keeperoflenneth

    Agreed, but i already have it installed, ya know? one place to change things- but i guess on that note every mod has config files, which are all in the same general place. Well woot to that then. Does the limit mean "ever"? like 10 wolves per sign created? Or 10 per user? or 10 per til the server restarts? I may very well just start using this now. I could always price them accordingly so they dont "want" to spambuy them....
     
  26. Currently the default 10 means at a time:
    /adopt 900 # will only adopt 10 and charge them for 10.

    I did /adopt 1000 and bad things happened. I'm still waiting to see how to get the wolves attached to a person, and then there will be another config var added.
     
  27. Offline

    keeperoflenneth

    Right on, Well, so be it. you have my endorsement. ^^; installing. hope you get what you need soon.

    IIiiiiiiiiiiiiiiiiiiiiiiii remember what i wanted to ask for now! (yea what else right?) ... I use ecoCreature: something that would be awesome that would come along with the other properties of finding out how many wolves a person has out at a time: giving kill credit if the wolf gets the killing blow for the creature kill/loot type plugins. Though- i would wager that's more their job than yours. Just something to keep in mind. My server's womens have wolves now. They are pleased.
     
  28. Offline

    Expatcat

    I would just like to point something out...
    I tried making a WolfPound where they would be bought friendly. The sign looked like this:

    [WolfPound]
    1
    Friend

    Now, I bought from the WolfPound and they were not spawned friendly. So I created another one next to it...

    [WolfPound]
    1
    friend

    And it worked... Now, I dont know if Im the only one that is OCD about caps, but this bugs me :D
    Just thought I would throw it out there :p Im sure im not the only one confused by it...
     
  29. Thanks! Bug report filed. I'll get this fixed in the next release, which i was going to call 1.0 anyways!
     
  30. Offline

    Twisted420

    ok so i tried both new o.9 and 0.5 version of this plugin and both give me this error as depicted in the screen shot of my bukkit console any help?

    also in 0.9 when i place the sign the text does not turn blue like it should it did in 0.5 version and when i tried console/sign it would say bam u got a wolf but wolfs did not spawn it gave me some internal error message
     

    Attached Files:

    Last edited by a moderator: May 13, 2016

Share This Page