Repository navigation
Row 3021: /trade <name> from the chat bar, as in v83 - #1517
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.".MapChars::find(name)→ the character id or 0.UIChatBarroutes both commands toUITradingRoom::request.UITradingRoom::requestnow checks the admin refusal before the open-dialog one, in v83's order./CashTradeis left out because RustMS has no cash trades.GUI-checked on the lane world:
/trade nobodyhereand/trade mageb(yourself) print "Unable to find the character.";/trade ic9zpkp96kjdopens the trade room, and the second player gets the invite (0x13A mode 2, type 3, from mageb).