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

    mike0fmikes

    Most of it would be handled like the scrolls I would think.

    If it breaks, then catch that from bukkit and get out of the enchantment loop; kind of like a buff spell.
    If the weapon is modified by another plugin then the effects would either cancel or stack; thats a risk that server admins would have to accept.
    If they give the weapon away it would work like a scroll.
    Logging out and back in would get rid of the enchantment.

    Or, you could just do a hack-and-slash work around: Make the enchantments a buff spell, what ever you held\wore, had that enchantment. It would have a duration. Then you can use cancel-on-logout to catch that type of issue. One enchantment spell or buff spell at a time to keep from stacking.
     
  3. Offline

    Stoneauro

    Hi, downloaded this for my server a few days ago, i was wondering if you could give me a list of Internal Spell Names, i used the names in the config and just read that they don't work. Forgive me if you have it posted somewhere and it has evaded me. Thanks Stoneauro.
     
  4. Offline

    nisovin

    The internal spell names are just the header names in the config file. I'm not sure what you read that indicates it doesn't work.
     
  5. Offline

    shanko

    the new stuff in MC looks like itll let you add a lot of cool new spells! One I'd personally like to see is a "fireball" that shoots the blaze fireballs, like a machine gun-type tying :p

    Also for now I've made some pretty awesome external spells using

    http://dev.bukkit.org/server-mods/potion-master/
     
  6. Offline

    Stoneauro

    Ah ok, i think i read it wrong. :D
     
  7. Offline

    shanko

    request:
    Let us change the
    " str-on-cooldown: That spell is on cooldown (%c seconds remaining).
    str-missing-reagents: You do not have the required reagents for that spell.
    str-cant-cast: You can't cast that spell right now."

    per spell, so they could remain in global options but if we add them to a spell we can change it for that specific spell
     
  8. Offline

    Beavis

    I downloaded the new version, but fireball isn't working anymore. Any fixes?
     
  9. Offline

    shanko

    Hey not sure if you know about it but I've been using this plugin
    http://dev.bukkit.org/server-mods/ocemanabar/

    and its awesome! :D

    Hey man just sent you a donation for making such a great plugin, thanks for all your work! :D

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

    shanko

    Hey is there any plans on adding Multi-world suppourt? I have my Warhub server where players use magic spells to fight. Now I want to make a Survival world where they mine diamonds to learn spells. I want them to keep their same spells in the warzone world, but start out with no spells on the new world.
     
  11. Offline

    Maxxgold

    Where is the new version ???

    Can we get this plugin updated or someone take it over ? As a Donator to this project I would like to see it working correctly again. It's a big part of my server.

    2011-12-21 05:58:47 [SEVERE] Could not pass event PLAYER_INTERACT to MagicSpells
    java.lang.NullPointerException
    at org.bukkit.craftbukkit.inventory.CraftItemStack.clone(CraftItemStack.java:215)
    at org.bukkit.craftbukkit.inventory.CraftItemStack.clone(CraftItemStack.java:13)
    at com.nisovin.magicspells.MagicPlayerListener.onPlayerInteract(MagicPlayerListener.java:123)
    at org.bukkit.plugin.java.JavaPluginLoader$11.execute(JavaPluginLoader.java:335)
    at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:58)
    at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:339)
    at org.bukkit.craftbukkit.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:178)
    at net.minecraft.server.ItemInWorldManager.interact(ItemInWorldManager.java:266)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:593)
    at net.minecraft.server.Packet15Place.a(SourceFile:39)
    at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:93)
    at org.getspout.spout.SpoutNetServerHandler.a(SpoutNetServerHandler.java:550)
    at net.minecraft.server.NetworkListenThread.a(SourceFile:108)
    at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:527)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:425)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:457)

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

    nisovin

    Are you using the new RB? The current MagicSpells version should be working fine without an update.
     
  13. Offline

    Maxxgold

    Yes I'm using 1597 and this needs updating. This is a constant error. It works fine but it's creating these log errors.
     
  14. Offline

    nisovin

    Try the new version.
     
  15. Offline

    Beavis

    I fixed it by the way. I had before i updated spells with reagents cost like this
    - mana 50
    -
    Seems like empty places make the spell not work anymore lol
     
  16. Offline

    shanko

    Nice I like how the new system looks, I haven't tried it yet but I'm looking forward to the easier spell copies mechanics. Just a few questions about drain life, the new way it work is it basically lets us fill in the normal "reagent" costs? So we could make drain mana, drain food, etc?

    edit: and if thats the case I'm guessing I could a sacrifice spell that drains 19 health and 100 mana from the user and give sit to his target? ;]
     
  17. Offline

    nisovin

    Correct. The options are "health", "mana", "hunger", and "experience".
     
  18. Offline

    shanko

    Dope, so many possibilities now
     
  19. Offline

    mike0fmikes

    donated :)

    great plugin
     
  20. Offline

    Aly

    Is it possible to put a limit on how many spells someone can have at a given time? I want to say, put a cap of 15 spells, so you have to forget some to learn others.
     
  21. Offline

    Firecat1311

    I'm new to Bukkit and its plugins, so if you could help me on my way to getting better I'd appreciate it.
    I downloaded the .jar into the plugins folder of my server, but I can't figure out where all the extra stuff (config files and suchlike) is supposed to go.
    If I'm just missing something that's in the description, direct me to it so that I may scold myself for stupidity :p

    Edit: Now I feel extra stupid; all I had to do is re-download it...
     
  22. Offline

    mike0fmikes

    On the bukkit dev page, go to (i think) the files tab. There's an add on called "MagicSpellsMemory". This does exactly what you want. I've been using it on my server for a couple weeks now. Works like a charm

    The config file will go in your /minecraft/plugins/ folder. All plugin.jars go into this folder, as well as a directory for the plugin.jar's configs. So you will have /minecraft/plugins/magicspells.jar & /minecraft/plugins/magicspells/config.yml. All plugins that run under bukkit will maintain this standard
     
  23. Offline

    vyurdin

    bukkit version git-bukkit-1.0.1-r1-1 and is implimented with craftukkit-1.0.1-r2-SNAPSHOT.jar

    using plugin version 1.0.4

    i am currently using permissionbukkit

    my config is here
    http://pastebin.com/tiqbvhLv

    after re-reading your instruction for a couple of times, i found myself stumped at lack of spells, when i typed /cast list command, it showed all the known spells, and when i typed in /cast (fireball) it says i dont know the spell. when i right click the wand it only list as: blink, entomb, forcepush, heal, invulnerability, leap, minion, stealth, summon, sun, telekinesis, and wall. any other spells are unaccessable even by me (an op). i have no clue to why i am missing other spells such as fireball, firenova, flamewalk, forget and such others.



    -update
    when i downloaded and installed the magicspells-1-0-4.zip from the source link . typing the spell from command seems to work now, but no update on the wand yet.
     
  24. Offline

    nisovin

    http://dev.bukkit.org/server-mods/magicspells/pages/addons/magic-spells-memory/
    Just run the server and the extra stuff will be created for you.
    Why are you using version 1.0.4? That's a really old version. http://dev.bukkit.org/server-mods/magicspells/files/ Also, you should cast fireball with /cast fireball. And the spells are assigned to wand items based on the cast-item option for each spell. Fireball is not bound to the stick.
     
  25. Offline

    vyurdin


    woot got it, bind spell solved my issue, and i was originally on 2.0 when i was having troubles, but it all worked out fine now. thanks for the reply.
     
  26. Offline

    theflame1901

    Hey cool plugin! It works at first but when i restart my server the problem starts. The console says the plugin is up to date but i downloaded MagicSpells v2.0. Can you please help me?
     
  27. Offline

    ErMurazor69

    having an issue with the tome spell I hope I can get some advice on (everything else works like a charm) I create a spell tomb and stick it in a bookshelf (most recent copy of bookworm) I pull out a few books and place them in an iconomy chest shop for sale to my users. They buy them and learn the spell using them and thats all perfect but the moment they logoff and back in they don't know the spell any longer its not saved in their list of known spells. If I use the teach spell its permanent but not the tome spell.... any ideas as to why this is? I just dled the newest version of magicspells, bookworm, iconomy, and chestshop to test it again and still it will not work, well everything does but the logoff and forget bit. Other than that this is a great plugin and I have been using it for months, Thanks!
     
  28. Offline

    nisovin

    I'm not sure what you mean. Need more information.
    This actually seems to be a bug. I'll get it fixed, but it won't be until after the holidays.
     
  29. Offline

    theflame1901

    Oh nvm i got it :D
     
  30. Offline

    shanko

    I can't use /cast reload

    with the new spell config, it starts spamming player_move errors

    All my multi spells are default bound to the stick

    edit: I'll PM you my config

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

    nisovin

Share This Page