Trodi-BloodyMerchant icon

BloodyMerchant

BloodyMerchant is a mod designed for V Rising, offering the capability to create custom in-game merchants, adding a layer of dynamic and immersive gameplay.

Last updated 5 months ago
Total downloads 852
Total rating 0 
Categories Server Mods Gloomrot Update
Dependency string Trodi-BloodyMerchant-0.2.0
Dependants 0 other packages depend on this package

This mod requires the following mods to function

BepInEx-BepInExPack_V_Rising-1.668.5 icon
BepInEx-BepInExPack_V_Rising

BepInEx pack for V Rising. Preconfigured and includes Unity Base DLLs.

Preferred version: 1.668.5
deca-Bloodstone-0.1.6 icon
deca-Bloodstone

Plugin framework and general utilities for V Rising mods.

Preferred version: 0.1.6
deca-VampireCommandFramework-0.8.0 icon
deca-VampireCommandFramework

Command framework for developers to easily create universal commands for their plugins.

Preferred version: 0.8.0

README

BloodyMerchant

BloodyMerchant is a mod designed for V Rising, offering the capability to create custom in-game merchants, adding a layer of dynamic and immersive gameplay.

BloodyMerchant

Changelog

0.2.0

  • Fix Autorefill
  • Fixed a problem with products that did not work correctly

0.1.0

0.0.1

  • Initial public release of the mod

Mod Features

BloodyMerchant is a key component of the Blood Mod Pack. This plugin empowers you to craft personalized in-game traders, akin to BloodyShop. However, it leverages in-game traders, providing a more dynamic and immersive experience.

This server-side plugin mandates the following plugins for seamless operation:

  1. BepInEx
  2. VampireCommandFramework
  3. Bloodstone

Installation

  1. Copy BloodyMerchant.dll to your BepInEx/Plugins directory.
  2. Launch the server to create the config file; all configurations can be done in real-time in-game.

Commands

.merchant list
  • Lists all available merchants on the server.
.merchant create <NameOfMerchant> [PrefabGUIDOfMerchant] [Immortal] [Move] [Autorespawn]
  • Creates a custom merchant and adds it to the merchant's list.
    • NameOfMerchant: Unique identifier for the merchant.
    • PrefabGUIDIfMerchant: GUID for the merchant NPC to spawn.
    • Immortal (True/False): Makes the merchant immortal and impervious to damage.
    • Move (True/False): Enables or disables the merchant's movement.
    • Auto respawn (True/False): Respawns the merchant when the server is back online.
    • Example: .merchant create test -208499374 true false true
.merchant remove <NameOfMerchant>
  • Removes the merchant from the list (requires killing the merchant while alive).
    • Example: .merchant remove test
.merchant spawn <NameOfMerchant>
  • Spawns your custom merchant.
    • Example: .merchant spawn test
.merchant kill <NameOfMerchant>
  • Kills the desired merchant.
    • Example: .merchant kill test
.merchant product add <NameOfMerchant> <ItemPrefabID> <CurrencyfabID> <Stack> <Price> <Stock> [Autorefill true/false]
  • Adds products to the merchant in real-time.
    • NameOfMerchat: Unique merchant name set previously.
    • ItemPrefabID: Product item ID for the merchant to sell.
    • CurrencyfabID: ID of the item used as currency to buy the product.
    • Stack: Number of products received by the player for that item when purchased.
    • Price: Amount of currency item players need to purchase the item.
    • Stock: Availability of the item with the merchant (limited or unlimited, max is 99).
    • Autorefill (True/False): Allows players to buy the item infinitely.
    • Example: .merchant product add test 1557814269 -77477508 1 1 99 true
.merchant product remove <NameOfMerchant> <ItemPrefabID>
  • Removes a product from the merchant in real-time.
    • Example: .merchant product remove test 1557814269
.merchant product list <NameOfMerchant>
  • Lists all products currently available for sale by a certain merchant.
    • Example: .merchant product list test
.merchant config show <NameOfMerchant>
  • Shows the Immortal, Move, and Autospawn configuration for a certain merchant.
    • Example: .merchant config show test
.merchant config immortal <NameOfMerchant> <true/false>
  • Changes the immortal configuration for a certain merchant in real-time.
    • Example: .merchant config immortal test true
.merchant config move <NameOfMerchant> <true/false>
  • Changes the move configuration for a certain merchant in real-time.
    • Example: .merchant config move test true
.merchant config autorespawn <NameOfMerchant> <true/false>
  • Changes the auto-spawn configuration for a certain merchant in real-time.
    • Example: .merchant config autorespawn test true

Resourcess

Complete items list of prefabs/GUID

Credits

This mod idea was suggested by @Vex on our community idea tracker. Please vote and suggest your ideas here.

V Rising Mod Community is the best community of mods for V Rising.

@Deca, thank you for the exceptional frameworks VampireCommandFramework and BloodStone, based on WetStone by @Molenzwiebel.

@LecherousCthulhu for sharing code on how to change the trader's inventory.

@Willis for being an amazing community modder, providing the initial code that helped bring this idea to life.

@Backxtar owner & founder of Bloody Mary server, a talented modder who contributed by writing certain functions, debugging, and group efforts to make this mod work.

Special thanks to the testers and supporters of the project:

  • @Vex, owner & founder of Vexor RPG server, a tester and great supporter who provided his server as a test platform and took care of all the graphics and documentation.

Bloody