RandomEncounters
This server side mod spawns a random NPC near a random online player at random intervals, and the player wins a random item reward if the NPC is killed within the given time limit.
模組介紹 作者原文
Random Encounters mod for V Rising
See V Rising Database for detailed information about V Rising items, NPCs and more.
This server side mod spawns a random NPC near a random online player at random intervals, and the player wins a random item reward if the NPC is killed within the given time limit.
It can be configured using the configuration files which are created on first run.
Change Log
0.8.6
- Excluded some NPCs which are summoned by other NPCs.
0.8.5
- Removed the additional dependency to GT_VRising_GameData. It is now an embedded library.
0.8.4
- NPCs should no longer spawn in object anymore (Well, much less frequently anyway).
0.8.3
- Fixed an issue with InCombat detection.
- Mod now depends on
0.8.2
- Logging improvements.
0.8.1
- Fixed an issue which was causing spawned NPC not being detected.
0.8.0
- Fixed an issue which was causing the server crash.
- You can now specify the quantities for each item in Items.cfg. Unobtainable items are disabled by default.
- Increased performance for spawn detection.
0.7.1
- Fixed an issue which was causing the same player being picked every time.
Source Code
Source code of this mod can be found at:
Installation
Random Encounters mod requires Wetstone plugin installed. The latest version of Wetstone can be downloaded from
Since version 0.7.0, the hot reloading feature of Wetstone does NOT work for RandomEncounters. Instead, please use the!re reload feature after you make an configuration change.
Chat Commands
All chat commands use the default prefix of!randomencounter or!re. They are only accessible by server admins.
Commands!re start or just!re: Starts an encounter for a random online user.!re me: Starts an encounter for the admin who sends the command.!re reload: Reloads the configuration without restarting the server.!re {playerName}: Starts an encounter for the given player, for example!re Adain.!re disable: Disables the random encounter timer.!re enabled: Enables the random encounter timer.
Configuration files and options:
Main.cfg
[Main]
Determines whether the random encounter timer is enabled or not.
Setting type: Boolean
Default value: true
Enabled = true
When enabled, players who are in a castle are excluded from encounters
Setting type: Boolean
Default value: true
SkipPlayersInCastle = true
When enabled, players who are in combat are excluded from the random encounters.
Setting type: Boolean
Default value: false
SkipPlayersInCombat = false
Minimum seconds before a new encounter is initiated. This value is divided by the online users count.
Setting type: Int32
Default value: 1200
EncounterTimerMin = 1200
Maximum seconds before a new encounter is initiated. This value is divided by the online users count.
Setting type: Int32
Default value: 2400
EncounterTimerMax = 2400
Maximum seconds until the player can kill the NPC for a reward.
Setting type: Int32
Default value: 120
EncounterLength = 120
The lower value for the NPC level - Player level difference. For example, if player level is 50, and this setting is 20, then the lowest level of the spawned NPC would be 30.
Setting type: Int32
Default value: 99
EncounterMinLevelDifference = 99
The upper value for the NPC level - Player level difference. For example, if player level is 50, and this setting is 20, then the highest level of the spawned NPC would be 70.
Setting type: Int32
Default value: 0
EncounterMaxLevelDifference = 0
System message template for the encounter.
Setting type: String
Default value: You have encountered a {0}. You have {1} seconds to kill it for a chance of a random reward.
EncounterMessageTemplate = You have encountered a {0}. You have {1} seconds to kill it for a chance of a random reward.
System message template for the reward.
Setting type: String
Default value: Congratulations. Your rew
安裝與使用 安裝:BepInEx 外掛
- 本站下載的壓縮包就是模組本體,通常是 BepInEx 外掛(解壓後得到 .dll 或外掛資料夾)。
- 建議流程:用社群模組管理器(如 r2modman)選中本遊戲後匯入該模組,管理器會自動裝好 BepInEx 前置並處理依賴。
- 手動流程:先在遊戲目錄裝好 BepInEx 載入器,再把解壓出的 .dll 或外掛資料夾放進 BepInEx/plugins/。
- 啟動遊戲,BepInEx 控制台會列印載入日誌;確認這個模組出現在日誌裡即為安裝成功。
帶「前置依賴」的模組需要一併安裝,否則不會載入。功能開關通常在遊戲內或外掛自帶的設定檔裡調整。
下面這些內容需要先安裝,否則該模組不會生效: