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

    colony88

    I like this plugin better than other magic plugins :)
     
  3. Ok I added configurable size of the sandfall, but I'm having trouble with scheduling a task to remove the sand after x seconds. I may need help from Nisovin. I'll post my code/error tomorrow and see what he says. Any suggestions for a one word name for Zeus' Wrath? I love that spell but it's impossible to /cast teach or /cast scroll with it cause it's two words...

    You shouldn't have to negate them in other worlds, just only give the magicpsells.cast.* node in the world where you want them to be able to use spells.

    What permissions plugin are you using?

    That should be possible by creating several "external command" spells. You would need one spell for each piece of audio, and players who you wish to be able to use these scrolls would need the appropriate permisisons for your audio playback plugin. Here's an example of an external spell I use (until nisovin adds the vanish spell) It uses the VanishNoPickup plugin's /vanish command.


    Code:
     external:
            name: vanish
            enabled: true
            description: Become invisible
            cooldown: 0
            can-cast-by-command: true
            can-cast-with-item: true
            command-to-execute: vanish
            command-to-block: vanish
            cost:
                - mana 10
            str-cost: 10 MP
            str-cast-self: You dissapear!
            str-cant-use-command: &4You don't have permission to do that.
     
  4. Offline

    tacozmeister

    For some reason, I can't create spellbooks or tomes. It keeps telling me I "can't cast that spell right now", even though I know the spells, and the spells that I want to make the tome/spellbook of. That and it says I "must be holding a book" even though I am. I have Spout and also have Bookworm, any help here???
     
  5. Do you h
    You probably have require-teach-perm enabled, and don't have the teach permissions for those spells.

    Code:
        tome:[/COLOR][/FONT][/SIZE]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        name: tome[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        enabled: false[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        description: Create a tome that teaches a spell.[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        cancel-read-on-learn: true[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        allow-overwrite: false[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        max-uses: -1[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        default-uses: -1[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]       [B] require-teach-perm: true[/B][/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        str-usage: "Usage: While holding a book, /cast tome <spell>"[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        str-no-spell: You do not know a spell with that name.[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        str-cant-teach: You cannot create a tome with that spell.[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        str-no-book: You must be holding a book.[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        str-already-has-spell: That book already contains a spell.[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        str-already-known: You already know the %s spell.[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        str-cant-learn: You cannot learn the spell in this tome.[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        str-learned: You have learned the %s spell.[/FONT][/SIZE][/COLOR]
    [COLOR=#000000][SIZE=3][FONT=Times New Roman]        str-cast-self: You have created a spell tome.
    [/CODE][/COLOR][/FONT][/SIZE]
     
  6. Offline

    tacozmeister

    I tried as op, AND I have permission. And I relogged as op, because apparently permissions don't reset 'til you relog for this mod. I also can't find "reach" in the config file at all, so it must be false. If you want, here's my config file. http://pastebin.com/bqGcQRbf
     
  7. Oops. I meant require-teach-perm. set that to false in the config and see if it works?
     
  8. Offline

    tacozmeister

    There's no require-teach-perm in the config? I added it under "General", since I'd think you'd put it there with all the other settings, but still get messages. No server errors.

    "You must be holding a book" - tome
    "You can't cast that spell right now" - spellbook
    EDIT: It also won't let me teach players spells, but I can't say exactly the message. It seems like transfer of spell data in general is weird.
     
  9. Offline

    Agmanotis

    For Zeus' Wrath, how about Maelstrom?

    EDIT - Thinking about it...maelstrom is more appropriate for a water type spell...
     
  10. s
    sorry if I was unclear, the require-teach-perm: false option is under both the tome and scroll spells. Take a loot at the default config.
     
  11. Offline

    tacozmeister

    Changed the config, no progress. Same thing. I dunno what the problem could be.
    EDIT: Remember, this doesn't work scrolls OR even the /teach command. I'm very, very confused why. Spells work fine, when granted, however.
     
  12. Offline

    nisovin

    For tome you must be holding a book that has contents in it. It can't be a blank book. For spellbook, it looks like you don't have the magicspells.cast.spellbook permission.
     
  13. Offline

    40540057

    REQUEST FOR @nisovin

    Any way to make the plugin smaller? It's almost 1MB now, seems outrageous for a plugin. This is like double the size of worldedit. Why did it more than double in size since last version? This is not a good thing, if it keeps getting bigger no one will be able to use it soon.
     
  14. Offline

    nisovin

    I've been bundling the source and javadocs into the Jar file (partly by accident). I suppose I could stop doing that, but I don't really see what the problem is. Why would a bigger file size make it so people won't be able to use it?
     
  15. Offline

    tacozmeister

    Got tomes working! Hopefully this works well with PChest, for what I need. So thank you, but spellbooks still don't work. Or scrolls. Or the /teach command. I dunno why though. I have permission to magicspells.*, I am op, and I am aiming at a bookcase. So weird.
     
  16. Offline

    nisovin

    What permissions plugin are you using?
     
  17. Offline

    ryanjjjj

    im aware of the data value, however my when the book is placed in the store and is attempted to be purchased it will send me the message that the store is out of stock. however with a none edited book that is still stack-able it has no issue. my thoughts where that bookworm changing the tomb so it is none stack able and edited in some way that causes incompatibility. i actually really like the idea previously suggested so i have decided i will do a spell book shelf and just use a separate plugin that allows payment-per-entry. that way the spell could be charged at the price i choose and i don't have to reset any admin balances.
     
  18. Offline

    King_Koopa

    I have a spell suggestion. Can you create a spell that rains TNT and or lava down on enemies? Also a snow/ice based spell would be cool to see. Maybe encasing an enemy in a prison of ice that has a tnt in it so it explodes.

    This is one of my favorite plugins, keep up the awesome work!

    EDIT: Forgot to add if it was possible to have a spell that spawns webs or that slow sand to snare enemies. That would be great to have.
     
  19. Offline

    Kashius1138

    Hello - I'm loving this plugin so far!

    Questions:

    - Is there a way to set a spell to give the user Mana back? I tried setting a negative value for Mana (Mana -10) and that of course failed miserably. I'm trying to create a necro concept that sacrifices HP for Mana.

    - Is it possible to add a velocity parameter to say, the Pain spell? I'd like a spell that causes damage and horizontal velocity. Basically Geyser on a horizontal plane - my Force Mage concept NEEDS this :) It would also be useful if, like Forcepush, you could set the velocity negative to gain a pulling effect.

    - Forcepush has a vertical velocity parameter but I can't seem to get the spell to simply launch everything around me skyward like an AoE Geyser. SOMETIMES things get launched so I'm wondering if this parameter only activates on a % chance and if so - how do you adjust that?

    - What does the damage value for Lightning do? I set it to 1000 for Ss and Gs and did not achieve the desired effect (I think I may have added this to the config). Also, can the damage from fire ticks be adjusted? Frequency? This would allow for more simple fire spells that do set damage instead of DoT which seems to prevent other damage sources.

    - How much damage does Explosion do and can this be adjusted along with the radius? Also - can the terrain damage be negated (Mod Advanced Mobs has Giants who toss TNT that does not damage terrain without the use of another mod) while still keeping/increasing the radius?

    - Minions are kinda...not useful. I have yet to see them attack something I do. Is there something I need to do? Perhaps a 'Sic' type spell that causes all creatures that are friendly to/controlled by you to attack a target? Would be sweet for naturally tamed wolves as well.

    - Can we get a Cobweb spell that creates a ring of web around the target for a configurable time? Or perhaps a spell that creates a 3x3 soulsand patch underneath the target? Both would be ideal ;)

    - Can we cycle backwards through spells? Please?

    - Finally, is it possible to just allow more of the parameters to be used with spells for which they were not intended? For instance, all instant spells that target entities able to use velocity, damage, etc...


    Didn't realize I had so many questions, sorry. Love the plugin though. Hope this gets updated often!

    -Kash
     
  20. Offline

    jlu

    When i make my copy of minion, can i add number of minions summoned? Like:

    Summon2:
    mob-chance:
    2 zombie 75
    3 derp 25

    75% to have 2 zombie
    25% to get 3 derp


    Oh, and can i:

    geyser=hydrocanon=magicarp

    (3 powers linked)
     
  21. Offline

    tacozmeister

    Permissions 3.x. The default stuff.
     
  22. Offline

    Po1ntBlank

    How can I make it so one rank can cast any spell without learning it? Thanks :)

    Edit: Derp =/ Misread the .grant node
     
  23. Offline

    t_one21

    Just need to say I love this plugin and the effort youve put into this.
    Could you just uppdate the original post regarding spellcopies and where to place that line ;)
    I think that could save a lot of time reading old bugreports/posts for an answer.

    EDIT: still havenĀ“t found any solution... doesnt matter how I write up spellcopies and reload everything; I still doesnt know the spell as an OP
     
  24. Have you been working on any new spells? :D
     
  25. Offline

    Imm0rt41

    i think that you should join up with the creator of mcmmo to work and add spells into mcmmo as another leveling thing.
     
    sleite and Kashius1138 like this.
  26. Offline

    alexfire

    I aplogize if this has already been sujested.... However I had an idea for a spell and one I was hoping to use for one of the races in my rpg server... Do you think adding invulnerability to fire damage would be possible? as a buff with configurable times (I am hoping to have a race who can breathe underwater which your plugin can do for me and another race that is immune to fire damage.) Thanks for reading this and thank you for your hard work!
     
  27. Offline

    Ikarirain

    @alexfire This is already possible I believe. Copy the configuration for the Invulnerable spell and paste it as a new spell, rename it (I chose to rename mine Fireskin) and simply remove the invulnerability to everything that is not fire related. Then follow the guide under his "Configuration: Spell Copies" spoiler, and you're good to go.

    @nisovin Would it be possible to save scrolls as a set ID, so that freshly created scrolls can be sold in shops? I know it would probably be a hassle to work around the current saving system, but it would allow groups of mages to open stores that specialize in selling limited-use scrolls.
     
  28. Offline

    alexfire

    ah I suppose that would work hehe thanks now i just need to figure out why permissions is broken and the auther of the plugin is MIA... /sigh
     
  29. Offline

    alfskan

    Im the op and admin.

    But I cant use /cast scroll-base command.

    It says always I dont know that spell.

    help me?
     
  30. Offline

    Mordaith

    Same Problem. Was going to post :3 Thanks @alfskan for beating me to the punch.
     
  31. Offline

    nisovin

    There's a space after scroll.
    /cast scroll -base ...
     

Share This Page