Inactive [MECH/FUN] Vampire v3.3 - The horror continue on your server [766]

Discussion in 'Inactive/Unsupported Plugins' started by TrainYourBrain, May 8, 2011.

  1. Offline

    TrainYourBrain

    Hey guys,

    Since Olof Larsson's vampire plugin seems to be inactive I will continue his great job, you can check the original version at Vampire Original Topic.
    All credits go to Olof Larsson, I've done some fixes that's all.

    Please if you find something weird or if you want something to be added or even a bug, please tell me ;-)

    Current version: 3.3
    Download: https://sourceforge.net/projects/bukkit-vampirem/files/3.3/Vampire.jar/download
    Source : https://sourceforge.net/projects/bukkit-vampirem/files/3.3/

    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.
    The plugin is fully configurable, see the "Configuring the plugin" section.

    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.


    Since version 3.0 it exists two vampire types : The TrueBlood and the Common.
    The main difference is TrueBlood can infect other player, whereas Common can't.
    True Blood are those who turn into vampire thanks to an evil altar.
    The common are human infected (and turn) because of an other vampire.

    A human become True Blood vampire using an evil altar.
    A human become Common vampire when a TrueBlood vampire attack him.

    Being a vampire
    Vampires…

    • Burn in sunlight, but not when it's raining/snowing/thundering.
    • 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 except fresh pork to recover blood.
    • 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).


    Configuring the plugin

    Show (open)


    So there are 4 configuration files :
    • Conf.json include general Vampire plugin variables.
    • Lang.json contains all the text. (So this is the file you'll need to translate if you don't want the text to be in English ;))
    • TrueBloodConf.json contains attributes about TrueBlood vampire.
    • CommonConf.json contains attributes about Common vampires.
    FAQ :

    First, to configure the plugin, edit the conf.json file located in Vampire directory.

    How can I change the necrosis system radius effect ?

    Set the radiusSpreadingNecrosis value to true/false.

    How to enable/disable the things becoming death when vampire are close to them (spreading necrosis system) ?

    Change "allowSpreadingNecrosis" value to true or false (respectively enable/disable).

    How to enable/disable draining blood over time ?

    Change "allowBloodLoss" value to true or false (respectively enable/disable).

    How to change the color vampire name when the vampire send a message in chat box ?

    Change the following variable that are use to set the vampire name color and the message color of a vampire :

    "vampireChatNameColor": "RED",
    "vampireChatMessageColor": "WHITE",



    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] [TrueBlood]
      Instantly turn a player into a common or trueblood vampire.
      Ex: "/v turn Toto" will turn Toto in common vampire.
      "/v turn Toto trueblood" will turn Toto in True Blood 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.
    • v help
      Show help
    • v chatcolor [enable/disable]
      Enable or disable the system chat color : When a vampire write something, the vampire nickname is write in red
    • v burntime [From] [To]
      Set time when the vampires will burn. Ex: /v burntime 0 12400
    • v feed [playername][amount]
      Give blood to the vampire.
    Installing



    1. Download the latest release: https://sourceforge.net/projects/bukkit-vampirem/files/3.3/Vampire.jar/download
    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.




    Updating

    If you have an older version of Vampire, you may update the plugin, so the simplest way to update the plugin is to replace your current Vampire.jar by the one you downloaded and to remove Vampire directory.
    However if you don't how to delete them ('cause you've translated the conf.json for instance) you have to :
    (For instance : if your version is 1.3 do the things write in "If your version was < 2.1" but also the things write in "If your version was < 2")

    Show Spoiler


    If your version was < 3.2 /!\ VERY IMPORTANT

    Show Spoiler

    - Remove your Conf.json
    It will be created once again, when you restart your server


    If your version was < 3.1

    Show (open)
    Edit config.json in Vampire directory, and add the following lines :

    "allowBloodLoss": true,
    "allowSpreadingNecrosis": true,
    "radiusSpreadingNecrosis": 2,
    "messageTrueBloodVampire": "You are a True Blood vampire.",
    "messageBasicVampire": "You are a common vampire.",
    "turnTrueBloodMessages": [
    "Your heart stops. You don\u0027t breathe anymore.",
    "You are now a True Blood vampire, able to infect.",
    "To see your blood supply:",
    "Type \"/v\" or simply \"v\" in the chat."
    ],


    If your version was < 2.2

    Show (open)
    Edit config.json in Vampire directory, and add the following lines :

    "vampireNameColor": "RED",
    "vampireChatMessageColor": "WHITE",

    And add this lines in the part regarding helpMessages :

    "/v burntime [From] [To] Set time in which vampires will burn.",
    "/v chatcolor [enable/disable] Enable/Disable vampire player name color.",
    "/v help Show this message."


    If your version was < 2.1

    Show (open)
    Edit config.json in Vampire directory and remove the "Pork" item from food material :

    "foodMaterials": [
    "MUSHROOM_SOUP",
    "COOKED_FISH",
    "APPLE",
    "RAW_FISH",
    "GOLDEN_APPLE",
    "BREAD",
    "GRILLED_PORK",
    "PORK" <-remove this
    ],


    If your version was < 2

    Show (open)
    Edit config.json in Vampire directory, and add this line between the second and third line :

    "allowOPToUseAdminCommand": true,



    Incompatibility with other plugins :

    You'll maybe meet some bugs if you use a Weather plugins.

    Changelog:

    Version 3.3
    • When a human died, he may become a vampire (configurable).
    • Bug fixes
    • True Blood vampire can use different recipes than Common vampire , in order to cure.
    Version 3.2
    • Added the possiblity to vampire (True Blood and/or Common) to prevent from burning.
    • Configuration file (Conf.json) splitted in 4 :
      - Conf.json includes general Vampire plugin variables.
      - Lang.json contains all the text. (So this is the file you'll need to translate if you don't want the text to be in English)
      - TrueBloodConf.json contains attributes about TrueBlood vampire.
      - CommonConf.json contains attributes about Common vampires.
    • Red roses don't disappear if "spreading death" ability is enabled.
    Version 3.1
    • Drain blood overt time is now available and configurable.
    • Server operators can feed vampire (give blood to vampire)
    • A vampire will bring death to the world. It's mean all entity next to the vampire become dust.
      For instance, flowers will disappear, grass will become dirt, snow will melt.
    • Added True Blood vampire and Common vampire. True Blood are the vampire turn thanks
      to an evil altar, and common vampire are those infected by other vampire.
    • And other bug fixes...
    • CB 740->766
    Version 2.2

    • Added : help command : "/v help"
    • Added : set burn time (time during the vamprie will burn) command : "/v burntime [From] [To]"
    • When a vampire say something in the chatbox, his/her nickname is colored in red, this feature is disable by default. Use the "/v chatcolor enable" command to enable the chat color system.
    Version 2.1

    • Vampire can walk out the day when it's raining/snowing or even thundering.
    • Vampire can eat pork to get blood.
    • /v command fixed
    Version 2

    • Bugs fixes when it's day light, a vampire who flight over the 127th block (y) will now burn.
    • Removed Permissions Plugin Support due to some errors (only OP can use admin command).
    • Removed Help Plugin Support due to some errors (only OP can use admin command).
    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
     
  2. Offline

    Azrooh

    Hey, awesome plugin, thanks.

    Is it possible to allow commons to infect others?
     
  3. is this plugin continuing?
     
  4. Offline

    Monkz

    I hope this plugin gets continued. My server relies on it
     
  5. Offline

    iggiiggi

    yuckfoooo i was using yours until the 860 update with no problem, but im getting a server-stopping error from it now:

    2011-06-15 23:30:24 [INFO] [Vampire error] :null
    2011-06-15 23:30:24 [SEVERE] java.lang.NullPointerException
    2011-06-15 23:30:24 [SEVERE] at net.minecraft.server.World.doLighting(World.java:1496)
    2011-06-15 23:30:24 [SEVERE] at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:391)
    2011-06-15 23:30:24 [SEVERE] at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    2011-06-15 23:30:24 [SEVERE] at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
    2011-06-15 23:30:24 [SEVERE] Unexpected exception
    java.lang.NullPointerException
    at net.minecraft.server.World.doLighting(World.java:1496)
    at net.minecraft.server.MinecraftServer.h(MinecraftServer.java:391)
    at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:309)
    at net.minecraft.server.ThreadServerApplication.run(SourceFile:422)
     
  6. Offline

    Antecedo

    Is trainyourbrain still updating this plugin?
     
  7. Offline

    Monkz

    I am using yuckfoooo's version at 860 and having no issues. Aside from ghasts attacking vampires for some reason.
     
  8. Offline

    vasil7112

    I have a question..
    How can i make something like ... To make a class Crafter that will have forgery +50
    An Vampire Combact +50 and a hunter +30 combact...
    Can you plz tell me?
     
  9. Offline

    yuckfoooo


    I have no issues on CB860+ with the version of vampire I uploaded. Anything specific you're doing when you get this/any more information you have about it?

    I'm testing it with CB900+ in a little bit so hopefully it still works for that as well.
     
  10. Offline

    yuckfoooo

    @iggiiggi

    Yeah, I just got the Vampire error: null on my server as well on CB902

    If you have any idea as to what causes this or are even able to reproduce it, I'd be happy to fix it. As it stands, it seemed pretty random and I'm not too keen on going through all the source code to figure it out :(
     
  11. Offline

    iggiiggi


    i have no idea what's causing it. it's no biggie tho, only hits once every few days, so it's not terrible.
     
  12. awesome right :) all works for you fine an other people have problems that wasn't there before.
     
  13. Offline

    killer7500

    Hey i was looking around the plugin to find out how to change the materials and the price for using the altars and i could'nt find the line for the price of the good altar. I would like you to look into this because i want to make the altars easier to use on my server. btw great plugin.
     
  14. Offline

    Monkz

    Does the plugin work on the new recommended build?
     
  15. Offline

    killer7500

    The plugin overall works but its just that last line that im missing and i want to change it to make using the good altar easier.
     
  16. Offline

    proudpro

    How do I make the color Dark Red for the chat?
    I tried DarkRed and Dark_Red but it doesn't work
    NVM it works, but Dark_Grey doesnt
    Is there anyway to put [Vampire] as their chat when they're vampire?
     
  17. Offline

    ValBGaming

    Does anybody know if this plugin (Or any of the updated ones for 818 and whatnot) works with CB #928? I would really like to use this plugin but I don't want to download it just to find it doesn't work...
     
  18. Offline

    rileyjo7

    Can you add permissions instead of ops?
     
  19. Offline

    goomma

    is it possible to make it work with stacks of raw porkchops?
     
  20. Offline

    killer7500

    Hey i noticed something about the plugin while playing. When someone who is a vampire talks i cant see their chat on the server screen and its kinda annoying if u could fix this that would be great.
     
  21. Offline

    Malao567

    it looks like a great plugin! will test tomorrow.
     
  22. Offline

    DJNightchild

    Great plugin, me and my friend enjoy our live as vampires.

    I encountererd one bug though. If I shoot a monster with a arrow, my truce with the monsters isn't broken.
    I hope you could fix this.

    Thanks.
     
  23. Offline

    filszyp

    Hello,
    first off I'd like to say I really love this plugin. It works on CB 938. Unfortunately I found some bugs.
    1. Low blood doesn't do damage to vampires (50 blood or lower) while it should. I don't even get messages that I'm thirsty. I tested if any other plugins cause compatibility issues and found none on my server. It's not a huge problem but it takes away some fun of being a vampire since you don't really have to drink blood because of this bug.
    2. On default settings common vampires shouldn't be able to infect players (only trueblood should) but unfortunately all vampires do. Again, it's not a big bug because you can disable infecting whatsoever allowing only altars, but it would be great if it got fixed.
    3. Sometimes, as far as I know it's random, vampires just instantly die (my rtriggers say it's death of fire, like going in sunlight). It happens totally randomly, even at day or underwater and it's instant death. This bug is really big because you never know when you're going to loose your precious full set of diamond armor ;)
    Everything else is fine. Necrosis works, red rose works and so on. I dodn't test shooting mobs with bow :)
    If anyone would be so great to update this plugin, me and my players would be eternally gtrateful :)
     
  24. Offline

    Oscarius

    Suggestion: Make an altar have limited uses or a cooldown.
     
  25. Offline

    Xcite4Ever

    Hey everyone.

    Add another vote for permissions support. Running vampires in CB938 and I'm with filszyp concerning the bugs detected. Guess I should learn JAVA to help you guys out :p
     
  26. Offline

    shadow265

    Maybe you should have some kind of auto sneak for the vampires because they are suppose to be stealthy
     
  27. Offline

    ValBGaming

    I hope this gets officially updated for the latest recommended build... Really hope the developer is still going to be updating it. I haven't even had a chance to try it yet because well -- It says 766. >.<
     
  28. Offline

    Specops343

    I would consider updating this, seeing that the dev has not been online for over a month. I'll leave this open for a few days, and then might update it. ;)
     
  29. Offline

    konaboyzz

    i think it would be cool if someone Infected would have like a symbol above his head or something.... And it would be cool.. Also the ability for True Blood, and Commons to be much more different and can custom them differnetly a lot more then is already there, and if you could craft another item like a cross, or holy water.
     
  30. Offline

    Draycos

    Ok, this may be a stupid question... does this add a vampire mob?
     
  31. Offline

    rufust

    Ok, after some given research into the source code, I've fixed a few of the pending problems from the 766 RB release. I do not know if these were already fixed in versions released by others on this thread, so if so, please forgive me. This has been tested with CB 860 and appears to have fixed the following problems:

    1) Common vampires being able to infect users;
    2) Random death, especially during regeneration;
    3) Unable to respawn after death, resulting in having to go to the Title menu and having to reconnect

    I've tested the above problems out locally and on my server (1.haftacraft.com) and they all seem to be fixed. I corrected a couple of logic errors in the original author's code which seems to have fixed the problems. I'm waiting for additional input from my users, but I welcome anyone else to provide feedback.

    You can obtain the compiled JAR file at http://www.rufust.com/minecraft/Vampire/v3.4.2/Vampire.jar for now. I will be setting up my own GitHub account and forking the original author's code to try and keep this plugin alive.

    Please send me any feedback you have so far, and let me know what other problems pop up (as a result of my modifications, or otherwise).

    @filszyp & @Xcite4Ever, I believe my release fixes the 3 issues you mentioned.

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

Share This Page