Inactive [FUN] MagicSpells - Add magic to your server

Discussion in 'Inactive/Unsupported Plugins' started by nisovin, May 8, 2011.

  1. Offline

    nisovin

    MagicSpells - Add magic to your server!

    View the plugin on BukkitDev!

    MagicSpells is a plugin that creates spells your players can use. Its main purpose is to give your players access to certain abilities that you might not want to give them unlimited access to. Each spell can be assigned customized reagent (item) costs, cooldowns. durations, ranges, and so on. Spells can be cast by using the /cast command, swinging a wand, or both. It's all customizable.

    Download

    Important: Read before downloading! There is a lot of information in this post. I know, it's a lot to read. However, I spent quite a while writing it all in what I hope is a clear, informative, and understandable manner. So, please, read the entire post before asking a question. Chances are, the answer is already here. I also suggest taking a nice look through the configuration file. Is it a massive file? Yes, it is. But if your question is "can I do this?" then a look through the configuration options would be a good idea.
    Plugin Manual

    There is a lot of useful information in the plugin manual, which can be found here:

    MagicSpells Plugin Manual

    Usage

    Spells can be cast either by using the /cast command or by using a wand item. To cast a spell, a player must first know the spell. Server operators know all spells by default. They can teach spells to other players by using the teach spell. For example, to teach bob the blink spell, an operator would type: /cast teach bob blink.

    Bob can now use the blink spell. He can either cast it by command, by typing /cast blink, or he can cast it with a wand item. To select the spell, he holds the wand in his hand and right clicks. Right clicking will cycle through any spells assigned to the item he is holding. When he has the one he wants, he left clicks to cast.

    If Bob does not have the required reagents for the spell, or if he has cast it recently and it is still on cooldown, he will not be able to cast the spell and will instead receive an error message.

    If mana is enabled, a player can use the /mana command to see how much mana they currently have.

    Spells

    View Spell List

    Configuration

    The zip file contains a config.yml file that should go into the MagicSpells folder within your plugins directory. The default configuration has appropriate spell costs, durations, and messages for each spell. However, you will most likely want to customize this to fit your server.

    You can modify the config.yml file directly, or you can choose to leave it intact and instead create an alternate config file, by default altConfig.yml. Any configuration values in this alternate file will override the values in the main config file.

    There are some general configuration options that apply to all spells, as well as options for each individual spell. Important: The default configuration file does NOT contain all config options, it is just an example. Just because a config option isn't in the default doesn't mean it is not available. For example, it's possible to add a duration to any buff spell, even though the default configuration file does not have a duration on all buff spells.

    To reload the configuration, simply cast the fake reload spell (/cast reload). Only server operators can do this (it can also be done from the command line).

    Please see the plugin manual for information about all of the various configuration options.

    Frequently Asked Questions

    Help me! Why isn't it working?
    If - after reading through this entire post - you can't figure out why it isn't working, please take the time to submit a proper help request. You can post your request either on in this thread or in the MagicSpells forum. You should provide the following information:
    • The CraftBukkit build you're using.
    • The MagicSpells version you're using.
    • Which permissions plugin (if any) you are using.
    • The error in the console, if there is one.
    • Your config file(s). Please don't post them directly , use a service like http://pastebin.com and just post the link.
    It says I need reagents whenever I cast a spell! Where do I get reagents?
    One of the main ideas behind this plugin is to give players cool abilities, but with a cost. The reagents are the spell's cost. This can be configured in the config.yml file individually for every spell. The config option name is "cost". You can also add your name to the list of exceptions in the general.cast-for-free option.

    Can I unbind spells from items?
    Yes. Simply use the bind spell to bind the spell to your empty hand, and it will no longer be bound to any item.

    Why can't my players cast spells?
    Why does it say "You cannot cast that spell right now" when I try to cast any spell?
    If you're using Permissions, please make sure your permissions are all set up correctly. Look in the Configuration: Permissions section for more information. Also double check and make sure your use-permissions config option is set to true.

    What are the Permissions nodes?
    The nodes are listed on the permissions information page in the plugin manual.

    I can't get my Permissions working! Can you help me?
    Remember that all nodes use the "real" spell name, rather than the name you define with the "name" option. If you cannot get your permissions working, feel free to ask for help. Make sure you specify which permissions plugin you are using, and all of the items from the "Help Me!" question above.

    Will you add iConomy (or another economy plugin) support?
    With the addition of the 'tome' and 'scroll' spells, I currently have no plans to add special support for an economy plugin. You should be able to create tomes and scrolls and sell them using any plugin that allows you to sell items, thus allowing you to sell spells.

    I have a great spell idea! Will you add it?
    Please tell me about it by submitting a ticket! I can't guarantee that I'll make it, but if it's a feasible idea, I'll definitely consider it. I'm always looking for new spell ideas. Note that I may not respond directly to your idea, but I always read the suggestions.

    I've found a bug! What do I do?
    Please submit a ticket! Please include your CraftBukkit build number, any error in the console, the situation that caused the error (if known), and if you think it's applicable, the list of plugins you use.

    Change Log

    View full change log



    Donate: Always gotta have a donate link for those who love their plugin authors.
     
  2. Offline

    msw1

    AWESOME. Wasn't this that awesome plugin back in hmod? The one I ****ed my pants for? I think so. AWMG FANTASTIC PLUGIN!
     
  3. Offline

    kahlilnc

    Ima get this when I go back home.
     
  4. Offline

    LucidLethargy

    Oh wow, someone actually completed this! Can't wait to try it! Thank you do much :D

    Seriously, thank you though, if this does what it claims it will make a huge difference on my server. I am also using the great "Reagents" plugin, but this one has some spells that one so far has not developed! This is a welcome surprise for the community :p

    *I especially enjoy the future plans concerning the bookshelves teaching spells. This is EXACTLY how I wanted to originally make my server work - with people finding easter eggs like these bookshelves that hold the key to new spells :p
     
  5. Offline

    anon

    WOW!!1!

    Hmod plugin finally came to bukkit. Its incredible.
     
  6. Offline

    kahlilnc

    Gonna try this out after school. This looks dope.
     
  7. Offline

    yoyo

    Could you add individual permissions to this plugin? Would be great to create diferent kind of mages.
     
  8. Offline

    nisovin

    I plan to add some kind of a magic class system eventually, but players' spells are already tracked individually. If you want a player to be a certain class, just teach him those spells, and that's all he'll be able to use.
     
    kahlilnc likes this.
  9. Offline

    yoyo

    Yes. But we on our server has some signs around the map, where players, if they find the hidden signs, can autoimatically learn the spells. That I did to prevent the wave of players asking "teach me this please"," give me the spell x", etc etc etc. A way to restrict wich spells can be learned by wich groups would be good.

    Is that because of the distrust that some developers have in permissions plugin?
     
  10. Offline

    Shad

    Code:
    19:05:30 [SEVERE] Could not load 'plugins/MagicSpells.jar' in folder 'plugins':
    mapping values are not allowed here
     in "<reader>", line 2, column 26:
            str-cast-usage: Usage: /cast <spell>. Use /cast list  ...
                                 ^
    
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:745)
        at org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:307)
        at org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
        at org.yaml.snakeyaml.parser.ParserImpl$ParseBlockMappingKey.produce(ParserImpl.java:564)
        at org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
        at org.yaml.snakeyaml.parser.ParserImpl.checkEvent(ParserImpl.java:148)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:228)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeMappingNode(Composer.java:230)
        at org.yaml.snakeyaml.composer.Composer.composeNode(Composer.java:160)
        at org.yaml.snakeyaml.composer.Composer.composeDocument(Composer.java:122)
        at org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:105)
        at org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:124)
        at org.yaml.snakeyaml.Yaml.load(Yaml.java:264)
        at org.bukkit.util.config.Configuration.load(Configuration.java:73)
        at org.bukkit.plugin.java.JavaPlugin.initialize(JavaPlugin.java:158)
        at org.bukkit.plugin.java.JavaPluginLoader.loadPlugin(JavaPluginLoader.java:140)
        at org.bukkit.plugin.SimplePluginManager.loadPlugin(SimplePluginManager.java:160)
        at org.bukkit.plugin.SimplePluginManager.loadPlugins(SimplePluginManager.java:108)
        at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:85)
        at org.bukkit.craftbukkit.CraftServer.reload(CraftServer.java:287)
        at org.bukkit.command.SimpleCommandMap$ReloadCommand.execute(SimpleCommandMap.java:201)
        at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:85)
        at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:247)
        at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:394)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:379)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)
    
    Getting that when I reload the server or boot it up. Also MagicSpells isn't working in-game.

    Any suggestions?
     
  11. Offline

    nisovin

    Sorry, I made a mistake with the config file. Try this one:

    http://nisovin.com/config.yml

    ----

    I've updated to version 0.2. The spellbook spell is now available, and I've added Permissions support.
     
  12. Offline

    LucidLethargy

    As an admin I do not know any spells by default with the plugin... so something must be up? :/
    Edit: Oh you know what, I just noticed permissions is off by default in the configuration, sorry about that, I suppose i'm not used to it!

    Oh, also your download link (zip) needs some updating - I just slid a "2" in place of the "1" and it was fine, though!
     
  13. Offline

    nisovin

    Ah thanks, I fixed the download link. Are you a server op in the ops.txt file? Have you tried logging out and back in? Are you getting any errors when the plugin loads?
     
  14. Offline

    Shad

    Thanks nisovoin,

    07:23:10 [INFO] MagicSpells v0.1 loaded!

    I also just want to thank you again for this plugin, I needed it pretty bad since I just switched from Canary and you came at just the right time :)
     
  15. Offline

    yoyo

    COOL, you added permissions. Many thanks man :D
     
  16. Offline

    Brvtvs

    Suggestion: A simple sprint spell, so people could have a sprint that you activate with an item instead of those plugins that you hold down crouch (which makes it a major pain)
     
  17. Offline

    kahlilnc

    You should be able to learn spells from bookcases. Admins should use a command to put a spell in one.
     
  18. Offline

    nisovin

    This was added in version 0.2.
     
  19. Offline

    Shad

    I can only entomb mobs and not players, is this correct?
     
  20. Offline

    nisovin

    Entomb has a target-players option similar to combust that defaults to false. I guess I forgot to put it in the config file.
     
  21. Offline

    Shad

    It may likely be in there, I didn't take the time I should have to investigate the config due to me getting side tracked. I will check if it's in there...

    On further investigation it appears, "target-players", is not located below entomb. But the combust spell does have it, so I will just copy and paste it over.

    Thanks for the help :)
     
  22. Offline

    Specops343

    Idk if this is even possible, but would citizens support be possible? Like you find a wizard, that wizard could teach you a spell?
     
  23. Offline

    darklust

    Too cool man! Looking forward to those future spells :]
     
  24. Offline

    Noffletoff

    Is it possible to make so it so that players have to pay to learn from a bookshelf? Like purchase spells through iConomy or other economy plugins?
     
  25. Offline

    TrainYourBrain

    I just notice I don't leave a command for this awesome plugin !!
    So congratulation due, it's really brillant !!

    However would it be possible to add a mana gauge ?
    Each spell cost a certain mana amount and once you used all your mana, you couldn't make/call spells anymore.
    Mana could be regenerate thanks to lapislazulis : Player hold a lapislazulis in his hand , and use right click to get mana thanks to the lapis (and the lapis disappeared, being consumed). Or mana could be regenerate while eating yellow flowers for instance :p
     
  26. Offline

    xDice

    what is the permission to teach a spell?
    wish somethin like
    -'magicspells.admin'

    how can i translate the spell names?
     
  27. Offline

    Plague

    only use multiple version tags when really neeeded (740.766 is not)
     
  28. Offline

    nisovin

    People that have learned the "teach" spell can teach spells. You can change spell names by changing the name property of any spell in the config. It isn't included in the config file by default, but you can just add it in.

    I plan on adding a mana feature sometime in the future.

    I don't really have plans to implement something like this, but I'll consider it.
     
  29. Offline

    Noffletoff

    Good enough, I can always hit up request forums and see if they can whip up something easier and similar.
     
  30. Offline

    Garnith

    Awesome, more stuff for Sorcerers/Wizards. Now I can start setting up different spell tiers. Cheers man!
     

Share This Page