tModLoader

tModLoader

356 ratings
The Shop Market
2
   
Award
Favorite
Favorited
Unfavorite
Mod Side: Both
tModLoader Version: 1.4.3, 1.4.4
File Size
Posted
Updated
249.145 KB
11 Aug, 2021 @ 12:25pm
8 May @ 10:30am
22 Change Notes ( view )

Subscribe to download
The Shop Market

Description
The Shop Market is a mod that introduces a single item that allows you to access any npc's shop that is in your town and not homeless.
The shop market can be bought from the travelling merchant.
It has a 33% chance to be available.
The portable version can be bought from the skeleton merchant as long as the travelling merchant has already offered the non-portable version first.
The wall mounted version can be crafted from the standing version.
You can also sell items at the shop market by shift-clicking the item with the market open.
Sell price is determined by your least happiest npc.
If you have any suggestions or bug reports, please report them on the steam workshop page or the discord server: https://discord.gg/SDThAjNpbM

Special thanks goes to jopojelly for permitting to me use their source code for some UI elements.
Special thanks goes to Ganpan14O for making the custom sprites.

1.4.4.9+: The new shop system allows for the shop market to display all purchasable items even if the regular npc's shop is full. (excluding the travelling merchant)

Like my mods? Consider supporting me here: Donate[www.buymeacoffee.com]
Originally posted by tModLoader OneStopNPCShop:
Developed By Jacklz
156 Comments
Jake  [author] 7 Jul @ 11:08am 
@bada1 check your client.log file and post it in the discord
bada1 7 Jul @ 7:20am 
Hello! If i try to click on the unmet items, my game will freeze. Is this a bug?
Jake  [author] 3 May @ 10:06pm 
@Qwazer join the discord and post your client.log file after replicating the freeze again
Qwazer 3 May @ 4:39pm 
Hello! I tried using the mod with a bunch of others and whenever I try to click on the items being sold, my screen freezes and I can't do anything except force close the game. Do you happen to know what I could do to solve this??
Ganpan140 3 May @ 12:59pm 
@Wyneus Jacklz made the shop editor, or at least a shop editor, so if you are having a hard time with it you should probably comment there or join our discord and ask there
Wyneus 1 May @ 3:11am 
Hello, there is such a mod as NPC Shop Editor, but it is too difficult to understand how to set up NPCs, remove and add what they sell, as well as setting up the currency, is it possible to do this in your mod, but easier to understand?
Jake  [author] 22 Oct, 2024 @ 11:17pm 
@Tyler glad it worked, but you dont need to use my mod as a reference, just use the same process for the other items
Tyler 22 Oct, 2024 @ 9:13pm 
@Jake Yes | are you trying to use my mod as a reference in your mod?|
I don't know why but adding(ItemDropRule.Common(ModContent.ItemType) Portable Shop Market & Shop Market Wall Mount shows Error. Shop Market all right does not occur error and with any items added from other mods

Thank you so much, that helped. | your last line should just be itemLoot.Add(ItemDropRule.Common(tableid)); |
Jake  [author] 22 Oct, 2024 @ 11:23am 
@Tyler your last line should just be itemLoot.Add(ItemDropRule.Common(tableid));

are you trying to use my mod as a reference in your mod?
Tyler 22 Oct, 2024 @ 8:34am 
@Jake same error | CS0122 is inaccessible due to its protection level |

code:
ModLoader.TryGetMod("OneStopNPCShop", out Mod shop);
int tableid = shop.Find<ModItem>("ShopMarketPortable").Type; itemLoot.Add(ItemDropRule.Common(ModContent.ItemType<ShopMarketPortable>()));