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

    kahlilnc

    Oh yeah you brought it back.
     
  3. Offline

    rufust

    TrainYourBrain's original Vampire thread is here
    Olof Larsson's original Vampire thread is here
     
  4. Offline

    Monkz

    Wooot! Cant wait to see this plugin progress!
     
  5. Offline

    rufust

    Any recommendations from other developers out there on a bug tracking program? Right now I'm looking into Mantis, but open to suggestions from other developers.
     
  6. Offline

    Jason91jj

    wow awesome plugin already a hit on my server, BUT and i know your probably already putting this in the works but could you please add permissions support, also could you please make it an option for only people with permissions to make an altar? or maybe just admins? ill keep thinking of some idea but GREAT plugin!!
     
  7. Offline

    rufust

    My main goal right now is to improve/increase the granularity of the control for the plugin. This means Permissions support, above and beyond the already-existing OP support. Personally, I hate op-only plugins, so I will try and get some permission bindings going right away.

    .. Sorry, forgot to add this: and cleanup of the configuration files/adding documentation so we now wtf the settings do.

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

    Xlaits

    As I said on the other forum...
     
  9. Offline

    rufust

    Xlaits,

    I'll look into making the command(s) configurable to avoid conflicts with other plugins.
     
  10. Offline

    Xlaits

    thank you.

    As a reference, try putting @ directly before a name. Like this:
    @rufust

    That way, the person that you mention will be notified that you replied to them.
     
  11. Offline

    BerialFang

    silly question when i am walking around why am I killing grass (meaning as i walk over grass the blocks turn to normal dirt with no grass on top) and is there a option to turn that off?
    nevermind found it might want to make that add a type comand to turn that on or off just my opinion keep up the great work been haveing a ball with this plug in
     
  12. Offline

    rufust

    @Xlaits, I'll be sure to do that from now on. I didn't know it actually served a function other than linking a user's site.

    @BerialFang: That's the necrosis feature. You can turn it off in the config files.
     
    BerialFang likes this.
  13. Offline

    BerialFang

    @BerialFang: That's the necrosis feature. You can turn it off in the config files.[/quote]
    yep found it and thanks another silly question it says "Can jump and fly using a red rose. (costs blood)"
    i figuered out the jump but not the fly
    also for the dark altar it requests "sulphur" but it is actualy gunpowder :p
     
  14. Offline

    Xlaits

    And a clarification, put a space between the name and the punctuation.

    @rufust

    is different than

    @rufust:

    or

    @rufust,


    EDIT:

    Though, for some reason, they worked for me just then...

    WTF, BukkitForums...
     
  15. Offline

    Monkz

    Is truebloods HP regen fixed in this version?
     
  16. Offline

    Joager

    I have a RP server, and I'll use this but...

    Is there ANY way to stop vampires from using weapons?

    I want them to use only bare hands(and pickaxes,axes,etc...but not sword or bow).
     
    Jego likes this.
  17. Offline

    rufust

    @Monkz yes TB regen is fixed.
    @Joager right now, there is not, but it might become a configurable option if needbe
     
  18. Offline

    Monkz

    Yeah i dont regen as a trueblood with this version of Vampire. But as soon as i set my config to defaults it works, but not with my custom config. I need to revert to darkrides version for it to work. My config has no issues until i use this version.

    Code:
    {
      "colorSystem": "RED",
      "allowNoSlashCommand": true,
      "allowOPToUseAdminCommand": true,
      "becomeVampireWhenDead": false,
      "timerInterval": 1000,
      "infectionCloseCombatRisk": 0.00000000000000000,
      "infectionCloseCombatAmount": 0.00000000000000000,
      "infectionProgressPerSecond": 0.050000000000000000,
      "enableVampireNameColorInChat": false,
      "vampireChatNameColor": "RED",
      "vampireChatMessageColor": "WHITE",
      "infectionBreadHealAmount": 20.0,
      "thirstUnderBlood": 14.9,
      "thirstStrongUnderBlood": 5.0,
      "thirstDamagePerSecond": 0.0,
      "thirstStrongDamagePerSecond": 0.050,
      "jumpMaterials": [
        "RED_ROSE"
      ],
      "jumpDeltaSpeed": 3.0,
      "jumpBloodCost": 3.0,
      "combustFromTime": 0,
      "combustToTime": 12400,
      "regenStartDelayMilliseconds": 8000,
      "regenHealthPerSecond": 0.25,
      "regenBloodPerHealth": 1.5,
      "combatDamageDealtFactor": 1.00,
      "combatDamageReceivedFactor": 0.75,
      "combatDamageReceivedWoodFactor": 2.40,
      "woodMaterials": [
        "STICK",
        "WOOD_HOE",
        "WOOD_AXE",
        "WOOD_SPADE",
        "WOOD_PICKAXE",
        "WOOD_SWORD"
      ],
      "foodMaterials": [
        "GRILLED_PORK",
      ],
      "combustFireExtinguishTicks": 0,
      "materialOpacity": {
        "SIGN": 0.1,
        "REDSTONE_TORCH_ON": 0.1,
        "SAPLING": 0.3,
        "GLASS": 0.5,
        "BROWN_MUSHROOM": 0.1,
        "FENCE": 0.2,
        "TORCH": 0.1,
        "STONE_PLATE": 0.0,
        "YELLOW_FLOWER": 0.1,
        "RED_MUSHROOM": 0.1,
        "STONE_BUTTON": 0.0,
        "FIRE": 0.0,
        "LEVER": 0.1,
        "REDSTONE_WIRE": 0.0,
        "DIODE_BLOCK_ON": 0.0,
        "SIGN_POST": 0.2,
        "CROPS": 0.2,
        "RED_ROSE": 0.1,
        "MOB_SPAWNER": 0.3,
        "SUGAR_CANE_BLOCK": 0.3,
        "AIR": 0.0,
        "REDSTONE_TORCH_OFF": 0.1,
        "DIODE_BLOCK_OFF": 0.0,
        "WOOD_PLATE": 0.0,
        "LEAVES": 0.3
      },
      "playerBloodQuality": 0.0,
      "creatureTypeBloodQuality": {
        "CHICKEN": 0.4,
        "PIG": 0.9,
        "COW": 1.0,
        "SQUID": 2.5,
        "SHEEP": 0.8,
        "SPIDER": 0.7
      },
      "truceBreakTime": 60000,
      "creatureTypeTruceMonsters": [
        "ZOMBIE",
        "SKELETON",
        "GHAST",
        "CREEPER",
        "SPIDER"
      ],
      "bloodDecreasePerSecond": 0.01,
      "altarInfectMaterial": "SPONGE",
      "altarInfectMaterialSurround": "OBSIDIAN",
      "altarInfectMaterialSurroundCount": 20,
      "altarInfectMaterialSurroundRadious": 7.0,
      "altarInfectRecipe": {
        "materialQuantities": {
          "BONE": 1
        }
      },
      "altarCureMaterial": "LAPIS_BLOCK",
      "altarCureMaterialSurround": "GLOWSTONE",
      "altarCureMaterialSurroundCount": 20,
      "altarCureMaterialSurroundRadious": 7.0
    }
    
     
  19. Offline

    rufust

    @Monkz OK I'll take a look into that for you. here's my config that does allow TB to regenerate:

    Code:
    {
      "colorSystem": "RED",
      "allowNoSlashCommand": true,
      "allowOPToUseAdminCommand": true,
      "becomeVampireWhenDead": false,
      "timerInterval": 1000,
      "infectionCloseCombatRisk": 0.03333333333333333,
      "infectionCloseCombatAmount": 3.0,
      "infectionProgressPerSecond": 0.027777777777777776,
      "enableVampireNameColorInChat": false,
      "vampireChatNameColor": "RED",
      "vampireChatMessageColor": "WHITE",
      "infectionBreadHealAmount": 20.0,
      "thirstUnderBlood": 50.0,
      "thirstStrongUnderBlood": 20.0,
      "thirstDamagePerSecond": 0.025,
      "thirstStrongDamagePerSecond": 0.1,
      "jumpMaterials": [
        "RED_ROSE"
      ],
      "jumpDeltaSpeed": 1.5,
      "jumpBloodCost": 1.0,
      "combustFromTime": 0,
      "combustToTime": 12400,
      "regenStartDelayMilliseconds": 8000,
      "regenHealthPerSecond": 0.25,
      "regenBloodPerHealth": 2.5,
      "combatDamageDealtFactor": 1.5,
      "combatDamageReceivedFactor": 0.7,
      "combatDamageReceivedWoodFactor": 1.0,
      "woodMaterials": [
        "WOOD_AXE",
        "WOOD_HOE",
        "WOOD_SPADE",
        "STICK",
        "WOOD_PICKAXE",
        "WOOD_SWORD"
      ],
      "foodMaterials": [
        "GOLDEN_APPLE",
        "COOKED_FISH",
        "APPLE",
        "MUSHROOM_SOUP",
        "GRILLED_PORK",
        "BREAD",
        "RAW_FISH"
      ],
      "combustFireExtinguishTicks": 0,
      "materialOpacity": {
        "STONE_BUTTON": 0.0,
        "FENCE": 0.2,
        "FIRE": 0.0,
        "RED_ROSE": 0.1,
        "SIGN": 0.1,
        "AIR": 0.0,
        "DIODE_BLOCK_ON": 0.0,
        "BROWN_MUSHROOM": 0.1,
        "LEVER": 0.1,
        "STONE_PLATE": 0.0,
        "WOOD_PLATE": 0.0,
        "CROPS": 0.2,
        "REDSTONE_TORCH_OFF": 0.1,
        "LEAVES": 0.3,
        "RED_MUSHROOM": 0.1,
        "REDSTONE_WIRE": 0.0,
        "GLASS": 0.5,
        "SAPLING": 0.3,
        "REDSTONE_TORCH_ON": 0.1,
        "YELLOW_FLOWER": 0.1,
        "MOB_SPAWNER": 0.3,
        "TORCH": 0.1,
        "DIODE_BLOCK_OFF": 0.0,
        "SIGN_POST": 0.2,
        "SUGAR_CANE_BLOCK": 0.3
      },
      "playerBloodQuality": 2.0,
      "creatureTypeBloodQuality": {
        "SQUID": 0.2,
        "SPIDER": 0.2,
        "SHEEP": 0.4,
        "CHICKEN": 0.4,
        "PIG": 0.4,
        "COW": 0.4
      },
      "truceBreakTime": 60000,
      "creatureTypeTruceMonsters": [
        "SPIDER",
        "ZOMBIE",
        "CREEPER",
        "SKELETON",
        "GHAST"
      ],
      "bloodDecreasePerSecond": 0.01,
      "altarInfectMaterial": "GOLD_BLOCK",
      "altarInfectMaterialSurround": "OBSIDIAN",
      "altarInfectMaterialSurroundCount": 20,
      "altarInfectMaterialSurroundRadious": 7.0,
      "altarInfectRecipe": {
        "materialQuantities": {
          "RED_ROSE": 5,
          "BEDROCK": 5
        }
      },
      "altarCureMaterial": "LAPIS_BLOCK",
      "altarCureMaterialSurround": "GLOWSTONE",
      "altarCureMaterialSurroundCount": 20,
      "altarCureMaterialSurroundRadious": 7.0
    }
     
  20. Offline

    Monkz

    thanks. I dont know why it doesnt like mine.
     
  21. Offline

    epicjiiang

    Rufust, do you think it would be possible for you to implement maybe a vanish skill? You could maybe make it to where you can toggle it on/off in configs, I was just thinking it would be cool, because in some vampire lore vampires can become translucent, so I think maybe a vanish skill or something would be neat ;]
     
  22. Offline

    rufust

    @epicjiiang I'll add that to the list of requests. It should be fairly easy to implement.
     
  23. Offline

    Jason91jj

    hey back again, just want to say AWESOME, I really love it great job :) just need some Permissions :) keep up the good work
     
    GayJuice likes this.
  24. Offline

    epicjiiang

    Thank you so very much :] I think that would be awesome for my server
     
  25. Offline

    lilienprinz1

    do not think that you can only go out at night with the plugin as well as vampire tag onout would be better
     
  26. Offline

    Monkz

    Can you allow per world support for burning? For example i use the dreamlands plugin, which adds skylands, which is a permananent day. I want vampires to not burn there, as it only lets people there at night time, but they keep burning. If there was per world support, then i could allow them to burn in the regular world, and not burn in skylands
     
  27. Offline

    mike0fmikes

    WOOT WOOT!

    I've been waiting for an update; and I'm excited about finally getting to run this on my server. One question though, once you've got an altar built, how the ff do you use it?
     
  28. Offline

    BerialFang

    @mikeOfmikes thats simple just right click the single block so for A good altar hit the Lapis Lazuli Block and for An evil altar hit the Gold Block and they will tell you what to do in chat.
    sadly i am still trying to figure out the flying part "Can jump and fly using a red rose. (costs blood)" jump works but not sure how to activate the flying.
     
  29. Offline

    SplenectomY

    The old plugins had permissions support. Why were they taken off?

    Edit: Looks like TrainYourBrain took perm support out in v2 due to "errors." Hmm.

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

    jimmyy4

    [pig]
    [fire]
    pig = vampire
    fire = fire on vampire
    id say if the vampire would be like this
    [fire][fire][fire]
    [fire][pig][fire]
    [fire][fire][fire]
    fire = fire on vampire and around
    pig = vampire
     

Share This Page