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

    Lolmewn

  3. Offline

    Plague

  4. Offline

    TrainYourBrain

    Ho, yes you're right. I fixed it :)

    Edit : Updated to 2.1
     
  5. Offline

    Sich

    Thanks for maintaining this mod :)
     
  6. Offline

    kahlilnc

    Thank you for your fork.

    Can you add help support once more. Or your own help support within this plugin please.

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

    TrainYourBrain

    Yes it's possible ;) I will add it.
     
  8. Offline

    Tal-N

    I have a question on this mod. And if the answer is no then I'd offer it as a future feature.

    Put simply. Is there a way to change what blocks are required for the alters?

    The reason I say this on our server we don't want users running around making their own alters. However we would like to have alters scattered around the world which can transform them. What we would do is use blocks which cannot be obtained without the /give command, something which none of our users can do.
     
  9. Offline

    TrainYourBrain

    Yes it's possible, check out the conf.json file located in Vampire directory.
    At the end of the file there are some line to modify if you want to do what you write :

    So around line 170 you will find two line for infect altar:

    And around line 190 for cure altar :

    AltarCureMaterial and AltarInfectMaterial are the block needed to cure or infect.
    AltarCureMaterialSurrond and AltarInfectMaterialSurrond are the block located around the AltarCureMaterial/AltarInfectMaterial block.

    The only thing you have to do is for instance to replace "OBSIDIAN" by "DIRT" il you want to make altar with dirt blocks.

    I hope I explain it clearly, if not don't hestitate to ask ;)

    But yeah, I agree to say it's quiet non-user friendly and I may add an administrator command to change the block needed to make an Altar in game.

    Please give me your opinion about the next features to come :

    - Drain blood vampire over time (for instance : 0.01 blood every second).
    - Give the hablity to human players to cure a vampire doing something like that :
    A human killing a vampire with wooden weapon AND with 1 diamond + 1 water bucket + 20 wheat + 20 sugar in his inventory will turn the vampire into human.
    - Vampire wearing a diamond armor will be able to go out at sunlight.
    - Vampire will drop bones/gunpowder/redstone when they are killed.

    So what do you think about it ?

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

    Dreadreaver

    @TrainYourBrain
    I'd say wearing
    ... a cloth armor you only take 4/5 sunlight damage
    ... a iron armor you only take 3/5 sunlight damage
    ... a gold amor you only take 2/5 sunlight damage
    ... a diamond armor you only take 1/5 sunlight damage
    or something like that
     
  11. Offline

    TrainYourBrain

    Yeah good idea to decrease damages instead of remove them when vampire wears an armor, ;) thanks.
    And about other features what do you think ? ;)
     
  12. Offline

    Dreadreaver

    Okay
    - I think humans shouldnt be able to cure vampires, its not needed and nobody can remember the exact amount
    - Drain blood sounds nice
    - Don't change the drops

    Also I think striking a vampire with a woodenitem when hes inside a bed should be an instant kill
    And I would like to have the same rules for glass as for leaves, I mean like UV-protective glass you just make 2-3 layers of glass and vamp chan is fine
     
  13. Offline

    Cake=Lie

    Love your mod and the old version of the mod thank your for showing me yours as i said on the other vampire plugin could you add something like a new type of vampire ~Pure_Blood~ which has powers to turn humans into vampires with the infection and normal vampires can no longer infect..... the powers could be something like hovering with a yellow flower and walking through the air... also something like a Level E vampire which a ~Pure_Blood~ has the power to do eg with a /Le command standing for level e and from then on everyone the ~Pure_Blood~ bites become a level E... level Es lose their health a lot and need lots of blood aka getting thirsty for blood every 5 mins... Love your plugin keep up the good work
     
  14. Offline

    Sphax

    Would it be possible to automatically color the vampire player name to "red" in the chat ? And color the other players names to "blue" or "no color" (or anything else than "red") if they are not vampire ?

    And maybe change the player skin AND/OR the color of its name above the head ?

    Great plugin ! :)
     
  15. Offline

    TrainYourBrain

    Ok so you would like to have two type of vampire, some basic vampire who cannot be able to infect player and some PureBlood vampire who have the ability to infect human player, do I understand well ?

    That's an idea ! But I'm afraid that changing player name chat color in Red, will confuse user since Admin are Red too :)
    But your idea to change skin is so great :) I have to take a look on how to do that.
     
  16. Offline

    Sphax

    For the color of the player, maybe you can set it as an option (on/off and color) ? For me admins/ops are not in red/colored at all in my server (nobody are colored in fact). :)
     
  17. Offline

    kman2010

    hello mate im making a team of developers to make an awsome plugin if you or anyone else is interested please pm me
     
  18. Offline

    Dreadreaver

    Suggestion:
    Use Packet53BlockChange to change the ground around a vampire in a small radius and perhaps even leave a trail.
    This would never affect/change any buildings on the server and would work like that once any player is near a vampire or one of the blocks he touched he would see the darkness

    My ideas would be this
    -> change water to ice
    -> plants dieing
    -> leaves change to the darkest kind of leaves
    -> sheeps turn black
    -> stuff like that :D

    would enable this "chilling air" effect of vampire =)
     
  19. Offline

    TrainYourBrain

    OMG you have awesome ideas Dreaddreaver :D

    About Packet52BlockChange there is a topic here but I don't know how to use this class ... so if you have a code or something to help me I will so appreciate it :) (cause the javadoc do not tell how to use this Packet52BlockChange :( )
     
  20. Offline

    Dreadreaver

    Yeah saw that topic just now when checking the forum =)
    I havent worked with Packet52 yet but I'm gonna try working with it when I find some time. But right now Im busy with life so I cant tell when I find the time to do this.
    If you dont have it working until I got it working I just might help you ;)
     
  21. Offline

    TrainYourBrain

    Yes, so I confirm this feature will be available in the next version ;-)

    So I will wait for your help about this because I really really dont know how to use this :p but take your time dude ;) Thanks !
     
  22. Offline

    Dreadreaver

    Fine with me ;)
     
  23. Offline

    Cake=Lie

    thanks for reading my idea yeah basically thats all that would be nice to be added thanks

    on your questionair
    Please give me your opinion about the next features to come :

    - Drain blood vampire over time (for instance : 0.01 blood every second).
    - Give the hablity to human players to cure a vampire doing something like that :
    A human killing a vampire with wooden weapon AND with 1 diamond + 1 water bucket + 20 wheat + 20 sugar in his inventory will turn the vampire into human.
    - Vampire wearing a diamond armor will be able to go out at sunlight.
    - Vampire will drop bones/gunpowder/redstone when they are killed.

    So what do you think about it ?
    I think draining blood should be for a certain type of vampire like in my older post so not all vampires end up leaking blood
    Humans curing vampires.. seems ok but not really that great to add because then vampires will become human and may not want to become human... also it is a bit more rpg like if a group of humans force a vampire to use an altar :)
    I like the idea of vampires wearing diamond can go out in sunlight
    and vampires dropping items sounds like a good idea maybe they should drop a gold igot? a couple of redstone or something else perhaps variable in a text file eg putting your own data value in?

    Nice mod keep the good work up :D

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

    Dreadreaver

    Nonono extra drops would be bad as one could just let his friend kill him all the time so they have an unlimited amount of whatever is the extra drop.
     
  25. Offline

    dgrb

    do the slowly lose blood first thats what i think you should do first
     
  26. Offline

    Xecaquan

    thanks for updating this very cool mod, d/l'ed and installed once again. My wife will be happy :)
     
  27. Offline

    TrainYourBrain

    Version 2.2 released.

    Changelog :
    • 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.
     
  28. Offline

    dual★moon

    YES. I love it. Keep up the good work, seems to run great.

    EDIT: [[disregard, PLBKAC]]
     
  29. Offline

    dgrb

    can you make vampires slowly lose blood next?
     
  30. Offline

    Gracefulslayer

    I installed this mod just today on my personal server, I wanted to test it out and I love what you've done. Only making the spiders attacking you while the other dark creatures don't care about you, very nice touch. Also the whole blood properties very cool. Very nice job, I did notice though while running around at night in the dark i noticed its not as easy to see unless you drop down torches. I personally like the idea that vamps are dark dwelling creatures and don't need a whole lot of torches to see, so I was wondering if you could add some kind of "night vision" for vamps, (I personally would have it so the admins could choose on or off like the colored text) Either that or some way to light up the environment for the vamps, it doesn't need to be much just enough to be able to get your barrings. Anyway awesome work! Thanks for sharing.
     

Share This Page