Marketplace And Server NPCs Revamped
Mod adds Marketplace where people can sell/buy items and 7 more NPC's: Quests/ Trader / Banker / Teleporter / Info / Feedback / Gambler
By KGvalheim
Date uploaded | 2 years ago |
Version | 7.3.2 |
Download link | KGvalheim-Marketplace_And_Server_NPCs_Revamped-7.3.2.zip |
Downloads | 872 |
Dependency string | KGvalheim-Marketplace_And_Server_NPCs_Revamped-7.3.2 |
README
Like my mods? Support me: Paypal: [email protected]
Mod adds 7 different NPCs to server so admins can configure them from serverside with no need to restart server for applying settings:
-
Marketplace NPC - allows players to sell/buy items by setting them on marketplace with setting quantity + price. Even if player is offline he still will get gold if someone buys his item. (Player will need to get his gold by clicking "Income" button in right bottom).
-
new Trader NPC - is basically a trader npc that exchanges items that admins set in TraderProfiles.cfg. This file is auto-updated into serverside so that you don't need to restart server for applying new items to a trader.
-
Banker NPC - allows people to store any quantity of items in it
-
ServerInfo NPC - shows text info from ServerInfoProfiles.cfg file which is also updated in runtime. Rich-text is automaticly applied to text, so you can use <color=red> </color> and other rich text markers. Also I added custom <button>Name, link, width, height<button> mark so you can add dynamic buttons to your server info
-
Teleporter NPC - teleport-hub that allows admins to set up teleport points in any place of map. Can use different profiles as any other NPC in TeleportHubProfiles.cfg
-
Gambler NPC - adds gamble system in game
-
Quests NPC - adds quest system in game that allows admins to create their own quests for players with custom targets/types/rewards/conditions
How to spawn/change NPC:
-
Add yourself as server admin
-
Open console (F5) and write: spawn marketplacenpc
- To control NPC (change profile, override model, override name, snap to ground and rotate or change NPC type) press Shift + Interact on NPC
Menu:
Change NPC Type => Changes NPC type to chosen one
Change NPC Profile => Changes NPC profile string so Seller/Buyer/Info/Teleporter can change its values from config
Override NPC Name => Overrides NPC name to any string. Can apply rich text to it (font size, font color) with <color> and e.t.c
Override NPC Model => Overrides NPC model to your chosen Creature Prefab from Valheim (you can also use modded creatures)
Apply => Apply options
Main Options Config:
All main options are located in BepInEx/MarketplaceKG/MarketPlace.cfg
OnlyEpicLootItems => If true, then players will be able to sell ONLY ITEMS WITH EPICLOOT EFFECTS in marketplace
ItemMarketLimit => limit of max slots that player can place in marketplace (I recommend to leave it on 15)
MarketTaxes => This % of gold will be reduced for seller to get after his item is sold
VIPplayerTaxes => **## This taxes will be applied instead of usual one if player is in VIP list
BlockedPlayers => steam ids (write each after , ) that can't use marketplace
VIPplayersList => steam ids (write each after , ) that have different taxes value
CanTeleportWithOre => can player use teleport hub (teleporte npc) with ore in their inventory
BlockedPrefabs => prefab on each line is prohibited to sell in marketplace
Marketplace NPC:
Marketplace allows player to add item in market slot and for other player to buy it. After your item slot bought, you get gold in "Income" tab. Player will get gold in "Income" even if seller is offline.
In order for seller to get his gold you need to click INCOME button.
Players can cancel their own lots after pressing on it and clicking "CANCEL"
Marketplace 100% supports EpicLoot mod with all its MagicItemEffects and extentions:
"My Sales" button allows you to see only YOUR sales so you can cancel them
Seller NPC:
- In order for admin to change Seller NPC data you need to go BepInEx/config/MarketplaceKG/SellerProfiles.cfg
In Order to add items to seller you need to add each item in new line with template: ItemPrefab , Count , Price All items will automatically be added into [default] profile.
If you want to add items in specific profile you need to write [profilename] and then start adding items with new line each
Example:
Here I added two profiles Profile1 and Profile2 with items in each. Then You should apply profile to Seller NPC inside game with NPC UI :
Result:
If you assign Profile2 it will have different items
Buyer NPC:
It does SAME as Seller NPC but instead of Selling N Items for X gold it BUYS N items for X gold.
All Buyer Data is inside BepInEx/config/BuyerProfiles.cfg. Data has same structure as Seller NPC:
Result:
Info NPC:
NPC will read info from ServerInfo.cfg and display that on GUI. Rich text markers can be applied to text you write. Guide Also if you want to add button in your GUI (that will open any link), you can use <button>Name of button, link to site, width, height<button>
ServerInfo npc uses "default" profile by default. But you can add as many info profiles you want (same as Trader NPC profiles). Example below:
Non-profiled text will be applied to every new Info NPC with "default" profile. But if you want to add your own you need to add new line with [ProfileName] and then in new line write your text you want
Teleporter NPC:
NPC acts as teleport-hub but all in one. Its profile/data controlled by BepInEx/MarketplaceKG/TeleportHubProfiles.cfg
To Add new teleport spots you need to add them new line each with structure: Spot Name, X coord, Y coord, Z coord, Icon name
You can add Icons in BepInEx/config/MarketplaceKG/MapPinsIcons folder
I recommend you to use 32x32 icons. Also you can write ItemPrefab name instead of icon in order to use its icon as map pin When you click Interact on Teleporter NPC with profile you will open map and it will show pins to you. After Left Mouse click on icon you will teleport to XYZ coords of spot.
XYZ COORDS SHOULD BE INTEGERS VALUE ONLY (5.6 <= WRONG, 5 <= good)
ALL OPTIONS / PROFILES / NPCs DATA ARE AUTO-RELOADED IN SERVER RUNTIME WITHOUT RESTART
To install mod place MarketPlaceRevamped.dll into Client Plugins folder AND Server Plugins Folder
For Questions or Comments, find ## KG in the Odin Plus Team Discord: