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

    NeonJ

    You know what would be REALLY awesome with this plugin?
    A [completely optional] SpoutCraft HUD which pretty much is a mana meter on the lower-right [configurable?] corner of the screen. Having the mana meter in the corner would make this so much more awesome on my Spout server. =D

    This is quite possibly the most used plugin on my server, due to the fact that people choose specific "mage classes" on my server and are given certain spells to do with their class. [Eg: White Mages get healing, Red Mages get movement, Black Mages get offence] (And I've even got it so people mix two! So White/Red or Black/Black or Red/Black... possibilities are twelve endless!)
     
  3. Offline

    Cirmius

    Ey why players don't lost Mana Points?!
     
  4. Offline

    Rurikar22

    Again I just have to see that this is an absolutely amazing addon. The flexibility is just amazing. Couple spells that would go along way.

    Silence that prevents other players from casting.
    Disable that prevents certain spells from being casted.
    Minimum Range. For spells that won't work if you are too close to target.
    Require target for multi cast spells. Right now the spell reguardless if you have a target.
    Tidal wave. Wall of glass with a wall of water in front of it then disappears. Would create the effect that you are knocking targets back with water.
    Damage over time spell. Right now fire works.
    Remove fire spell.
    Random clause for external spells or varible damage.
    Bonus damage based on range.
    Mana regen buff for other players, heal over time spells for you or others.
    Shared Cooldowns, Spells that reset cooldowns or lower cooldowns.
    Spell Steal that creates a scroll based on the targets last used spell.


    I got some awesome stuff can't wait to show you, working on the permissions for my users as I don't exactly want to give them certain commands so toying with that. Awesome mod, absolutely made my week here messing around with it and my players are already having a blast with what they currently have.
     
  5. Offline

    Phat32

    Can you make a scroll that will teach a player a / multiple spells like a player class?
     
  6. Offline

    Cirmius

    Why I've all spells (I'am OP), although I set "false" to "Ops-have-all-spells"?! This is my config.yml (In .jar and in magicspells folder). I skip spells, of course.
    Show Spoiler
     
  7. Offline

    LtMattmoo

    Can't say for certain but I had this issue and resolved it by adding this node to my Default permissions group:
    Code:
    magicspells.grant.*: false
    All of my other groups have the Default group as an inheritance, including the Admin group, so that node specifies that none of my groups have any spells unless specified, overwriting OP permissions.

    Now my own problem:
    When I start up my server I get the message, "[SEVERE] MagicSpells: Failed to create spell copy: shield=invulnerability".
    I have many other spell copies which seem to be working fine. Any ideas why invulnerability is kicking up a stink?

    'Nother problem:
    I've been using health as the mana source for all the spells (love that feature) but this seems to be disabling the Leap spell somewhat. the spell activates perfectly but when the player flinches from the health cost his forward momentum is lost so Leap becomes a high-jump instead of a long-jump. Any ideas?
     
  8. Offline

    Rurikar22

    Double check the syntax on the spell? Sometimes I was missing a : on spells and they would throw me that error when copying and pasting to make spells.
     
  9. Offline

    LtMattmoo

    Syntax looks solid..
    Invulnerablilty (under "spells:") -
    Code:
        invulnerability:
            enabled: true
            name: invulnerability
            description: Makes you invulnerable to damage.
            cast-item: 280
            damage-causes:
                - block explosion
                - contact
                - drowning
                - entity attack
                - entity explosion
                - fall
                - fire
                - fire tick
                - lava
                - lightning
                - suffocation
            duration: 60
            cost:
                - 331 5
            use-cost:
                - 331 1
            use-cost-interval: 5
            str-cost: 5 redstone dust, plus 1 occasionally
            str-cast-self: You feel your skin harden.
            str-cast-others: "%a's skin hardens."
            str-fade: You feel your skin return to normal.
    Shield (also under "spells:") -
    Code:
        shield:
            enabled: true
            name: robur
            description: Summon a protective aura which wards off damage.
            cast-item:
            damage-causes:
                - block explosion
                - contact
                - entity attack
                - entity explosion
                - fall
                - fire
                - fire tick
                - lava
                - lightning
            duration: 30
            cooldown: 50
            cost:
                - heath 12
            str-cost: 60%
            str-cast-self: You summon a protective aura around yourself.
            str-cast-others: "%a begins to glow with a protective aura."
            str-fade: The aura fades and you return to normal.
            str-fade-others: "%a's protective aura fades."
    The spellcopy -
    Code:
    spellcopies:
        - shield=invulnerability
    Any other suggestions? OR maybe someone can see something wrong with the above configuration?
     
  10. Offline

    nhutchen

    Can someone help? I found a program that lets me look at the config file, but sadly, not edit it. :( I need to figure out how to edit it.

    EDIT: ignore that part at the top please, i figured it out :)

    But, how do i set it so all the spells cost nothing at all?

    EDIT #2: i can't find any tutorial vids on how to install this mod, and its my 1st time installing any plugins.
     
  11. Offline

    Werzieq

    Leap jumps forward according to how much mana you have
     
  12. Offline

    nisovin

    @LtMattmoo You spelled health wrong.

    Just modify the config file with any text editor.
     
  13. Offline

    LtMattmoo

    Ahahahaha. So I did. Cheers mate.
     
  14. Offline

    nisovin

    The problem is the spell is being used when you try to create the store. You'll need to find a way around this. You could try temporarily changing the scroll options so they don't cast on right click.
    Casting with a wand does not send a text command, so no.
    Hard to say what's wrong without seeing a config file. This sounds like a config issue to me.
    Cast items can't specify data values. This is really an oversight on my part, I'll get around to fixing it eventually.
    If you expect answers, put more effort into your questions.
    This will be in the next version (1.1).
     
  15. Offline

    jazzman170

    You posted:
    nisonvin:
    The problem is the spell is being used when you try to create the store. You'll need to find a way around this. You could try temporarily changing the scroll options so they don't cast on right click.


    and i just changed it from right click to left click to cast the scrolls and its still doing the same thing. I make a scroll of leap, i put it in showcase with infinite amount, i buy 1, use it one time, now it has 19 uses left. Throw it away, buy another, and the new one has 19 uses left as well when it should have been 20 uses. Its just cloning the original and updating it with the shop and not giving me a brand new scroll with 20 uses :(
     
  16. Offline

    IronPython

    i also have this problem, even when i have Ops-have-all-spells: false i still get all spells i dont really like this mostly because i like having to get the spells on my own as well as when i use any item that is also a wand it will tell me i dont have what is needed to cast the spell or it will use the spell (stick for e.g. i use it for another plugin but with all spells in use it also cast spells) i dont want to take OP off because then i can no longer use /cast reload and so im kinda stuck here
     
  17. Offline

    meizme

    I have been trying to get magic spells per class permissions to work for about 2 weeks and its become too frustrating to do alone. will you please look over my setup and help me figure out what I'm doing wrong please. I switched over from PermissionsEX to Permission Bukkit just for per class permissions. I'm Running Magicspells 1.1(beta) using 94.1 mobarena, and permissions bukkit 1.2k​
    If i teach someone the spell before the arena match they can use it in the arena but then they don't forget the spell when the fights over, which they should. the whole point is i want people to only have spells in the arenas.

    My Mobarena Config.yml
    My Magicspells Config.yml
    My PermissionsBukkit Config.yml
     
  18. Offline

    nisovin

    I explained this to you in the ticket you submitted. The grant permission does not work this way. A grant permission will permanently teach a player a spell.
     
  19. Offline

    Imm0rt41

    the permissions thing isnt working. people are able to cast spells in all worlds, even though i only gave them the permissions to cast the spells in one world. i have checked my permissiosn configuration and it is like that, so i dont know why its doing that.
     
  20. Offline

    nisovin

    I have some advice for you. Never go to a plugin thread and just post "it isn't working." That never helps. Ever. You didn't provide any useful information for me to help you. Read the FAQ, then get back to me.

    Are you using base scrolls or normal scrolls? Only base scrolls will work the way you want.

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

    Rurikar22

    For str-no-target: and other messaged. Is there a way to have it print NO message?
     
  22. Offline

    Imm0rt41

    i didnt just post "it isnt working". i explained what the problem is, and if i had any errors in my console with it that i had seen, i would have posted them.
     
  23. Offline

    Rurikar22

    The permissions work fine my friend, you are just not using them correctly. I have permissions with half a dozen different user types over 3 worlds. If you wanted help, the best way to get it is to post your permissions file for us to see whats wrong.
     
  24. Offline

    Imm0rt41

    i have been running a server for two months, i am not doing permissions wrong, i have checked the permissions for the default group in the main world, which is the only group apart from admins, which i am in and i have all perms, and there are NO magicspells nodes in the permissions for that group. however, i will still post it to show you.

    default: Default
    players:
    noriclol:
    - Default
    jx234567890:
    - Default
    mattmac77:
    - Default
    yomama775:
    - Default
    Josh44455:
    - Default
    PokerPunk64:
    - Default
    TehPie:
    - Default
    Herobrine:
    - Default
    zamorak789:
    - Default
    abducahi:
    - Default
    mattbrvc:
    - Default
    Eda190:
    - Default
    Thezerg505000:
    - Default
    jimmy33663:
    - Default
    rrey:
    - Default
    LOK_KING:
    - Default
    juantras:
    - Default
    neilmegamind:
    - Default
    iminestuff27:
    - Default
    buddybk:
    - Default
    ngkking:
    - Default
    1220legoboy:
    - Default
    NinjaPorkers:
    - Default
    alecqd:
    - Default
    chinalake2444:
    - Default
    ShyGuide:
    - Default
    davidpox:
    - Default
    biopuppy:
    - Default
    kolon97:
    - Default
    Herpina:
    - Moderator
    circadian:
    - Default
    2001knapp:
    - Default
    TheObliderator:
    - Default
    GROOGLE13:
    - Default
    aleclash:
    - Default
    eLp4y4z0r:
    - Default
    djspartan117:
    - Default
    wolfang272:
    - Default
    Skullcrack3r:
    - Default
    MrKie1994:
    - Default
    Phyndah:
    - Default
    louispotter5:
    - Default
    theevilrat:
    - Default
    shibzcheese:
    - Default
    Avatar46:
    - Default
    COMPUTA_MASTA:
    - Default
    Scendor:
    - Default
    TheRedstoneMiner:
    - Default
    andretheman:
    - Default
    marraffa234:
    - Default
    Blast2TheGhast:
    - Default
    jbobobar:
    - Default
    TinyLittleRobit:
    - Default
    The_Hunter58:
    - Default
    Alextremeo:
    - Default
    gymman:
    - Default
    slakterpedro:
    - Default
    shadowstar09:
    - Default
    AdjacentTangent:
    - Default
    XU96:
    - Default
    je2555:
    - Default
    CraftNinja10:
    - Default
    Pyrossed:
    - Default
    jhm9814:
    - Default
    greea:
    - Default
    redjellybeans:
    - Default
    kyleisbest4:
    - Default
    StoneNaP:
    - Default
    Imm0rt41:
    - Admins
    mtbstuffman:
    - Default
    Ownster66:
    - Default
    IMAGRUMPYTROLL:
    - Default
    LeeML:
    - Default
    fishernick1:
    - Default
    xiansmif:
    - Default
    idontcare762:
    - Default
    koemo3:
    - Default
    Profero:
    - Default
    eemiilyy:
    - Default
    benx1234:
    - Default
    OpShotXNova:
    - Default
    mangomaster09:
    - Default
    FriedJello:
    - Default
    DeltaNinja79:
    - Default
    MacGuiver:
    - Default
    Eiriklol:
    - Default
    coolcat2310:
    - Default
    AdapTCr0wcF:
    - Default
    zaexspin:
    - Default
    SFloyd:
    - Default
    xWiiPPeD:
    - Default
    blanlew:
    - Default
    Swimmdog:
    - Default
    sumdog6969:
    - Default
    HotDawgBob:
    - Default
    TheTBagginGamer:
    - Default
    protonhazard:
    - Default
    FlurrIsunflower:
    - Default
    HyeastanciezPwn:
    - Default
    Gliger14:
    - Default
    Digi_Gin:
    - Default
    mmartin74:
    - Default
    worldpeace2:
    - Default
    NarwhalBanana:
    - Default
    fredzded123:
    - Default
    vikenskolan:
    - Default
    Obsene:
    - Default
    Shaunlad1:
    - Default
    euanbarron:
    - Default
    Wayne118:
    - Default
    bumblemike:
    - Default
    tzimpao:
    - Default
    beard:
    - Default
    tytrack:
    - Default
    derekbaxter:
    - Default
    10se1ucgo:
    - Default
    FuzzyFrog:
    - Default
    Levonski00:
    - default
    cheesentoatyy:
    - default
    darkenvy:
    - Default
    Shonkinator:
    - Default
    groups:
    Default:
    - bpermissions.build
    - nocheat.fakesneak
    - magiccarpet.ml
    - nocheat.bogusitems
    - simplecoloredchat.sign.use
    - myhome.home.*
    - nocheat.speedhack
    - nocheat.flying
    - nocheat.airbuild
    - mobRider.*
    - war.player
    - mywarp.warp.basic.*
    - nocheat.all
    - nocheat.nuke
    - commandbook.give
    - commandbook.spawn
    - lwc.protect
    - nocheat.fastswim
    - war.warp
    - nocheat.moving
    - chaircraft.sit
    - war.build
    - magiccarpet.mc
    - styxspace.teleport.enter
    - styxspace.teleport.exit
    Admins:
    - '*'

    that is the permissions file for my main world, where i DONT want people to use spells, however they are still able to. i am Imm0rt41 in the list of users. this is bpermissions, btw.
     
  25. Offline

    jazzman170

    Ok im still having trouble with this :( sorry to bother u with the same thing but im determined to get this to work haha. heres what i did:

    Created a empty showcase. used: /cast scroll -base leap 10 (do i use this while holding a scroll or does it not matter what im holding?) it says it gave it the id of -5. So now i tried making a new scroll with leap (/c scroll leap 10) and i put it in the shop as infinite, threw away the leftover one in my hand, bought one from showcase, used it once, now has 9 uses left. Threw that away and bought another, and the new one also has 9 uses left :( im confused as to how to activate the base scroll
     
  26. Offline

    IronPython

    just putting an idea in there (because i have not tried this myself) but im guessing you need to make an item with id -5 so insted of saying
    /i paper
    /c scroll leap 10

    you need to say
    /i -5

    that will then give you the scroll that has leap of 10
     
  27. Offline

    jazzman170

    i do /i -5 and it says
    Error: Unknown item name: -5

    also made a new one just in case and its -6, same thing.

    edit: Thanks for the advice tho :D
    Im off to work so i cant test anything for the next 5 or 6 hours :p
     
  28. Offline

    IronPython

    ok so this is what i did (fixed i think) the reason you might have all spells is you got magicspells.grant.* that means you know all spells and any one else in that group as well. so i removed that then did
    /c forget <name> * (that made me forget all spells i got from the grant.*)
    well that also made me forget list, forget, help, and so on because in the config there considered spells.


    so dont forget to give you users at lest these:
    magicspells.grant.list
    magicspells.grant.help

    and your admin:
    magicspells.grant.forget
    magicspells.grant.scroll
    magicspells.grant.spellbook

    that way even when you do the forget all command those always are there so they will not be forgotten also this means as an admin you do not have the right to create a spell of any kind because you dont know all spells only the ones given to you but what i did was set up a god admin and that group knows all spells so i can go there make the scroll/books i need then go back to my normal one and forget all only prob with this is if i learned any spells on my own in my admin group there also forgotten so then i have to relearn it all again.

    not really the best or any way easy fix. but its what you have to do if you wish to not have all spells as an admin. i kinda wish that the teach (or another one like it, like an option "has to know spell to teach: false") lets you create scrolls and books with out actually needing to know the spell. that way you can make scrolls for your users but your not plagued with having every spell in the game (most of which you dont want to use or use with out meaning to like me who hit a friend with a stick and with out meaning to force pushed him off a cliff)
     
  29. Offline

    nisovin

    You still haven't read the FAQ. If you did, you'd know what kind of information to provide (craftbukkit version, magicspells version, permissions plugin, etc). You'd also know not to post an entire permissions config file into the thread.

    Keep in mind that everyone has cast permissions by default. If you don't want them to have the permissions, you need to actively take them away.
     
  30. Offline

    IronPython

    im trying to get it so that i can make a scroll have the chose of being a never ending scroll but when i set it up like this:

    scroll:
    name: scroll
    description: Create a limited use spell scroll.
    cast-for-free: true
    default-uses: 5
    max-uses: -1

    it makes it so any scroll i make has -1 even if i say /c scroll leap 5 it makes it leap -1 not sure if this is just a bug or if you cant make scroll that are /c scroll leap -1 but wanted to let you know
     
  31. Offline

    Imm0rt41

    yea, i didnt know they had it by default, that would have been nice to know and that i can disable it. i dont see anywhere how to take it away.

    im using 1060, version 1.0.4, there is no console errors, im using bpermissions, you saw my perms file. happy now?
     

Share This Page