[INACTIVE][MECH/FUN] Vampire v1.4.1 - Add the horror of vampires to your server [617]

Discussion in 'Inactive/Unsupported Plugins' started by Olof Larsson, Mar 6, 2011.

  1. Offline

    Olof Larsson

    Vampire - Add the horror of vampires to your server :)

    Current version: 1.4.1
    Download: https://github.com/oloflarsson/Vampire/downloads
    Source: https://github.com/oloflarsson/Vampire
    Read the full userguide here: http://mcteam.org/plugins/vampire <--- [cake]

    This plugin add the horror of vampirism to your minecraft server.
    Any player may turn into a vampire if they contract the infection and doesn’t manage (or doesn’t care) to cure themselves in time.

    Turing into a vampire
    To become a vampire you must first contract a certain infection. This infection will make you sicker and sicker until you finally turn into a vampire. If you want to stop the infection you can either eat bread or use a good altar (read more about altars further down).
    There are three ways to contract the infection:
    1. Fight against vampires in close combat. For each attack (from either you or the vampire) there is a 1/30 risk that you will contract the infection.
    2. Use an evil altar. Any player can build such an altar (read more about altars further down).
    3. Ask a server operator to infect you. There is a server command for this.
    After you contract the infection you have one hour (real time not game time) before you turn. This is about 3 minecraft day night cycles.

    Being a vampire
    Vampires…
    • Burn in sunlight.
    • Take no fall damage.
    • Can breath underwater… or rather does not need to breathe at all.
    • Has a reservoir of blood between 0 and 100.
    • Must drink blood from humans or animals to not die from starvation.
    • Can not eat normal food.
    • Regenerates health automatically. (costs blood)
    • Won’t be attacked by monsters unless the vampire attacks first.
    • Can jump and fly using a red rose. (costs blood)
    • Deal more damage in close combat.
    • Take less damage in close combat except for attacks from wooden weapons which hurt them a lot.
    • Occasionally infects others in close combat.
    A vampire is considered to stand in sunlight if it is daytime and the blocks above the vampire is too transparent. So for example a vampire will burn under a clear sky but be safe under a cobblestone roof. If the roof was made of glass the vampire would burn. It is possible for vampires to take cover under trees if they are thick enough. It takes 4 leaf-blocks to block the sun… etc.

    To drink blood a vampire must damage other humans or animals. So if you are a vampire you will find that it is possible to go the vegetarian way… however humans are much more tasty (you get much more blood from them than animals). It is important to keep track of your blood supply. Use the v command every once in a while. If blood is over 50 the regenerate ability will work. You will slowly heal your wounds automatically at the cost of blood. However if you blood is below 50 you are thirsty and will slowly loose health. If blood is below 20 you are very very thirsty and will loose health fast.

    Curing a vampire
    The only way to cure a vampire (except for the admin cheat command) is to use a good altar.

    Altars
    There are two types of altars. Good ones and evil ones. These altars can be built by any player. The evil altar can be used to contract the infection that after a while will turn you into a vampire. The good altar can stop the infection and even cure already turned vampires. The altars are made of one main block and 20 nearby blocks:
    Note how I wrote nearby. To be more precise nearby means within a radius of 7 blocks away from the main block. This means you may design your altar how you like. Put the secondary blocks in any way you think look nice [​IMG]

    To use the altar you right-click on the main block (gold or lapis).

    Commands
    The base chat console command is /v or simply v. This means you don’t need to write the forward slash if you don’t feel like it. [​IMG]

    The base command v can be used by vampires to display their current blood reservoir. There are also the following subcommands for server operators (OP):
    • v infect [playername] *[amount from 0 to 100]
      The player turns into vampire at infection 100. 0 means no infection.
    • v turn [playername]
      Instantly turn a player into a vampire.
    • v cure [playername]
      Instantly cure a player from vampirism.
    • v list
      List all vampires on the server.
    • v load [config|players|all]
      Load data from disk.
    • v save [config|players|all]
      Save data to disk.
    • v time [ticks from 0 to 23999]
      Set the time. 0 means sunrise. 1 ingame hour is 1000 ticks.
    • v version
      Find out which version you are running.
    Installing
    1. Download the latest release: https://github.com/oloflarsson/Vampire/tree/master/releases
    2. Put Vampire.jar in the plugins folder.
    A default config file will be created on the first run. You don’t need to modify it. The default file is good. But if you feel like it you can alter all ingame messages and a lot of the game balance from there.

    Plugin integration: Help and Permissions
    This plugin support the help plugin. Make sure you install that plugin. Otherwise you will have no ingame help menu.

    This plugin supports the permissions plugin. Note that the server operators (OP's) always will have access to all commands.
    To get started fast:
    • Add to the default group:
      -'vampire.default.*'
    • Add to the admin group:
      -'vampire.*'
    These are all permission nodes:
    • vampire.default.command.blood
    • vampire.default.command.version
    • vampire.admin.command.list
    • vampire.admin.command.infect
    • vampire.admin.command.turn
    • vampire.admin.command.cure
    • vampire.admin.command.save
    • vampire.admin.command.load
    • vampire.admin.command.time
    Current ToDo list:
    • Reduce CPU load
    • Create better permission nodes.
    • Raw porkshop should restore some blood for vampires when eaten.
    • Add the option to allow vampires to walk in the sun when using full armor.
    • Add the option to make vampires more vulnerable to fire.
    You tell me! :) or even better help me code it :)

    Changelog:
    Version 1.4.1
    • For CB602 -> CB617 and upwards...
    Version 1.4
    • Better jump and fly ability for vampires :) Now using red rose instead of feather.
    Version 1.3
    • Permissions Plugin Support
    • Help Plugin Support
    Version 1.2
    To update: You should rename config.json to config.json.old. Then start server and stop it. Then paste your custom messages and changes (if you made any) into the new default config.json file.
    • There is now altars that can be built to infect and cure vampires.
    • Some bugfixes.
    Version 1.1
    • Important bugfix. Players did not get infected correctly.
    Version 1.0
    • The first release
    Fork me on github!

    I would be glad to code on this plugin together with you :).
    Please fork me on github and do a pull request. Read more here:
    http://help.github.com/fork-a-repo/
    http://help.github.com/pull-requests/
    There will be cake if you join me in the coding [cake] :)
     
  2. Offline

    Racha

    Dude, this is awesome :D
    Waiting for Permissions :D
    Maybe you can make that vampires jump higher?
     
    fyrus12345 likes this.
  3. Offline

    Dreadreaver

    what do you mean by "smoke effects?"
    and so far it sounds pretty interesting, though its of ZERO use for my near-vanilla server as I REQUIRES commands. If you implement some "natural" ways of turning into a vampire I will glady integrate this onto my server ;)
     
  4. Offline

    Sroxah

    Is there anyway you can make it so you can lie down in beds during the day if you're a vampire? Maybe allow it to slowly recharge blood whenever you lie down? Just a suggestion that I think would make vampires even more unique and interesting.
     
  5. Offline

    lokiman72

    can you maybe make vampires emit a small amount of light? like that of a redstone torch? it would be easier if it would do that if they holding nothing, perhaps..
    --- merged: Mar 7, 2011 12:44 AM ---
    coffins FTW also can you make it so vampires dont gain blood from other vampires?
     
  6. Offline

    Dutchy

    I like the idea. Not sure I would run this on my normal server, but it seems fun for sure.
     
  7. Offline

    crohakon

    Why would vampires emit light? This is not twilight! Vampires do not fricken glitter!
    *sighs*
     
    Mr_Mellow likes this.
  8. Offline

    Andreas Brisner

    I agree totally, do NOT fuck up this mod with twilight vampires.. (Yes, I like Twilight, but that doesnt mean I agree that vampires glow in sunlight..)
    --- merged: Mar 7, 2011 9:04 AM ---
    Your downlods are broken!

    Code:
    andreas@pingu:~/bukkit/plugins$ unzip Vampire\ v1.1.zip
    Archive:  Vampire v1.1.zip
      End-of-central-directory signature not found.  Either this file is not
      a zipfile, or it constitutes one disk of a multi-part archive.  In the
      latter case the central directory and zipfile comment will be found on
      the last disk(s) of this archive.
    unzip:  cannot find zipfile directory in one of Vampire v1.1.zip or
            Vampire v1.1.zip.zip, and cannot find Vampire v1.1.zip.ZIP, period
     
  9. Offline

    TheDaddyPeanut

    Its possible to turn it off that they burn at sunlight? I'd like to be a fulltime vampire muhaha :D
     
  10. Offline

    Janb

    I suppose it depends on what 'species' of vampire you've got here, but some ideas based off folklore and pop-culture:

    1. Player must be buried (sand, gravel) for some time
    2. Survive without drinking blood for some time (subsist on a special food, maybe redstone dust? sugar?)
    3. Radiation from a special light source (glowstone?)
    4. Have another player do a certain amount of damage with an iron weapon
    5. Drink the blood of a creeper :p
     
    EarlyLegend likes this.
  11. Offline

    Nytemare3701

    Does this actually mean can't or gains no benefit? I use a hunger plugin.

    Edit: It returns the food while still giving the benefit of the food. That works.

    Edit2: Activating this plugin universally disabled PvP. bug in the truce system?

    Edit3: Deactivating the plugin did not re-enable pvp, so I assume something else went wrong. looking into it.

    Edit4: Issue with another plugin. Disregard!
     
  12. Offline

    GhostToast

    Not bad ideas. But how about just dying makes you unvampire? That would work well if there was a "ritual" one had to perform in order to become a vampire (like right click a certain stone). I like the idea of this on a "factions" style server. Where there are vampires and hunters. And the sides could be ever-changing.

    Though the "who can I trust?" element is also interesting.
     
  13. Offline

    Janb


    Well, I had that in mind too, I mean.. there isn't much 'un-vampiring' to be had according to tradition, if anything it's being killed and called back by some ritual.. But in terms of MC, I'd imagine you wouldn't want it to be -too- easy to revert.. it should be a bit of a commitment :p
     
  14. Offline

    GhostToast

    maybe a ritual to do either. kind of like in asheron's call (anyone?) where you would go to a certain shrine to become a player-killer. and then there was some other ritual to undo it. if you could make it a certain definable region for 'vampiring' and another one for 'unvampiring', where the command to become/unbecome will suddenly work...this way you could make it in a hidden location to begin with. perhaps require a component cost as well (customizable). sorry if this is overly ambitious.
     
  15. Offline

    Olof Larsson

    I just tried and they unzip very well :) U tried both 7zip and the native windows7 zip explorer.
    --- merged: Mar 7, 2011 7:24 PM ---
    Smoke effects:
    http://forums.bukkit.org/threads/how-to-spawn-smoke.7529/

    It is true that you will need to use an OP command to infect or turn someone into a vampire. But after that the infection will spread "naturally" if players fight eachother.
    --- merged: Mar 7, 2011 7:43 PM ---
    No it sounds great :)
    I agree there should be some way/"ritual" to both be turned and cured...
    That way the admins won't have to turn the first vampire for the disease to start.
    That way you could also be able to cure yourself though it would be like a small quest in itself.

    It would also be great if people could build their own ritual places / shrines.
    Perhaps a shrine for turning into a vampire could be a gold block with a lot of obsidian nearby?
    And a cure shrine could be... ehhh... a lapiz lazuli block with a lot of glass nearby or something...

    When clicking the main block there would be certain ingredients required for the ritual. If you have them you succeed.

    How about that?
     
  16. Offline

    ToitagL

    Love this idea.
     
  17. Offline

    Jorrdan

    Glitch:

    You can drink other vampires health unlimited times (even with pvp off) and it doesn't affect their blood count at all. Please fix!
     
  18. Offline

    ScottSpittle

    how do u bite?
     
  19. Offline

    IanTilley

    have not tried it yet but from what i reed it would be hard to tell who is a vampire when they are running at u could u possibly make it so that there names are red or something.

    edit
    for an idea to change back kill the person that made u a vampire (kinda like werwolf's)
     
  20. Offline

    ToitagL

    Code:
    03:30:52 [GRAVE] Could not pass event PLAYER_ITEM to Vampire
    java.lang.IllegalStateException: Start block missed in BlockIterator
            at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:171)
            at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:245)
            at org.bukkit.util.BlockIterator.<init>(BlockIterator.java:280)
            at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLineOfSight(CraftLivingEntity.java:84)
            at org.bukkit.craftbukkit.entity.CraftLivingEntity.getLastTwoTargetBlocks(CraftLivingEntity.java:115)
            at com.bukkit.mcteam.vampire.VPlayer.dash(VPlayer.java:216)
            at com.bukkit.mcteam.vampire.listeners.VampirePlayerListener.onPlayerItem(VampirePlayerListener.java:27)
            at org.bukkit.plugin.java.JavaPluginLoader$9.execute(JavaPluginLoader.java:165)
            at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:59)
            at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:225)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:448)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:357)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:272)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    
    CB 493. But does not seem to prevent anything to work.

    Great plugin BTW, really amazing !
     
  21. Offline

    fugue2005

    how much time does it take for the infected to turn.
     
  22. Offline

    Hostail

    I just have to say that I love this plugin! I added it to my server yesterday and we had lots of fun whit a few people being vampire and having a pvp match whit the normal human ones. Kudos bro!
    Btw, can you put in a command to see how much infected you are maybe?
     
  23. Offline

    Sroxah

    Vampire's are masters of deception. I believe the whole point is that vampires should be trying their best to blend in with everybody else so that they don't know that they're dealing with vampires. At least, this is how things have been going on the PvP server that I run so far. The vampires have all been very secretive about their status, and some people have even been infected at some point during combat and don't know who to point the finger at.

    I think you should try it out as it currently is and see if you like it while not being able to tell who vampires are. I think you might enjoy it in its current form.
     
  24. Offline

    Nytemare3701

    Request: raw porkchop remains edible and grant a small amount of blood.
     
  25. Offline

    Saenii

    i agree if u kill the person that killed u u should become a human again
     
  26. Offline

    Exone

    Haven't been able to try the latest version (1.1) but I will :D
    The 1.0 loads and works perfectly on my 450+:D


    And it's great fun! Love your plugins Olof ^^
    Keep it up :D
     
  27. Offline

    Jorrdan

    GLITCH:

    Vampires have unlimited food, since it doesnt get consumed.. yet bread for example will heal half a heart. = invincible vampires..
     
  28. Offline

    ScEp

    i'm interested in this.. how long does it take?
    what if you die and have not yet turned into a vampire?
    can you somehow see if you're infected?

    also: i have been told that eating bread cures the infection, when you have not yet turned into a vampire.. what about other food?
     
  29. Offline

    Olof Larsson

    Which pvp blocking plugin are you using? Drinking blood does not alter vampires blood amount. The blood obtained is proportional to the damage you deal.
    [MERGETIME="1299676285"][/MERGETIME]
    Just attack someone. Drinking blood = dealing damage to animals or players.
    [MERGETIME="1299680638"][/MERGETIME]
    Thanks :) And I just released version 1.2 which include altars that can infect you or cure you from vampirism.
    [MERGETIME="1299681044"][/MERGETIME]
    After you contract the infection you have one hour (real time not game time) before you turn. This is about 3 minecraft day night cycles. (Added it to the documentation :9 thanks)

    Dying with the infection in your body does not help. You will be reborn infected :p

    The way you know if you are infected is the messages like "You are thirsty but water does not seem to help." and a small damage you take every 4 minues.
    [MERGETIME="1299681256"][/MERGETIME]
    I just tried and I do not get healed by bread if I am a vampire. Instead I get the "Vampires can't eat food. You must drink blood instead." message and the bread is not consumed.
     
  30. Offline

    Juze

    /v is going to conflict more I guess. Could you add /vampire back?
     

Share This Page