BloodyWallet

版本 v1.0.0·更新於 2025-05-11

This framework is designed to add a virtual currency to VRising. This opens up a world of possibilities for other mods to integrate with it and serve as a bridge for other mods to use this functionali

模組介紹 作者原文

Bloody.Wallet

This framework is designed to add a virtual currency to VRising. This opens up a world of possibilities for other mods to integrate with it and serve as a bridge for other mods to use this functionality.

BepInEx 1.733.2 (RC2)

Requirements

Ensure the following mods are installed for seamless integration:

  • BepInEx 1.733.2 (RC2)
  • VampireCommandFramework
  • Bloody.Core

Changelog

1.0.0

  • Updated to Oakveil

0.1.2

  • Fixed error when you make a negative money transfer it doubles the amount in the wallet

0.1.0

  • First Release

-

Instructions for using it with your mod

You must include it in your.csproj file as a nuget package

You must include it as a project dependency in your Plugin.cs file

[BepInDependency("trodi.Bloody.Wallet")]

If you want to make the use of Bloody.Wallet an optional dependency, you can do so by including it as an optional dependency in your Plugin.cs file

[BepInDependency("trodi.Bloody.Wallet", BepInDependency.DependencyFlags.SoftDependency)]

API

You have several methods available in the API that you can use, as detailed below:

using BloodyWallet.API;

Add a certain amount of tokens to a user.

bool AddTokenToUser(int _amount, string _method, Entity playerReciviedTokens, Entity userEntityExecuteFunction, out string message)

Remove a certain amount of tokens from a user.

bool RemoveToken(int _amount, string _method, Entity playerReciviedTokens, Entity userEntityExecuteFunction, out string message)

Returns the list of tokens for all users on the server, and if we specify a player's name, it will only return the tokens for that user.

bool listToken(string _playerName, out List message)

Returns the number of tokens for a user as an integer.

bool GetTotalTokensForUser(string _playerName, out int tokens)

Transfers tokens from one user to another.

bool TranferTokenFromOtherUser(int _amount, string _method, Entity playerReciviedTokens, Entity fromUserSendToken, out string message)

Installing on your server

  • Copy Bloody.Wallets.dll to your BepInEx/Plugins directory.
  • Launch the server once to generate the config file; configurations will be located in the BepInEx/Config directory.

Configuration

In the configuration file trodi.bloody.Wallet you have several options to configure the mod to your liking

Settings file was created by plugin BloodyWallet v0.0.9999

Plugin GUID: trodi.Bloody.Wallet

[General]

Name of your virtual currency

Setting type: String

Default value: BloodyTokens

Name = BloodyTokens

Enable admin commands

Setting type: Boolean

Default value: true

adminCommand = true

Enable users commands

Setting type: Boolean

Default value: true

usersCommand = true

PrfabGUID for exchange tokens

Setting type: Int32

Default value: -77477508

prefabGUIDExchange = -257494203

Available Commands

From the mod options, you can enable or disable commands for admins and/or users as detailed below

Admins.bwa add

  • Add tokens to a player
  • Example:.bwa add Trodi 5.bwa remove
  • Remove tokens from a player.
  • Example:.bwa remove Trodi 5.bwa list
  • List of players with their respective tokens. If is specified, it only returns that player's tokens.
  • Examples:.bwa list or.bwa list Trodi

Players.bw transfer

  • Transfer tokens from your wallet to another player
  • Example:.bw transfer Trodi 5.bw me
  • Show your tokens.
  • Example:.bw me.bwa exchange
  • Exchange your tokens for a game item.
  • Examples:.bwa exchange 5

Credits

The V Rising Mod Community is the premier community for V Rising mods.

@Deca, thank you for the exceptional frameworks VampireCommandFramework

Special thanks to the testers and supporters of the project:

  • @Vex, owner & founder of the 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.

安裝與使用 安裝:BepInEx 外掛

  1. 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
  2. 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
  3. 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
  4. 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。

帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack_V_Risingdeca-VampireCommandFrameworkTrodi-BloodyCore

檔案與校驗

檔案名稱
BloodyWallet-1.0.0.zip
檔案大小
143.8 KiB