Don't Starve Together

Don't Starve Together

Not enough ratings
Slash Command Trading
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
231.521 KB
20 Jul, 2023 @ 10:30pm
14 Mar @ 6:02pm
18 Change Notes ( view )

Subscribe to download
Slash Command Trading

In 6 collections by thegreatmanagement
Don't Starve Together Mod Collection 1
34 items
Don't Starve Together Mod Collection: Magic Wonderland
33 items
Don't Starve Together Mod Collection: Creative Mode
24 items
DST Survivors Temporary Gamemode Collection
20 items
Don't Starve Together Mod Collection: Endless
4 items
DST Cowboy Beefalo Mods
15 items
Description
This is a simple utility mod that implements an in game trading system using slash commands; see below on what the commands are, and how to use them! Best of luck, and happy trading :)

This mod has special support for Island Adventures + Casino Mode (Craftable Slot Machines)! Also works with basically any other mods, including Improved Ownership and other mods like it.

FAQ/explanatory questions:
How are trade fees enforced?
All trades with parties beyond a certain distance of each other (15 tiles, by default) will have duties that need to be paid for the trade to commence; each 25 points of trade value will be taxed at 1 Nightmare Fuel (or other fee item) by default, rounded up. For example, a trade of 24 points costs 1 fee item, a trade of 26 costs 2 fee items by default.
By default, the offerer of the item in a trade pays the fees on it; this means that all trades with one party offering nothing will have the other party pay the duties on the item. All duties will only be paid when the trade is able to be accepted (AKA all parties have the trade items and applicable fees in their inventory; the trade will otherwise be unable to complete).

How do I know what the trade values are?
Examining any tradable item will reveal how much its trade value is, as well as the item's prefab. Trade values are based on the item's rarity/value (1-200 points); irreplaceable items (like Chester's Eyebone) or special items like Accursed Trinkets are untradable.

Commands
/idlist - Shows the trader IDs (a 6 digit randomly generated number on each server load) in game that can be used for trading. Has a 20 second universal cooldown in game per shard
/trade {tradee} {givenumber} {itemgive} {wantnumber} {itemwant} - The base trade command, all arguments necessary and explained below: (NOTE: no quotation marks around any arguments, including prefabs)
- {tradee} - The person you're trading with; for command, you can use their in game name (the first few digits, case sensitive) Klei ID, or the 6-digit trade ID shown in /idlist
- {givenumber} - The quantity of the item you're offering (can be 0, which will show Nothing)
- {itemgive} - The prefab of the item you're offering (you can type Nothing or nothing to offer nothing regardless of {givenumber}, a # corresponding to your in game inventory slot #, or Head/head/Body/body/Hand/hand to trade items from equip slots)
- {wantnumber} - The quantity of the item you want (can be 0, which will show Nothing)
- {itemwant} - The prefab of the item you want (you can type Nothing or nothing to offer nothing regardless of {wantnumber}, a # corresponding to their in game inventory slot #, or Head/head/Body/body/Hand/hand to trade items from equip slots)
/counter {givenumber} {itemgive} {wantnumber} {itemwant} - Same arguments as /trade, except {tradee} is omitted (because this can only be used in response to a trade!)
/cancel - Cancels a trade offer you've sent
/repeat - Makes your character repeat a trade offer you've received
/accept - Accepts a pending trade offer
/decline - Declines a pending trade offer

Tips/tricks for the mod:
• Examining tradable items in your inventory reveals what its prefab is for trading!
• Items are taken for trade from your main inventory first in the leftmost slots, then your backpack, then your equip slots. Items inside tackle containers, Chester, Woby or any other personal storage solution will not be traded from.
• You can still trade when you are dead, the items you trade will drop to the floor! This is useful if you need a revive, as someone can give you a life giving amulet to revive you from afar. Note that you cannot trade something in return when you are dead (except if you're Wanda), because you do not hold anything when you're dead.
• You can trade items in your equip slots across long distances! This includes weapons, armor, backpacks, and heavy objects that aren't irreplaceable! (like Knobbly Tree Nuts or giant crops)
• Trading desert stones and then having the trader use the Lazy Deserter will allow people to teleport you home from anywhere in the world for a small cost!
• While you cannot trade across shards, if you are near a cave entrance/portal you can swap shards to trade, then go back since the trades work anywhere in the world!
• If your character has trouble obtaining the trade fee items, don't fret; you can always trade with other people for their extra fee items!
• You can add custom/modded items to the tradable items list; see the instructions below in the mod settings section!
• /counter is useful if you want to negotiate a trade with someone else, as you can keep sending counter offers back and forth until one party finally agrees on the trade!
• If you're receiving a trade, your available commands are /repeat, /accept, /decline or /counter; if you are initiating a trade, your only command you have is /cancel.

Mod Settings/Defaults:
Fee Scaling: 25 trade value point per fee item; can be set to 0, which will disable fees on all trades!
Fee Item: Nightmare Fuel by default, can be changed into Gold Nugget, Nitre or Dubloons (if Island Adventures or Casino Mode is running on the server); you can also set the item to whatever you want by editing this setting to match the item prefab.
Fee Distance: 15 tiles by default; can be set to 0 to make all trades have fees
Starting Trade Fee Resources: 5 by default, can be disabled by setting to 0
Trade Announcements: Enabled by default, controls whether successful trades will be announced in the server
Fee Payer: Offerer by default (the person who offered the item in a trade pays the fees on it if applicable)

Custom Tradable Item Values
Modded/custom items are supported, but are all given a default trade value of 1-8; equippables are worth 8, edible items are worth 2, other items are worth 1)
Navigate to the modoverrides.lua for the server (the file itself, which can be found in the Master/Caves folders of the server save folder in Documents -> Klei -> DoNotStarveTogether -> ########### (a 9 digit number folder) -> Cluster_#, whichever server it is) Add the item's prefab name to the corresponding wealth tier bracket, and follow a format like this:
ModTradeList# = {"item_prefab1", "item_prefab2"}; do not repeat values!

A special thanks to the following players who helped me playtest the mod for balancing, as well as suggestions/feature ideas!
Guileness, year of the slurper, TheSimpingOne, laumi73, dragon144, Dark knight, Digi_056, okwolf, frds, RigNinja59, qwertyxavier904, Petar, Be, Sneeze's Mom
2 Comments
thegreatmanagement  [author] 11 Apr @ 10:46pm 
it was a great deal!!!!!!!!!!!!!!!!!!!! >:(
Mr.Shady 10 Apr @ 12:51am 
Tried to scam me with snowballs

>:(