I'm new to coding in Microsoft Visual Studio (though I have done a ton of other coding languages - e.g Javascript, Java...)
This may be a bit of a noob question but I am new after all.
I am trying to write an auto trade bot using K Relay - yes, quite ambitious I suppose, but I have
coded auto trade bots for ROTMG in the past (which copyright law forbids me to upload here)
I usually hardly ever ask questions on forums like this one - instead I try and find a way around
it or search for something on google but I realized that this question is API-Specific...
I'm having trouble sending the "ChangeTrade" packet to select the item.
Which requires you to define the variables:
Offers => Boolean[]
Send => Boolean
Id => Byte
I noticed that there is a variable type in the K Relay - boolean[]
I'm not so sure how to assign a value to it or what assignable values there are.
I did not find much documentation on it and debugging didn't help either...
This is the output my debugging produced:
Offers = System.Boolean[]
send = True
ID = 45
I'm fairly confident I am defining the "send" and "Id" variables correctly.
But the offers variable is seriously confusing for me.
Here's some code which I made - it's supposed to change your offer to a mana potion:
Code:
ChangeTradePacket pkt = (ChangeTradePacket)Packet.Create(PacketType.CHANGETRADE);
pkt.Id = 95;
pkt.Send = true;
Boolean[] moo = ??!!;
pkt.Offers = moo;
client.SendToServer(pkt);
If somebody could show me how it's done that'll be awesome. Thanks