SolvedTradebot

Posts 1–9 of 9 · Page 1 of 1
Tradebot
Hey, as the title says i want to know if there are trade-bots out there wich we could use.
I still know the "Merchant Bot" / "AdvMerchBot" from K-relay and i still have the .dll files, but i don't know what happened to K-relay (had been inactive for quite some time) since K-relay does not seem to work anymore, is there any other way to do it? And if not, maybe someone can get intouch with me, who knows how i could start creating my own Trade-bot (C#-knowledge ist there).

I appreciate every answer, so please don't be shy!
I have a repository with krelay updated here: gitlab.com/arkzzz/krelay assuming that the plugins are old though they may not work anymore

I also have a java clientless library that you can find at gitlab.com/arkzzz/realmjay
Thanks, I got Krelay to work, but sadly the trade plugin i have is outdated and won't load (throws an error, something like: The type "CommandHandler" could not be loaded in Lib K Relay.
Any chance the is a fix for it?
If not, would you say it is hard to write a tradebot myself? - I am used to winforms and Unity (C#) currently.
After a bit of digging around here and trial and error, i got a few things working now:
Detect the needed packets (when a trade is requested, started, changed, accepted, cancelled, and so on)
Print the own inventory as a message (for testing)
Grab all Item IDs, names and if it is soulbound from the objects.xml.

Now that i have the hooked packets, how does one handle them?
I mean for example, how can i read out of the TRADESTART packet, wich Items the other dude has?

How can i see wich item's the other dude has selected in an TRADECHANGED packet?
(i know these packets exists, may the spelling here is wrong as i am currently not looking at the source code)

Last but not least how do i select items myself?
- Guess here would be to create my own tradechange packet using the packetwriter.

Regards,

Maik8
Quote Originally Posted by Maik8 View Post
After a bit of digging around here and trial and error, i got a few things working now:
Detect the needed packets (when a trade is requested, started, changed, accepted, cancelled, and so on)
Print the own inventory as a message (for testing)
Grab all Item IDs, names and if it is soulbound from the objects.xml.

Now that i have the hooked packets, how does one handle them?
I mean for example, how can i read out of the TRADESTART packet, wich Items the other dude has?

How can i see wich item's the other dude has selected in an TRADECHANGED packet?
(i know these packets exists, may the spelling here is wrong as i am currently not looking at the source code)

Last but not least how do i select items myself?
- Guess here would be to create my own tradechange packet using the packetwriter.

Regards,

Maik8
1. Find the item name,
Code:
return GameData.Items.ByID((ushort)itemId).Name;
you will probably want to add a try-catch if a slot is empty and write your own exception.

2. A function to update the trade status, use booleans to help with tracking changes or item selection.

3. A struct to track the name and number.

4. Hook RequestTradePacket to see incoming requests and request to trade.

All trade must be created using Client SendToServer.
Thank you, but i figured quite a bit of it out already and also got my first automated trades working, it will still take quite some time to finish, since i still need a GUI to create trades and i also have very limited time atm. But it is going to be finished!
Quote Originally Posted by Maik8 View Post
Thank you, but i figured quite a bit of it out already and also got my first automated trades working, it will still take quite some time to finish, since i still need a GUI to create trades and i also have very limited time atm. But it is going to be finished!
Would that mean this help thread is solved then?
Quote Originally Posted by Danny View Post


Would that mean this help thread is solved then?
Yes, it did.
//2short//
Posts 1–9 of 9 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?