KGvalheim-Marketplace_And_Server_NPCs_Revamped icon

Marketplace And Server NPCs Revamped

Mod adds Marketplace where people can sell/buy items and 5 more NPC's: Trader/ Banker/ Teleporter / Info / Feedback

Last updated 2 days ago
Total downloads 1902
Total rating 2 
Categories Server-side Client-side
Dependency string KGvalheim-Marketplace_And_Server_NPCs_Revamped-6.0.1
Dependants 8 other mods depend on this mod

README

https://i.imgur.com/CkSehPu.png https://i.imgur.com/dBf99Od.png

Mod adds 5 different NPCs to server so admins can configure them from serverside with no need to restart server for applying settings:

  1. 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).

  2. new Seller NPC - is basically a trader npc that sells items that admins set in SellerProfiles.cfg. This file is auto-updated into serverside so that you don't need to restart server for applying new items to a seller.

  3. new Buyer NPC - same as seller NPC but instead of Selling N items for X gold he BUYS N items for X gold

  4. 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

  5. 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**

https://i.imgur.com/iWZO1dp.png

How to spawn/change NPC:

  1. Add yourself as server admin

  2. Open console (F5) and write: spawn marketplacenpc

https://i.imgur.com/gDYUi8R.png

  1. To control NPC (change profile, override model, override name, snap to ground and rotate or change NPC type) press Shift + Interact on NPC

https://i.imgur.com/lQ5SPQf.png

Menu:

https://i.imgur.com/5A9Fgx4.png

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

https://i.imgur.com/O1wcMwZ.png

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:

https://i.imgur.com/qKLkeIu.png

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"

https://i.imgur.com/QQNDo5f.png

Marketplace 100% supports EpicLoot mod with all its MagicItemEffects and extentions:

https://i.imgur.com/xL8JFFK.png

"My Sales" button allows you to see only YOUR sales so you can cancel them

Seller NPC:

  1. In order for admin to change Seller NPC data you need to go BepInEx/config/MarketplaceKG/SellerProfiles.cfg

https://i.imgur.com/q5s4Nxi.png

https://i.imgur.com/e0xAQR6.png

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:

https://i.imgur.com/PnEl06g.png

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 :

https://i.imgur.com/qJtJjua.png

Result:

https://i.imgur.com/CJCwWct.png

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:

https://i.imgur.com/dOkBoHO.png

Result:

https://i.imgur.com/7SDTOnb.png

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:

https://i.imgur.com/sD7wex8.png

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

https://i.imgur.com/RY551NN.png

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

https://i.imgur.com/yZVRMLF.png

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.

https://i.imgur.com/Hoy6Gg1.png

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

https://i.imgur.com/5ZHfxlo.png

To install mod place MarketPlaceRevamped.dll into Client Plugins folder AND Server Plugins Folder

https://i.imgur.com/gTTJ9HJ.png

For Questions or Comments, find ## KGhttps://i.imgur.com/CPYNjXV.png in the Odin Plus Team Discord: https://i.imgur.com/XXP6HCU.png

Available versions

Please note that the install buttons only work if you have compatible client software installed, such as the Thunderstore Mod Manager. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2021-11-26 6.0.1 192 Version 6.0.1 Install
2021-11-26 6.0.0 3 Version 6.0.0 Install
2021-11-22 5.9.0 254 Version 5.9.0 Install
2021-11-21 5.8.0 158 Version 5.8.0 Install
2021-11-20 5.7.1 118 Version 5.7.1 Install
2021-11-20 5.7.0 4 Version 5.7.0 Install
2021-11-20 5.6.0 41 Version 5.6.0 Install
2021-10-28 4.3.0 679 Version 4.3.0 Install
2021-10-27 4.2.0 88 Version 4.2.0 Install
2021-10-27 4.1.0 60 Version 4.1.0 Install
2021-10-27 4.0.0 28 Version 4.0.0 Install
2021-10-25 3.6.0 91 Version 3.6.0 Install
2021-10-24 3.5.0 70 Version 3.5.0 Install
2021-10-23 3.4.0 87 Version 3.4.0 Install
2021-10-23 3.3.0 29 Version 3.3.0 Install