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

    josip1

    Is there a way to just make certain items have a bind? and players can only use those items. No way to unbind them and use /cast. ?

    But this if by default...so no typing is required by a person
     
  3. Offline

    nisovin

  4. Offline

    josip1

    and how do I bind a spell to an item by default? nisovin
     
  5. Offline

    nisovin

    With cast-item... have you read that page I just linked you? You should.
     
  6. Offline

    josip1

    Yeah I saw that just a bit after I posted, forgot to update. Sorry. I had a look at anti magic zones...is there a way to do only magic zones? lol

    I want to just make it for my arena and not anywhere else. Any ideas? Because I am running out of items people can use. I don't want them to be able to get them in game at all :(

    So i've been trying to set it up but it seems cooldowns and mana just don't work...any idea on what I could be doing wrong?

    http://pastebin.com/1rcLVgZs

    I use RB 1.0.1

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

    nisovin

    Deop yourself.
     
  8. Offline

    josip1

    I deop'd myself but I still use the * permission for everything as owner.

    What permissions should I make sure aren't given?


    Great plugin btw, my players are loving it, we are using it with mobarena for healers, mages, warlocks.

    One suggestion I have is would it be possible to have a spell where it makes mobs within a x radius attack you? This would be great for a tank.
     
  9. Offline

    nisovin

    Maybe you should read the permissions page.
     
    josip1 likes this.
  10. Offline

    shanko

    Do something like flamewalk that only lasts for 1 second so it attracts all the mobs :p
     
    josip1 likes this.
  11. Offline

    josip1

    Thanks shanko. That will do for now I guess :)

    nisovin, I didn't realise mana is a reagent. I was kind of thinking it was it's own separate thing, sorry for the hassle.

    Now I have a question on how damage works....how does it ? Like what does 20 damage mean? Is that 20 hearts or 10 hearts?

    Fireball seems very buggy to me


    Code:
            spell-class: ".instant.FireballSpell"
            name: fireball
            description: Throw a fiery ball of destruction.
            cast-item: 115
            cooldown: 1
            range: 30
            require-entity-target: false
            obey-los: true
            target-players: false
            check-plugins: true
            additional-damage: 20
            can-cast-by-command: false
            can-cast-with-item: true
            no-fire: false
            no-explosion: false
            cost:
                - mana 20
            str-cost: 20 mana
            str-no-target: You cannot throw a fireball there.
            str-cast-self: You throw a fiery ball of destruction!
            str-cast-others: "%a throws a fiery ball of destruction!"

    This is how I have it set but I don't think it does enough damage. It takes quite a few hits for anything to die.
     
  12. Offline

    Kyeria

    Is there anyway to make it so that OP's also have to use Mana to cast spells? I really don't want to have to DE'OP all my Operators in order to force them to use mana like everyone else...
     
  13. Offline

    nisovin

  14. Offline

    Kyeria

    Thanks for your help Nisovin! I hate to ask another stupid question but, are Blind and Cripple broken? No matter what settings I turn on they won't allow me to target other players as well. I turn on "Target Players" to True and I've even set it to false for kicks and it still doesn't work.

    Any ideas?
     
  15. Offline

    shanko

    a fireball has to be a direct hit to do the full damage
     
  16. Offline

    charlie_boi

    Amazing plugin, really fun to play with the external command spells, made a spell that puts a maze in front of you with a chest of items at the end you have 60 seconds to get to it before the spell ends and the maze disappears
     
  17. Offline

    shanko

    hey niso is there anyway to get the lightning spell to work in-doors?

    suggestion: You should implement a splash feature for the potion spells, make it either throw the projectile automaticly or have it splash around the player to be like an "aura"

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

    polakman

    Hey Nisovin, i have nice idea for you!
    I discovered on my server that the windwalk spell have one little bug, namely u can throw your items out from your creative pannel. I thinked how to fix this problem and i found clue!

    My idea for windwalk is...
    Swimming system from minecraft without oxygen losing, and without hurts and on the wing. What do you think about it? Is it possible? And if yes, will that be in 2.2 update?

    Im patiently waiting for your response.
    Greetings.
    Polakman
     
  19. Offline

    nisovin

    Yay for version 2.2!
     
  20. Offline

    Jaycen

    Hi, Nisovin. I d-loaded and tried to fire it up and I get the following error:

    [​IMG]

    I'm running Craft Bukkit 1597 with the following plugins:

    BookWorm
    Catacombs
    PermissionsEx
    CommandBook
    Craftipedia
    EpicZones
    PhysicalShop
    SecretDoors
    SimpleChestLock
    Spout
    WorldEdit

    I have not tried any of the functionality yet. The error made me twitchy.
     
  21. Offline

    shanko

    WHO! EPIC update! :D I hope I don't get the same error as jaycen

    Code:
    on /cast reload
     
    25.01 18:54:36 [Server] INFO    ... 14 more
    25.01 18:54:36 [Server] INFO    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:40)
    25.01 18:54:36 [Server] INFO    at com.nisovin.magicspells.MagicSpells.onCommand(MagicSpells.java:575)
    25.01 18:54:36 [Server] INFO    at com.nisovin.magicspells.MagicSpells.unload(MagicSpells.java:786)
    25.01 18:54:36 [Server] INFO    at com.nisovin.magicspells.spells.buff.GillsSpell.turnOff(GillsSpell.java:105)
    25.01 18:54:36 [Server] INFO Caused by: java.lang.NullPointerException
    25.01 18:54:36 [Server] INFO    at net.minecraft.server.ThreadServerApplication.run(SourceFile:465)
    25.01 18:54:36 [Server] INFO    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:434)
    25.01 18:54:36 [Server] INFO    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:536)
    25.01 18:54:36 [Server] INFO    at net.minecraft.server.NetworkListenThread.a(NetworkListenThread.java:78)
    25.01 18:54:36 [Server] INFO    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:551)
    25.01 18:54:36 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:100)
    25.01 18:54:36 [Server] INFO    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    25.01 18:54:36 [Server] INFO    at net.minecraft.server.Packet3Chat.handle(Packet3Chat.java:33)
    25.01 18:54:36 [Server] INFO    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:175)
    25.01 18:54:36 [Server] INFO    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:725)
    25.01 18:54:36 [Server] INFO    at net.minecraft.server.NetServerHandler.chat(NetServerHandler.java:737)
    25.01 18:54:36 [Server] INFO    at net.minecraft.server.NetServerHandler.handleCommand(NetServerHandler.java:777)
    25.01 18:54:36 [Server] INFO    at org.bukkit.craftbukkit.CraftServer.dispatchCommand(CraftServer.java:386)
    25.01 18:54:36 [Server] INFO    at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:168)
    25.01 18:54:36 [Server] INFO    at org.bukkit.command.PluginCommand.execute(PluginCommand.java:42)
    25.01 18:54:36 [Server] INFO org.bukkit.command.CommandException: Unhandled exception executing command 'cast' in plugin MagicSpells v2.2
    25.01 18:54:36 [Server] SEVERE null
    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jul 16, 2016
  22. Offline

    Jaycen

    Sorry, Shanko. What's the "epic update"? I'm lost.
     
  23. Offline

    shanko

    read the changelog?
     
  24. Offline

    nisovin

    Version 2.2 is not compatible with 1.0. You'll have to upgrade to the new 1.1 RB or use an old version.

    shanko I'll fix that error, but it shouldn't be anything to worry about.
     
  25. Offline

    shanko

    nisovin yeah I figured that, but I think it stops me from reloading and I was looking forward to editing the new spells! :p

    Also another bug on the roar spell it seems to require a target? Is that intentional?
     
  26. Offline

    nisovin

    Well, if you want a temporary fix, you have two options:
    1. Enable the glass head effect on gills
    2. Disable the gills spell

    The roar spell doesn't technically require a target, but if there aren't any monsters nearby it will fail with a no target message.
     
  27. Offline

    shanko

    Ooo nifty, and thanks for the fix :p
     
  28. Offline

    Jaycen

    Thank you, gents.

    Also, thanks for keeping your plugin up-to-date.
     
  29. Offline

    polakman

    nisovin please reply my question
     
  30. Offline

    nisovin

    It's not possible to make someone swim through the air. However, you should not be able to throw things out of the creative window while using windwalk.
     
  31. Offline

    polakman

    ok thx and last one question is how to write coordinates in gate spell , or ;?
     

Share This Page