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
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
Maik8 (07-29-2019),Mr Fingers (11-15-2019)
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
1. Find the item name,you will probably want to add a try-catch if a slot is empty and write your own exception.Code:return GameData.Items.ByID((ushort)itemId).Name;
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.
Last edited by citydrifter; 08-02-2019 at 06:12 AM.
Maik8 (08-02-2019)
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!
//2short//
I am not a middleman nor do I buy/sell anything. If you are being contacted by someone off-site from MPGH then it's not me! Please report these to me via PM. Don't be stupid, think first.