[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
    • 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.

    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).

    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.
    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:
    • Add to the admin group:
    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 :)

    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:
    There will be cake if you join me in the coding [cake] :)
  2. Offline


    I've got quite an idea!
    How about vampires taking damage from water?

    Also, while you're at it, how about making a Zombie plague, so that when a player is hit by a zombie there's a slight chance of catching that pesky zombie virus, call it the T-Virus or whatever you want :p

    Some perks of being a zombie could be waterbreathing, life replenish when hitting monsters and some other things.
    Some negative aspects could be ease of spread, continually degrading health.
    And to get rid of it, you could either pray at an altar, or just die or something :p

    Is it even feasible? xD
  3. Offline


    Oh man, I was all excited to try this plugin out, but I am getting error messages when I restart. I am running the latest CB recommended build, and,unless you have updated in the last 10 minutes, the latest version of this plugin as well.

    EDIT: Well, the various /v commands seem to work, but have no effect. As in, I can infect a player, but, except for getting a different message from /v, nothing else happens. Also, altars do not work, unless I made a mistake constructing mine. But since nothing else works, I'm guessing it is from this bug:

    2011-03-11 10:40:21 [SEVERE] com.bukkit.mcteam.gson.stream.MalformedJsonException: Unterminated array near upply:", "Type "/v" or simply "v" in loading Vampire v1.2 (Is it up to date?)
    com.bukkit.mcteam.gson.JsonSyntaxException: com.bukkit.mcteam.gson.stream.MalformedJsonException: Unterminated array near upply:", "Type "/v" or simply "v" in
    at com.bukkit.mcteam.gson.Streams.parse(Streams.java:52)
    at com.bukkit.mcteam.gson.Gson.fromJson(Gson.java:515)
    at com.bukkit.mcteam.gson.Gson.fromJson(Gson.java:485)
    at com.bukkit.mcteam.gson.Gson.fromJson(Gson.java:435)
    at com.bukkit.mcteam.gson.Gson.fromJson(Gson.java:407)
    at com.bukkit.mcteam.vampire.Conf.load(Conf.java:284)
    at com.bukkit.mcteam.vampire.Vampire.onEnable(Vampire.java:86)
    at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:118)
    at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:451)
    at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:217)
    at org.bukkit.craftbukkit.CraftServer.loadPlugin(CraftServer.java:83)
    at org.bukkit.craftbukkit.CraftServer.loadPlugins(CraftServer.java:61)
    at net.minecraft.server.MinecraftServer.e(MinecraftServer.java:204)
    at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:191)
    at net.minecraft.server.MinecraftServer.d(MinecraftServer.java:131)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:246)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    Caused by: com.bukkit.mcteam.gson.stream.MalformedJsonException: Unterminated array near upply:", "Type "/v" or simply "v" in
    at com.bukkit.mcteam.gson.stream.JsonReader.syntaxError(JsonReader.java:1110)
    at com.bukkit.mcteam.gson.stream.JsonReader.nextInArray(JsonReader.java:684)
    at com.bukkit.mcteam.gson.stream.JsonReader.quickPeek(JsonReader.java:373)
    at com.bukkit.mcteam.gson.stream.JsonReader.hasNext(JsonReader.java:332)
    at com.bukkit.mcteam.gson.Streams.parseRecursive(Streams.java:75)
    at com.bukkit.mcteam.gson.Streams.parseRecursive(Streams.java:84)
    at com.bukkit.mcteam.gson.Streams.parse(Streams.java:41)
    ... 16 more
  4. Offline


    would it be possible to make it so the vampires can hide their names?
  5. Offline


    Uhh the 1.3 release is not showing up yet as .zip, or does it have to compile first? Just checking :)
  6. Offline


    I so love this plugin, but would it be possible for you to release a more simple one? I'd love a plugin which only gives me an /infect and a /cure command, which makes people burn or not burn in sunlight. This would suite my server much better :D
    Well, when I'm already asking, it would be great if it could feature this simple system:
    1 player is the vampire. He can only be out by night since he burn in sunlight. He cannot be damaged.
    When the vampire kills a player the vampire cures, and the one killed respawns as a vampire.
    This would end up in some kind of "Hide n Seek" game, which I'm trying to create :D

    Please respond as soon as possible, and if there's already a mod like this, link it !! :)
  7. Offline


    Idea... levitate briefly at the cost of blood, maybe with an item in your hand. That way I can recreate that creepy-arse scene from Salem's Lot outside someone's bedroom window :D
  8. Offline


    There is already a plugin that does this.
  9. Offline


    Yeah, that'd be Ignite and just adding the permissions to the specific user.
    Not sure if that's it, but it'd be somewhat along those lines.
  10. Offline

    SweetCraft Girl

    OP says 1.3

    Download says 1.2

    - External links, which only add to the process to download are rather annoying. I do not understand why you simply cannot Supply a "ZIP" link for direct download so we do not have to make a 1 stop process into 3. It's also more for you to update.
  11. Offline


    Is loosing bood over time inplemented or do i just dont know how to do it?
  12. Offline


    Has anyone downloaded and built the new release successfully yet? I do not think the author is going to do that yet.

    No, that does not seem to be implemented. I do not know why either, as it would appear that it should be part of the plugin.
  13. Offline


    I can't seem to find the download link for 1.3 either, all the OP links point to a zip package of 1.0, 1.1, and 1.2.
  14. Offline


    I've compiled 1.3 from the github, will I get in trouble if I post a link here for the .jar file?
    edit: download link removed, dev uploaded his build.
  15. Offline


    Are you planning on adding iConomy integration? It'd be really awesome to have it cost players to build, or use, an evil, or good altar.
  16. Offline


    Sroxah's altar idea is really nice.
    And maybe sacrifice blood? Maybe make is so that almost all blood is taken, so vampires must hunt really fast after this?

    Also, nether materials should be optional. Since, as stated above somewhere, every server doesn't have nether.

    And lastly, an idea for the 'See in the dark thing'; There's 'flashlight' plugins, that's places a invisible torch infront of the player. Maybe like that but with a redstonetorch?
  17. Offline


    You can change the material from "glowstone" to anything else you wish in the conf.json file! This author has done a great job setting up extended versatility for us :)
  18. Offline


    Link that plugin or give me it's name then, please :)
  19. Offline


    For some reason after an extended period of time my Vampires get bugged and can not drink blood or get burned in sunlight. Is this happening to any one else?
    CB 493
    Vamp 1.2
    Using a ton of other plugins. Most Recently, mcMMO 8.21
  20. Offline


    Danzer already posted the name on this page, but, really, there is only like a dozen pages of released plugins and it isn't that hard to sift through even without that.
  21. Offline

    SweetCraft Girl

    Why is the plug-in dev posting source code links but no plug-in to download, yet claiming there is 1.3 -but someone else has to compile, download and post it? Seriously?????
    Last edited by a moderator: Dec 14, 2016
  22. Offline


    No-one who's a vampire on my server is being burned. Anyone else seeing this?
  23. Offline

    SweetCraft Girl

    What craftbukkit are you running?

    It helps.

    Also, are you running anything else like Mob Control?

    Are you sure you have admin powers etc. proper under permissions as well and that PCs do not have admin power default?
  24. Offline


    Is there a way to increase damage from sunlight?
    Vampires can waltz about for around 30 seconds in sunlight before dying.
  25. Offline

    Olof Larsson

    This means your conf.json has invalid syntax. Use a json syntax validator if you can't find the error yourself.
    Oppps XD thanks. I forgot to "git push". It is online now.
    Yes it is implemented :) In the config file:
    public static long bloodDecreasePerMinute = 100/120L; //You loose all your blood over the elapse of 2 real-life hours
    Please check your server log and see if you find any errors from the vampire plugin there. If so they might give me a hint.
    Don't worry I just forgot to upload the file :) It is there now.
    SweetCraft Girl likes this.
  26. Offline


    I've been using that plugin before, it really doesn't work that good...
  27. Offline

    SweetCraft Girl

    Works great. My server love it - And run from those they know who are vampires. Absolute lulz.

    Thanks Olof, sorry for grump mode.
  28. Offline


    @Olof Larsson
    I turned it off, Ill give it another go and when the powers stop working ill doa search for your plugin in my log.
  29. Offline


    Well the main reason why I'm not using it right now is cause the download link seems to be broken :)
    Thanks for suggesting it anyways! I found a nice guy who wanted to make a more specific plugin for my server so I wont be needing the "ignite" one:D
  30. Offline


    Oh! Didn't notice that option. :p
    And yes, he has! On could probably re-config this plugin to be something else, like a zombie-infection just because of that. It's so good!
  31. Offline


    http://www.jsonlint.com/. Copy and paste that there.

Share This Page