Harry Potter Magic Plugin

Discussion in 'Archived: Plugin Requests' started by xchilly38x, Apr 6, 2012.

  1. Offline

    Iron_Crystal

    Not sure. I just finished implementing the mana system.

    There is a configurable initial amount, configurable amount you gain, and a configurable time (ie how often you receive mana)

    Pretty much all that is left is finishing the spells.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  2. Offline

    TheFluffey

    Wow, you are amazing.
    Also, can you make it (In a later update, not necessary for release) so that bread, and all other foods when eaten give a configurable amout of mana? and sleeping restores mana fully? Thanks.
     
  3. Offline

    Mig_B

    Iron_Crystal Is it possible for you to give me the permission nodes my players are not allowed to use spells :S
     
  4. Offline

    Iron_Crystal

    The permissions are

    HarryPotter.Accio

    All the permissions are HarryPotter. + the name of the spell with the first letter capitalized

    The exceptions are the multi-word spells. For example

    HarryPotter.DisillusionmentCharm

    I will be able to do that. Like you said, I think I should finish the other spells first.

    Also, Incendio is done/

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  5. Offline

    TheFluffey

    :D awesome man, you are literally a legend.
     
  6. Offline

    Mig_B

    Iron_Crystal So if I give them the Accio permissions they will be able to type /spells ?
     
  7. Offline

    Iron_Crystal

    Well, the way /spells works is that it checks if they have any permissions, and if they do, then it sets them to using that spell, so yes, if you give them the permission for a spell, then they will be able to use it.
     
  8. Offline

    TheFluffey

    Sounds awesome, thanks for clarifying that.
     
  9. Offline

    Iron_Crystal

    If you want to give certain people spells, then you can use the command:

    /teach <player> <spell>
     
  10. Offline

    Mig_B

    Iron_Crystal so did you work on more spells can you list me the ones that are finished since the last update?
     
  11. Offline

    Iron_Crystal

    Well, since the last update, I finished Incendio, but I have been working on some of the harder spells, like Homenum Revelio, and currently I am working on Flame Freezing Charm
     
  12. Offline

    TheFluffey

    Sounds awesome, take your time. I am sure you have already done so much more than necessary, so much in so little time :D
     
  13. Offline

    Iron_Crystal

    Hey all.

    In regards to increasing the dueling range of some spells, I found a way to do it, but I wanted to know your thoughts.

    What I did was make a for loop for the blocks in your line of site for a configurable distance. Then I said to get the entities in your line of sight and kill them

    The backside is, is that is gets ALL the entities in your line of sight from a configurable range and kills them. Is this fine, or should I find a way to make it only kill one?
     
  14. Offline

    Mig_B

    Iron_Crystal
    Try making only one but if you can't it will be fine with me to kill them ALL. though could you add so when pvp is off you can still hit the target with your spells?
     
  15. Offline

    Iron_Crystal

    Oh yeah. The way I did it does not require you to hit the player, so it doesn't matter if PVP is on or not

    I actually just thought of a way to only kill one, but let me try it out first. I plan on giving you guys another test update today.
     
  16. Offline

    TheFluffey

    I think that is fine, I know spells technically don't hit two people at once, but hell what does it matter? it is extremely hard to code anyways, that is absolutely fine.

    Also, it does matter. PVP will still be blocked even if it is not physical contact as the game knows that you dealt the damage. No combat spells will work with pvp off. USE WORLDGUARD. It is so easy, why should he bog down his plugin when you can use another one that is MEANT for this kind of thing.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  17. Offline

    Iron_Crystal

    [quote uid=90581069 name="TheFluffey" post=1079920]snip![/quote]

    [quote uid=90631162 name="Mig_B" post=1078709]snip![/quote]

    [quote uid=90663113 name="xchilly38x" post=1078078]snip![/quote]

    Hey All!

    Heres another update:

    New Things:

    Mana System! You can edit its initial amount, rate, how often players receive mana, and the max mana limit

    Range! Now all dueling spells that I have finished have a configurable range!

    Working Spells:

    Accio (not classic)
    Aguamenti
    Alohomora (new!)
    AvadaKadavra (now with range!)
    Bubble Head Charm
    Calloportus (new!)
    Crucio (now with range!)
    Disillusionment Charm
    Episkey
    Expelliarmus (now with range!)
    Expulso
    Finite Incantatem (new!, i think....)
    Flame Freezing Charm (new!)
    Homenum Revelio (new! with range!)
    Incendio
    Langlock (new! with range!)
    Lumos
    Nox (new!)
    Obscuro (new! with range!)
    Stupefy (new! with range!)
    Sectumsempra (now with range!)

    Please tell me if anything is not working.

    For incendio, for some reason I can only set fire on vertical surfaces, please tell me if this is doing this for you too.

    Download <Edit by Moderator: Redacted mediafire url>
     
    Last edited by a moderator: Nov 11, 2016
  18. Offline

    TheFluffey

    [quote uid=90620163 name="Iron_Crystal" post=1083939]Hey All!

    Heres another update:

    New Things:

    Mana System! You can edit its initial amount, rate, how often players receive mana, and the max mana limit

    Range! Now all dueling spells that I have finished have a configurable range!

    Working Spells:

    Accio (not classic)
    Aguamenti
    Alohomora (new!)
    AvadaKadavra (now with range!)
    Bubble Head Charm
    Calloportus (new!)
    Crucio (now with range!)
    Disillusionment Charm
    Episkey
    Expelliarmus (now with range!)
    Expulso
    Finite Incantatem (new!, i think....)
    Flame Freezing Charm (new!)
    Homenum Revelio (new! with range!)
    Incendio
    Langlock (new! with range!)
    Lumos
    Nox (new!)
    Obscuro (new! with range!)
    Stupefy (new! with range!)
    Sectumsempra (now with range!)

    Please tell me if anything is not working.

    For incendio, for some reason I can only set fire on vertical surfaces, please tell me if this is doing this for you too.

    Download <Edit by Moderator: Redacted mediafire url>
    Testing now with 2 accounts, will be able to report fully on all spells now.

    [quote uid=90620163 name="Iron_Crystal" post=1083939]Hey All!

    Heres another update:

    New Things:

    Mana System! You can edit its initial amount, rate, how often players receive mana, and the max mana limit

    Range! Now all dueling spells that I have finished have a configurable range!

    Working Spells:

    Accio (not classic)
    Aguamenti
    Alohomora (new!)
    AvadaKadavra (now with range!)
    Bubble Head Charm
    Calloportus (new!)
    Crucio (now with range!)
    Disillusionment Charm
    Episkey
    Expelliarmus (now with range!)
    Expulso
    Finite Incantatem (new!, i think....)
    Flame Freezing Charm (new!)
    Homenum Revelio (new! with range!)
    Incendio
    Langlock (new! with range!)
    Lumos
    Nox (new!)
    Obscuro (new! with range!)
    Stupefy (new! with range!)
    Sectumsempra (now with range!)

    Please tell me if anything is not working.

    For incendio, for some reason I can only set fire on vertical surfaces, please tell me if this is doing this for you too.

    Download <Edit by Moderator: Redacted mediafire url>
    ERROR:

    http://pastebin.com/HDnNCMec

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Nov 11, 2016
  19. Offline

    Iron_Crystal

    Oh, I forgot to tell you. The first time you start up there will be an error, because there isn't a mana file. Once you log into the server, it will create the mana file and it will never have the error again.
     
  20. Offline

    TheFluffey

    Wow I am dumb, testing now :D
     
  21. Offline

    Iron_Crystal

    Also, I forgot to put it in my above post, and I stated this earlier, but use /mana to see how much mana you have

    I will say that I found it quite fun to spawn a bunch of sheep, and then fly up high into the air, and use Avada Kadavra to pick them off one by one. :D

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 25, 2016
  22. Offline

    1cec0ld

    Dark Lord in his younger years^
     
    Iron_Crystal likes this.
  23. Offline

    TheFluffey

    [quote uid=90620163 name="Iron_Crystal" post=1083939]Hey All!

    Heres another update:

    New Things:

    Mana System! You can edit its initial amount, rate, how often players receive mana, and the max mana limit

    Range! Now all dueling spells that I have finished have a configurable range!

    Working Spells:

    Accio (not classic)
    Aguamenti
    Alohomora (new!)
    AvadaKadavra (now with range!)
    Bubble Head Charm
    Calloportus (new!)
    Crucio (now with range!)
    Disillusionment Charm
    Episkey
    Expelliarmus (now with range!)
    Expulso
    Finite Incantatem (new!, i think....)
    Flame Freezing Charm (new!)
    Homenum Revelio (new! with range!)
    Incendio
    Langlock (new! with range!)
    Lumos
    Nox (new!)
    Obscuro (new! with range!)
    Stupefy (new! with range!)
    Sectumsempra (now with range!)

    Please tell me if anything is not working.

    For incendio, for some reason I can only set fire on vertical surfaces, please tell me if this is doing this for you too.

    Download <Edit by Moderator: Redacted mediafire url>
    Precursor: Configuration system and mana system work perfectly.

    REPORT:
    Accio works, try to make it takes items out of a chest and to you.
    Aguamenti works
    Alohomora and Coloportus are reverse, you have it so that alohomora closes iron doors and coloportus opens them. It should be the other way around, alohomora opens and coloportus closes.
    AvadaKadavra works
    Bubble Head charm works
    Crucio Doesn't seem to work.
    Disillusionment charm works, but also makes you invincible... Make the invincibility part toggle-able if possible, i may not like it.
    Episkey works
    Expelliarmus Doesn't seem to work
    Expluso works
    Finite Incantatem works
    Flame Freezing Charm works perfectly
    Homenium Revelio works perfectly
    Incendio Worked perfectly
    Langlock Won't seem to cast, no notify message and no effect.
    Lumos works, try to remove that last torch, it is annoying :D
    Nox works, try to make it delete that last torch, it is annoying :D
    Obscuro Says on cast 'You have cast crucio!' and does nothing.
    Stupefy and sectumsempra Don't cast.
     
    Last edited by a moderator: Nov 11, 2016
  24. Offline

    Iron_Crystal

    I'll take a look into them

    What doesn't work about Expelliarmus? Does it not drop the item? Is it not flinging it?

    For Disillusionment, I don't think I'll be able to fix this, because it makes you totally invisible. ie, its like your not even there

    I thought I fixed the torch problem, but I'll take another look.

    I'll have to see what the problem is with the other spells.
     
  25. Offline

    TheFluffey

    Expelliarmus just did nothing for me, it was weird. The player was holding an item, nothing happened.
     
  26. Offline

    Iron_Crystal

    I think I found the problem, but I probably won't get another test out today, because I have to go my baseball game.
     
  27. Offline

    sammetjuhB

    is it also possible to kill and "stun" mob with the wand?
    And I really think you should publidh this on Bukkitdev or something, its pretty good!
     
  28. Offline

    Iron_Crystal

    Its going to be private, sorry, but yes there will be a stun spell
     
  29. Offline

    Mig_B

    Iron_Crystal Just noticed in the config there isnt any broadcast message, like when you cast a spell it broadcast a custom message (w/ color codes) that is editable in a different yml file.
     
  30. Offline

    Iron_Crystal

    Oh, sorry. I keep forgetting that.
     

Share This Page