Skip to content

Row 3021: /trade <name> from the chat bar, as in v83 - #1517

Merged
neeerp merged 1 commit into
masterfrom
v83/trade-cmd-1
Nov 9, 2026
Merged

neeerp merged 1 commit into
masterfrom
v83/trade-cmd-1

Conversation

@neeerp

@neeerp neeerp commented Nov 9, 2026

Copy link
Copy Markdown
Owner

v83's chat bar takes /trade <name> and /Game Trade <name> (FUN_0052fad4, StringPool 0x82/0x1463). It runs the same routine as the character info's Trade button: it finds the name among the map's other characters (ignoring case) and sends trade create + invite, or prints "Unable to find the character.".

  • HC MapChars::find(name) → the character id or 0.
  • UIChatBar routes both commands to UITradingRoom::request.
  • UITradingRoom::request now checks the admin refusal before the open-dialog one, in v83's order.
  • /CashTrade is left out because RustMS has no cash trades.

GUI-checked on the lane world: /trade nobodyhere and /trade mageb (yourself) print "Unable to find the character."; /trade ic9zpkp96kjd opens the trade room, and the second player gets the invite (0x13A mode 2, type 3, from mageb).

v83's chat bar takes /trade and /Game Trade with a name (FUN_0052fad4),
the routine behind the character info's Trade button: it looks the name
up among the map's other characters and sends the trade's create and
invite, or says "Unable to find the character.". The admin refusal now
comes before the open-dialog one, in v83's order. /CashTrade is left
out: RustMS has no cash trades.
@neeerp
neeerp merged commit 609e405 into master Nov 9, 2026
1 check passed
@neeerp
neeerp deleted the v83/trade-cmd-1 branch November 9, 2026 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant