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

    GarretSidzaka

    is there any way to make this wonderful plugin compatible with heroes's special damage system?
     
  3. Offline

    victem41

    how do you install it?
     
  4. Offline

    blacknedvertigo

    2 Questions:
    1) I do /cast geyser and it say "no target..." why? my friend is on my front...
    2) Can i defaut a bind key's to itens?
     
  5. Offline

    GarretSidzaka

    you know i notcied that if you make magic spells compatible with heroes, they put the name and link to your mod on their main page....
     
  6. Offline

    shanko

    quick question if anyone can answer it, can I bind a spell to multiple items? If so how do i format it
     
  7. Offline

    Ziden

    Hey, hoe does mana regen works ?
    Players are telling me mana aint regenerating... is that correct ? Its correctly set to regenerate every 5 ticks in config by 5. In my other 'fun' server mana regen works w/ same configuration, maybe a plugin conflict ?

    I also wonder how mana potions work, i could use em. Is there a command to regen mana ? Im using UltraItems and i was thinkin on adding a custom item a Mana Potion, but i would need a command to regen mana to be used by the player when he drinks.

    Thanx for your attention ! Awesome Plugin , using it for some time now.
     
  8. Offline

    Busta_The_Mack

    For the summon minion spell is there anyway to do cave spiders yet?
     
  9. Offline

    nisovin

    1) You probably need to set target-players to true.
    2) Not sure what you're asking here.
    No.
    Mana regen should be working. You just add another item to the mana potion list to create a new one, you just need the item id (and data value if needed).
    You should be able to use cave_spider.
     
  10. Offline

    Busta_The_Mack

    Yeah, tried that. No go. Thank you for getting back to me though.
     
  11. Offline

    nisovin

    CaveSpider should work.
     
  12. Offline

    Busta_The_Mack

    I will try again, just like you posted it. I tried Cave_spider and Cave_spider
     
  13. Offline

    Rohanivey

    Does anyone know the item ID I need to use in order to get an economy plugin to recognize an individual tomb or scroll? I tried 339, 339:-1, etc. No dice. I'm using Chest Shop with iConomy if that matters, all latest builds.

    An OUTSTANDING plugin, btw.
     
  14. Offline

    Busta_The_Mack

    Ok, I have been playing with the minion spell and cant get it to summon cave spiders, does anyone know how?
     
  15. Offline

    nisovin

    CaveSpider works, I tested it myself.
     
  16. Offline

    shanko

    sometimes itll spit out an error if you use /cast reload, just /cast reload until it doesnt give you an error about "ticks" and mana regen will work
     
  17. Offline

    nisovin

    If you get this error I'd love to see it.
     
  18. Offline

    shanko

    Code:
    07.11 22:38:22 [Server] INFO MagicSpells config reloaded.
    07.11 22:38:22 [Server] INFO MagicSpells v1.3.2 loaded!
    07.11 22:38:22 [Server] SEVERE     at java.util.TimerThread.run(Timer.java:505)
    07.11 22:38:22 [Server] SEVERE     at java.util.TimerThread.mainLoop(Timer.java:555)
    07.11 22:38:22 [Server] SEVERE     at com.nisovin.magicspells.ManaBarManager$ManaBarRegenerator.run(ManaBarManager.java:95)
    07.11 22:38:22 [Server] SEVERE     at java.util.HashMap$KeyIterator.next(HashMap.java:841)
    07.11 22:38:22 [Server] SEVERE     at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
    07.11 22:38:22 [Server] SEVERE java.util.ConcurrentModificationException
    07.11 22:38:22 [Server] SEVERE Exception in thread "Timer-1"
    07.11 22:38:08 [Server] INFO Expected -247.69999998807907, 34.00880051840437, -536.7326311532469
    07.11 22:38:08 [Server] INFO Got position -247.69999998807907, 34.00880051840437, -536.4326311532469
    Not a big deal since another /cast reload will fix it


    edit:
    also theortically, for external spells, if I were to give somebody a "temporary permission" they would have that permission for the duration of the first command executed and the "delayed" command executed correct? So theortically I could make a buff spell that grants a permissions temporarily right? Like a plugin that gives TNT arrows the spell would temporarily give the tntarrow.use permission for that duration?
     
  19. Offline

    nisovin

    No, the permission node is only granted for about 1/4 of a second. For the delayed commands, it's granted a second time for 1/4 of a second.
     
  20. Offline

    Ziden

    Ok just got it what were happening. In no-magic zones wg regions, mana doesnt regen, is that correct ?

    I got how mana potions work. Would it be simple for me to implement a custom command to increment mana by 5 for example in another plugin ?

    Thanx for your attention and for the good work !
     
  21. Offline

    blacknedvertigo

    Can i change the wall of brick's for wall of stone?
     
  22. Offline

    nisovin

    No-magic zones should not affect mana regen. Still not sure what you mean about mana potions. You shouldn't need a special command, since the mana potion system will handle adding the mana.

    Change wall-type to 1.

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

    blacknedvertigo

    Tks^^
    __
    And how can i make on "Carpet" something like:
    "The time is over... you have 10 sec"
    "The time is over... you have 5 sec"
    ... "You are no longer walking on air."
    and the haste dont have a thing to you click and you stop haste.
    (like /haste "You gain unnatural speed!" "You stop gain unnatural speed!)
    sry for bad english
     
  24. Offline

    Ziden

    its cause i want to make a spout item as a mana potion. I can run a command once is consumed ;p
     
  25. Offline

    nisovin

    Can't you just add it to the config file? It still uses item id and data value, right?
     
  26. Offline

    wooden_dinosaur

    I just had to say, Thank You Nisovin. Literally 90% of the time I research something in the forums, I see you have posted helpful response to So many others. In addition to help in this forum, you have helped me learn some plugin development thru reading your code and your posts across the boards. Again, Thank You!
     
  27. Offline

    undeadmach1ne

    i completely agree with wooden_dinosaur. ^
     
  28. Offline

    Ziden

    cant use a custom item id :(

    at least, not yet able to

    would it be easy to hook up a method to give a player X mana ?

    thanx alot for your time !

    []´s Ziden
     
  29. Offline

    shanko

    people should post some of their spell creations :], heres my newest one

    Code:
        shadowstep:
            name: shadowstep
            description: step shadow
            cast-item: 279
            cooldown: 14
            can-cast-by-command: true
            can-cast-with-item: true
            command-to-execute:
                - "cast mark"
                - "cast blink"
            command-to-execute-later: [cast return]
            command-delay: 35
            command-to-block:
                - ""
            temporary-permissions: []
            require-player-target: false
            obey-los: true
            range: 25
            cost:
                - mana 60
            str-cost: 60 mana
            str-cast-self: You step into the shadows!
            str-cant-use-command: "&4You don't have permission to do that."
    return is just a spell copy of recall that uses no mana, so this teleports a player toward whatever hes pointing at, then brings him back to where he was before the teleport, i call it "shadow step" :D

    question: can the minion spell summon already tamed wolves?

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

    Zenit55

    awesome :)
     
  31. Offline

    dockozel

    I am trying to make and cast external spells. I am using bukkit permissions 1.1. When I try to cast an external spell, typing "/c external -<spellname>" It says I do not know a spell by that name. Am I getting the command wrong? Also, could someone pastebin an actual working config file with external spells so I can see exactly how they must be written?
     

Share This Page