[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

    AlexanderWolf

    Great mod!
    I just tested it and it will be a great addition to my server.
    So far it seems to work well with mcMMO.
    The only thing i worry about is there is any conflict between the damage multipliers for each mod?

    I am looking forward to the jump velocity!
     
  3. Offline

    ImKharn

    In your next update can you make this compatible with hunger mods such as Gastronomic?

    Perhaps it could just run this command for the player. It sucks being hungry and not being able to eat :)

    /sethunger [player name] [hunger level] - sets player's hunger to the specified amount
     
  4. Offline

    panderiz

    Turned out to be another plugin that stopped health damage...
     
  5. Offline

    Incendia

    This doesn't obey essential's godmode :s
     
  6. Offline

    Daveyo

    similar problem with worldguard pvp off and towny pvp off, it still infects
     
  7. Offline

    fyrus12345

    use the HeroSneak plugin. Worked for me.
    [MERGETIME="1300125474"][/MERGETIME]
    does it work like this? "bloodDecreasePerMinute": blood/minutesL
    Because i have to have something wrong.
    Code:
    11:52:03 [SEVERE] com.bukkit.mcteam.gson.stream.MalformedJsonException: Untermin
    ated object near reasePerMinute": .5/2L,  "infectionMessa loading Vampire v1.2 (
    Is it up to date?)
    com.bukkit.mcteam.gson.JsonSyntaxException: com.bukkit.mcteam.gson.stream.Malfor
    medJsonException: Unterminated object near reasePerMinute": .5/2L,  "infectionMe
    ssa
            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(SimplePluginManage
    r.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 ob
    ject near reasePerMinute": .5/2L,  "infectionMessa
            at com.bukkit.mcteam.gson.stream.JsonReader.syntaxError(JsonReader.java:
    1110)
            at com.bukkit.mcteam.gson.stream.JsonReader.nextInObject(JsonReader.java
    :737)
            at com.bukkit.mcteam.gson.stream.JsonReader.quickPeek(JsonReader.java:37
    9)
            at com.bukkit.mcteam.gson.stream.JsonReader.hasNext(JsonReader.java:332)
    
            at com.bukkit.mcteam.gson.Streams.parseRecursive(Streams.java:83)
            at com.bukkit.mcteam.gson.Streams.parse(Streams.java:41)
            ... 16 more
    I tried to decrease .5 blood every 2 minutes.
     
  8. Offline

    halomastercap

    Yes I can't get the blood decrease to work either. In fact it is increasing blood. :|
     
  9. Offline

    CScape

    Hey, Loving the plugin but I seem to have found a bug.

    I was wondering if you put a pumpkin on your head would you still catch on fire. Well I did not catch on fire. But ever since then me and any other vamps on the server take no damage from the sun. Healing also tends to be very spotty. Doesn't work most of the time then every once in a while it will work.

    Not sure what happened.
     
  10. Offline

    Nima304

    I'm unsure if NoCheat would catch this, but could you make sure? I don't want players getting flagged for speedhacking when they're simple dashing as a vampire.
     
  11. Offline

    Monkah

    Does the altar go away after usage? I'd love that for my server.
     
  12. Offline

    ReapKarmah

    I'm unable to find the vampire mob in my newly created map :(

    How rare are these vampire mobs? Any details about them?
     
  13. Offline

    Olat

    Not sure whats causing it but i went through my server log and i saw a bunch of this.
    CB is 493 (ill be upgrading to 531 here in like 10 mins)
    Vamp 1.3


    Code:
    
    2011-03-16 05:47:08 [SEVERE] Could not pass event PLAYER_ITEM to Vampire
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
            at java.util.ArrayList.rangeCheck(ArrayList.java:571)
            at java.util.ArrayList.get(ArrayList.java:349)
            at com.bukkit.mcteam.vampire.VPlayer.dash(VPlayer.java:231)
            at com.bukkit.mcteam.vampire.listeners.VampirePlayerListener.onPlayerItem(VampirePlayerListener.java:35)
            at org.bukkit.plugin.java.JavaPluginLoader$10.execute(JavaPluginLoader.java:175)
            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:469)
            at net.minecraft.server.Packet15Place.a(SourceFile:57)
            at net.minecraft.server.NetworkManager.a(SourceFile:230)
            at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:70)
            at net.minecraft.server.NetworkListenThread.a(SourceFile:100)
            at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:338)
            at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:253)
            at net.minecraft.server.ThreadServerApplication.run(SourceFile:366)
    2011-03-16 05:47:08 [INFO] GreenSage420 lost connection: disconnect.timeout
    
     
  14. Offline

    SplenectomY

    Does anyone else have trouble getting the permissions to work? I'm trying to give the admin commands to my moderator group via permissions but it is not working. Is there something in the config I need to flag?

    Also - suggestion. Add a place in the config where you can make vampires not burn if their blood level is above a certain percentage, a la Elder Scrolls: Oblivion. I would like my vampires with over 75% blood to not burn :D
     
  15. Offline

    Saerain

    Much fun! Especially once I corrected a bunch of spelling errors. ;)

    I wish that we could change the infection cure from bread to some other consumable in conf.json like we can with the altar materials.

    No, they don't, but the reagents do.
     
  16. Offline

    ScEp

    Is it intended that vampires deal 4.5 hearts of damage instead of 2 hearts (vs an unarmored enemy who is no vampire)?

    can the arrow-damage be configured somehow, or is it intended to do 2.25 times the damage?
     
  17. Offline

    wag7

    On the instructions it says "put Vampire.jar into plugins". I can't find Vampire.jar. really, there is Vampire.zip, maybe i accidentally downloaded the source code. But i truly remmeber downloading the non-source code file. [​IMG] help?
     
  18. Offline

    Redyugi

    Unzip the file, and inside is the jar.
     
  19. Offline

    wag7

    I have not seen it. there is the liscences, the realeases (which are in .zip) and src. anything i am doing wrong?
    p.s. i run mac OSX.
    EDIT: i when i un-archive the releases, i get a Vampire.jar, then it turns to just Vampire.
    EDIT2: i unarchived it, then, timed it right so it did not unarchive the java file.
     
  20. Offline

    xeology

    Your plugin is amazing, would love to see it extended into a faction based race plugin (kind of like wow).

    This has offered me hours of entertainment watching the psychological affects on my server. People were at each others throats over race since day one! Its like racism for minecraft! Server admins should applaud you for the amount of entertainment you have brought us!

    BTW I specifically have daytime pvp disabled to encourage inventive pvp and this fits into the mix perfectly!
     
  21. Offline

    ReapKarmah

    Seriously, I've searched for days in minecraft yet cannot locate 1 vampire enemy! o_o
    What does it take?
     
  22. Offline

    darkcammo

    you being serious?
     
  23. Offline

    ReapKarmah

    Are there no vampire mobs in this plugin?
     
  24. Offline

    darkcammo

    Right now it isn't possible to add mobs to minecraft without a client mod. Running a server plugin can't add mobs. What this plugin does is turn the players on the server into vampires and they will gain the attributes listed in the main post.

    Pretty obvious if you read the main post.
     
  25. Offline

    ReapKarmah

    Yea I read the main post a lot. But I saw a video on youtube about a (apparently) different vampire plugin so I got confused.

    So this plugin only has a couple ways of being a vampire...via admin command or an evil altar. Right? (not counting fighting another vampire (player) because there can't be a vampire at the start without the previous two reasons)
     
  26. Offline

    darkcammo

    yeah exactly. What you saw on youtube is mo' creatures mod... which is TONS of fun for singleplayer, but there isn't a multiplayer version out
     
  27. Offline

    ReapKarmah

    Yea I know about mo' Creatures, this was a different mod, a vampires thing. But that's not important. Now I realize what's really going on lol. Thanks!
     
  28. Offline

    ImKharn

    Can you make it so vampires can sleep during the day to make it night again?

    Just allow players to sleep in beds night or day.
    If every player is in bed switch the current day night value.

    If possible this would be nice.
     
  29. Offline

    Monkah

    IDEA:
    In the config, the ability for redstone torches nearby to turn the vampire invisible.
     
  30. what about to change "/v" to something less trouble-some; like "/va" at least? :) e.g. "voxel sniper" is using /v for brush setting... you need to write /v more often there... i know, i can download src and recompile it, but for you its 5-min question. for me it isn't ;) and it should be useful not only for me... thanks a lot for thinkin...
     
  31. Offline

    ahlwen

    is there a way to get this to work with the gastronomic hunger mod?
     

Share This Page