Page 1 of 1

uosteam trade window informations

Posted: January 9th, 2018, 5:54 pm
by Mourad
Hello,

i am wondering if there is any command in uosteam that can read informations from a trade window, item properties ...etc

i searched but couldn't find anything about this.

ty

Re: uosteam trade window informations

Posted: January 13th, 2018, 2:37 pm
by The Silvertiger
Possibly... Would have to do with ingump, I believe. Are you trying to afk trade things? Not seeing a need for this besides that. If so don't release your code to anyone for they will find a way to exploit it.

Re: uosteam trade window informations

Posted: January 13th, 2018, 5:24 pm
by Haswell
Yes it is possible, you'll need to search for layer 0. I'm not sure what you want to check, keep in mind that the following sample will check for items on your side of the trade. If you want to check for items the other player has added it is basically the same, except for the first line (target alias won't be 'self').

Code: Select all

// Define a target
@setalias 'target' 'self'
// Check if trade window exists
if @findlayer 'target' 0
  sysmsg 'Trade window found'
  // Create an alias for that trade window
  @setalias 'trade window' 'found'
  // Check if item type exists provided trade window
  if @findtype 0xdf0 'any' 'trade window'
    sysmsg 'Item found'
  else
    sysmsg 'Item not found'
  endif
  // Sample: moving spellbook type from backpack to trade window
  if @movetype! 0xefa 'backpack' 'trade window'
    pause 1000
  endif
else
  sysmsg 'Trade window not found'
endif

Re: uosteam trade window informations

Posted: January 13th, 2018, 8:38 pm
by Mourad
ty silvertiger for the advice and haswell for the code. this definitly is a good starting point.

its a shame there is no table with all steam commands. The pdf documentation isn't complete also. makes it harder for anyone to learn all the commands.

Re: uosteam trade window informations

Posted: January 14th, 2018, 2:48 am
by The Silvertiger
I agree. There is very little useful info in that read me.