Inactive [MECH/FUN] Vampire v3.4.3 - The horror continues on your server [1000]

Discussion in 'Inactive/Unsupported Plugins' started by rufust, Jul 13, 2011.

  1. Offline

    rufust

    This is a continuation of TrainYourBrain's plugin which was a continuation of Olof Larson's vampire plugin. I take no credit for any features/functionality/creativity of the plugin up until this point and want to show my appreciation for their efforts by continuing their great work.

    Initially, I will only be fixing bugs in the plugin until I can get my head wrapped around the entire codebase. Then, I'll branch off into adding additional the features that the community thirsts for (pun intended).

    Current version: 3.4.3
    Download: http://www.rufust.com/minecraft/Vampire/v3.4.3/Vampire.jar
    Source: coming soon

    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:

    • 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.
    • Use an evil altar. Any player can build such an altar (read more about altars further down).
    • 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, two vampire types exist: TrueBlood and 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 your 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, or via in-game commands by an operator.

    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:
    • A good altar is a Lapis Lazuli Block with 20 Glowstone Blocks nearby.
    • An evil altar is a Gold Block with 20 Obsidian Blocks nearby.
    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

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

    Configuring the plugin

    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.

    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

    Download the latest release: http://www.rufust.com/minecraft/Vampire/v3.4.3/Vampire.jar
    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.

    Changelog:

    Version 3.4.3
    • Removed deprecated Bukkit function getFace
    • Added console log entry when a TrueBlood/Common vampire is cured by an altar
    • Tested/verified against CraftBukkit RB1000 (1.7.3)
    Version 3.4.2
    • Removed excessive debugging sent to console
    Version 3.4.1
    • Fixed random deaths due to regeneration and thirst competing in inappropriate order
    • Fixed thirst below 50 blood
    • Fixed common vampires infecting users when they shouldn't be
    • Fixed a bug of being unable to respawn after death, requiring the user to reconnect to the server
    -Revisions from past author(s)-
    Show Spoiler
    Show Spoiler

    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) split 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.
     
    brzavr, Jego, Skacey and 1 other person like this.
  2. Offline

    ValBGaming

    Just wondering if the "lang.json" file allows for color code usage such as "&1", "&a", etc?
     
  3. Offline

    D3C

    Hey, Great job on taking over the plugin :D

    But as an future idea, could you make a setting of where you can change the maximum amount of blood for True bloods/Common Vampires, seeing as True bloods are harder to get (On some servers) They could also have more blood to use?
     
  4. Offline

    Brody Romhanyi

    how long does it take to become a vamp?!?!! i hav been waiting long over 20 mins

    how do u make it so when u get bit that you become a vampire faster?!

    PLZ ANSWER ASAP

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

    Monkz

    You modify the infectionprogresspersecond in the config file.

    Hey Rufust, have you found out the problem with my config file yet? Or have a fix for it coming soon?

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

    Brody Romhanyi

    i
    i made it so its at o.1 that alright? how long will it take to become vamp nao?

    ok nvm i got it working but how can u make it so the chances of biting some one if higher more than 1/30

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

    Frvwfr3

    Suggestion, make it so that if a vampire is wearing full diamond(or gold) armor, they do not take damage from the sunlight?

    Suggested by one of the members on my server and I like the idea :D
     
  8. Offline

    jorisclaes1

    How can I adjust my time when I am dead, in order to get back into your normal world

    I can not find dat
     
  9. Offline

    pumpapa

    Idea: Give a Vampire the Power to change the time to night for 50 blood (or more).
    Also how can a vamp get under 40 blood? I mean you only loose blood from health regenerating and using Jump, but below 50 you can't use both so how to get below 40?
     
  10. Offline

    Monkz

    right above the infectionprogress theres the values where u can modify the chance to infect on hit and when they take hits.
     
  11. Offline

    Skacey

    Congrats Rufust, very nice update. Good luck with the support swarm of questions and users who obviously can't or won't RTFM.
     
  12. Offline

    JackBarber

    A night vision is needed for vampires, something like redstone torch light everywhere during night. It is hard to make I think but the plugin would become so much greater. Maybe the plugin Bukkitcontrib could help you to do that, but I'm not sure.

    The flying gameplay could be improve too. Currently it's more jumping than flying and it would be cool if vampires could stay in the air without falling.
     
  13. Offline

    Brody Romhanyi

    What would i change them too?


    "infectionCloseCombatRisk": 0.03333333333333333,
    "infectionCloseCombatAmount": 3.0,

    Would i make them higher?
     
  14. Good work keeping the plugin going, but it could really do with having permissions support.
     
  15. Offline

    SwearWord

    How does it do the sun burn part. Is it hooking into on player move?
     
  16. Offline

    rufust

    SwearWord, there's a thread that checks opacity of blocks 2 above the user, independent of user movement.
     
  17. Offline

    Monkz

    Yes higher.
     
  18. Offline

    HuntMASTER15

    How can I make altars not require items? And sorry for doing what I just did, if admins notice. :p
     
  19. Offline

    Brody Romhanyi

    what would make them 50/50 chance of getting bit?
     
  20. Offline

    Monkz

    0.5 for risk
     
  21. Offline

    Brody Romhanyi

    what would i change it too if i wanted a 50/50 chance of getting bit?
     
  22. Offline

    Monkz

    is the trueblood hp regen fixed for my config in this update?
     
  23. Offline

    rufust

    @Monkz I was not able to pinpoint the cause, so it did not make it in this update. I've got your issue added to my bug tracker (which I'll be making public soon) and I'll try to get that fixed for you and any others having that same problem.
     
  24. Offline

    keysix

    would it be possible to make this work with factions, so that as a vampire it still shows ur faction name?
     
  25. Offline

    Monstertke

    This needs to have permissions support and it needs to play nice with worldguard.

    As it is right now it breaks through worldguard nopvp flags. Not that big of a deal, but its one sided. As in vampires can
    attack players and not be attacked. Also vampires can attack other vampires and steal blood inside of no-pvp regions, without taking damage.

    If this had permissions support I could restrict it to one world, and not have to worry about the above. As it is now its broken for me.

    Edit: The red rose also sets off nocheat, I turned it off by setting the jump item to an unattainable.
     
  26. Offline

    rufust

    @keysix I can look into that. I do not know the full set of capabilities of Factions, but I can look into hooking into its API (if there is one).

    @Monstertke agreed, and permissions support is one of my higher-priority additions that I want to focus on. I can look into your issue with WorldGuard, but I have not experienced Vampire superseding WG's PvP flag on my own servers. This might just be a difference in WG/Vampire configurations, or it might not be, but I'll try and reproduce it anyways.
     
  27. Offline

    Monstertke

    I appreciate it, I would LOVE to restrict this to only one of my worlds. Hell Mcmmo breaks through GOD MODE.
     
  28. Offline

    Brody Romhanyi

    still didnt work i hit someone over 1000 times to test it and no worky
     
  29. Offline

    rufust

    The original original author, Olof Larsson, has merged my code into his development stream and released version 3.5.0 which includes various improvements and enhancements. His thread, located here, will contain any future updates, contributed by myself and others. My thread here, will point users to the new, community thread.
     
  30. Offline

    Swiftist

    I want to disable the bread hints how would i do that? Or can you add it in the next update because I want infection to be a mystery and no one tell you how to cure it.
     
  31. Offline

    keysix

    @rofust thanks, that would be awesome, because im setting up an rpg server, and it jsut bugs me that it does that
     

Share This Page