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

    Joy

    Not sure what you are trying to say? Maybe not what? If you don't want your players to use it, don't give them the node. You balance spells by distribution and cost, not by not implementing them Oo
     
  3. Offline

    monkeymii

    its just if it is an x-ray then i dont agree with it. dont see how its possible as a plugin but what i was askin was wht does it do?

    Also Another idea for a spell

    cloak?
    where you become invisible like those spyer plugins
     
  4. Offline

    nisovin

    Yes I did, I'll add it with the next update.
    Stonevision was a spell that replaces nearby stone with glass temporarily. I added it to the list. I'll also add cloak/vanish to the list (vanish was the invisibility spell in the original hMod plugin).
     
  5. Offline

    Joy

    I am assuming it doesn't yet, would it be possible to have a spell like Zap, to check if a block breaking is allowed? Thus if an area is for example protected by WorldGuard, Zap would fail for a user, that is not allowed to break blocks in there.
     
  6. Offline

    Ganadewa

    Will try it. Hope it works fine with mcmmo
     
  7. Offline

    TheBlackFire

    Hey how to make a wand, or how to make an item work like a wand? its almost impossible to cast a spell with a command when a group of mobs is attacking you, but i don't know how to use the wand. some help?
     
  8. Offline

    Owenfitz

    by skrewed up i meant it said there was an error reading those lines that i added. i use the same format of the above three
     
  9. Offline

    Ganadewa

    Tested it.

    I love it so much! Never seen a better magic plugin! No problems with other plugins, easy to configurate, easy to use.

    Thank you.
     
  10. Offline

    xDice

    cast-item: 340

    in the config you can chose every item as "cast-item"
    When you learnt a spell, you can use it with left-click, or when you have more spells on one item you can switch the spells witz right-click. Very Easy ;)
     
  11. Offline

    monkeymii

    for anyone else wondering if it works with mcmmo
    it does and on the skills side of it they dont really confilict with anything in mcmmo anyway


    Another thing
    Is it possible to make it so the heal spell only works for people who are in the same permissions group as them?
    i know it would be a hassle but it would help soo much
     
  12. Offline

    Joy

    Request: make /cast teach fail, if the target already knows the spell. Currently it consumes reagents, even if the target knows it already.

    ====

    Edit: this error pops up sometimes: http://pastie.org/1928343
     
  13. Offline

    monkeymii

    looking through my logs... dont know what this it is but magic spells has been playing up. whenever i try to 'blink' or use a copy of it. i simply get the line saying 'youve teleported' but nothing happens. no errors in the logs what so ever when we use it. i have tried /reload. /cast reload everything and they just seem to have broken. i think its a problem with multiple copies of the same spell as we have 3 tiers of teleport/blink
    ..
    also i looked through my logs and i found this
    i dont think its related but:
    Code:
    2011-05-19 20:02:32 [SEVERE] Could not pass event ENTITY_DAMAGE to MagicSpells
    java.lang.NullPointerException
        at com.nisovin.MagicSpells.BuffSpell.chargeUseCost(BuffSpell.java:113)
        at com.nisovin.MagicSpells.Spells.GillsSpell.onEntityDamage(GillsSpell.java:56)
        at com.nisovin.MagicSpells.MagicEntityListener.onEntityDamage(MagicEntityListener.java:22)
        at org.bukkit.plugin.java.JavaPluginLoader$44.execute(JavaPluginLoader.java:474)
        at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
        at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:257)
        at net.minecraft.server.EntityHuman.damageEntity(EntityHuman.java:410)
        at net.minecraft.server.EntityPlayer.damageEntity(EntityPlayer.java:147)
        at net.minecraft.server.EntityMonster.a(EntityMonster.java:101)
        at net.minecraft.server.EntityCreature.c_(EntityCreature.java:67)
        at net.minecraft.server.EntityLiving.u(EntityLiving.java:657)
        at net.minecraft.server.EntityMonster.u(EntityMonster.java:30)
        at net.minecraft.server.EntityZombie.u(EntityZombie.java:34)
        at net.minecraft.server.EntityLiving.p_(EntityLiving.java:231)
        at net.minecraft.server.EntityMonster.p_(EntityMonster.java:34)
        at net.minecraft.server.World.entityJoinedWorld(World.java:1007)
        at net.minecraft.server.WorldServer.entityJoinedWorld(WorldServer.java:52)
        at net.minecraft.server.World.playerJoinedWorld(World.java:989)
        at net.minecraft.server.World.cleanUp(World.java:966)
        at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:367)
        at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:285)
        at net.minecraft.server.ThreadServerApplication.run(SourceFile:394)

    ALSO! lol
    i get this when starting up/reloading
    Code:
    2011-05-19 19:48:10 [SEVERE] MagicSpells: Error loading spellbooks
    when from what i can tell my spellbooks work fine and are fine(i havnt manually changed them or anything).
     
  14. Offline

    kahlilnc

    Can you make it so you can cast more spells on players. Like the entomb and others. And can you add mana. I no its a lot to ask but please consider. :D
     
  15. Offline

    Cake=Lie

    Before I say anything else...
    MAJOR BUG
    forcepush: I use it and is allowed to target players. CRASHES THE ENTIRE SERVER EVERY TIME
     
  16. Offline

    Joy

    Tested, does not crash for me...
    ===

    Request for nisovin:

    Can you please add permission nodes for being able to Cast a spell? This way I can allow players to, for example, learn Explode, but only be able to use it in a sandbox world, and so on.

    Thanks!
     
  17. Offline

    Toastman

    Awesome plugin, but I do have one request:

    Could you possibly block friendly fire from members of the same group? For example, like this plugin: GroupPvP

    It would really help, because then you could have like factions with people casting spells on each other, and no fear of friendly fire, because I can see these spells being heavily abused on my Faction-type server
     
  18. Offline

    Sike Mequino

    would it be possible to add to the config file what spells are add to what tool
     
  19. Offline

    Joy

    Check the config file again, I just added this feauture.

    /sigh
     
  20. Offline

    karmacopious

    Spell request -
    Fire Resistance Protection. Currently I am using FireLord for Fire Protection using Golden Armor, this works fine, except I would rather have fire protection based on a reagent using spell so it is time limited.
    Thanks!
     
  21. Offline

    Lord Chaos

    How exactly does this work in regards to usage of spells? Can players just use an infinite amount of spells or how does it work?
     
  22. Offline

    SillyWalker

    This is an amazing plugin!
    Small problem: how do I get rid of the use of wands? I've tried deleting the cast-item line from the config file, changing the number to 0, and laving it blank, but nothing seems to work. Help?
     
  23. I cant wait for the other spells! good work, most of the other magic mods were lacking in some way but this is awesome.
    Can it be used with permissions or MySQL instead of a flatfile?
     
  24. Offline

    airsoftinva

    Man I absolutely love this plugin. It is bringing so many possibilities to our adventures that we will be posting on youtube that I just had to say that I love you. I have been waiting for a plugin like this for SO LONG.

    I looked through your future plans and I really want to see these:
    • wall - Create a wall to block your enemies.
    • summon: Summon a monster to fight for you.
    • lightwalk: Light your path as you walk.
    • lifewalk: Flowers bloom in your footsteps.
    • volley: Fire a volley of arrows at an area.
    Lifewalk sounds neat for something I need. I also would like to see a sort of spells class for... nature. That would be amazing. Thanks.

    Also, the deathwalk one? What exactly do you mean by that?
     
  25. Offline

    monkeymii

    basicaly you as the admin edit spells under 'cost' in the config to what the player need to cast that particular spell and then when the player uses that spell, the items need to cast the spell (and amount) will be 'used up' out of his inventory.
    Eg. blink costs 1 redstone dust

    i cast blink and lose 1 redstone dust

    The number after cast-item is the items id, so changing it to 0 will make it (technicaly) use air, which i understand why you would think this would work but it wont :p
    im guessing what you're asking is if you can use spells with an empty hand? im not sure what exactly you're asking but at the moment i dont think you can use them with your hand sorry

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

    SillyWalker

    Fun idea, but what I'm trying to do (and failing at) is make it so that spells can only be cast through the /cast command. Wands are interfering with some of my other plugins. However, every attempt I make at changing the config file has no effect in-game.
     
  27. Offline

    monkeymii

    what do you mean? 'no affect in game'
    as in you change it to a sword and it still uses the stick... if so then are you reloading? /cast reload or maybe you should redownload it and do it again.

    if you want to use just /cast command then change the item id to something like 16 foir coal ore that your players wont be able to use.
     
  28. Offline

    SillyWalker

    Yeah, that's what I ended up doing. The problem was the wand commands were interfering with one of my other plugins, so I just moved some ID numbers around in the config file and got rid of the other plugin (this one does the same thing and more, anyway). Everything works fine now. :)
     
  29. Offline

    Windwaker

    Love the update :)
     
  30. Offline

    taisha2640

    I edited the config file and created a "nuke" spell, but once I did and put it into my plugins folder, the server stopped loading the mod completely, even when I reinstall the mod it won't work anymore. I didn't change the bukkit version or anything else. Help?
     
  31. Offline

    NEO

    @nisovin

    When setting the nubmer of uses for a spellbook it doesnt seem to work. Different players can keep learning the spell, like the uses option didnt apply.

    No errors. This is on CB 766 ,ive also tried it on 803. Using MS 0.3
     

Share This Page