Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Silkroad Online > SRO Coding Corner
You last visited: Today at 02:02

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



C# - Little Bot, need help!

Discussion on C# - Little Bot, need help! within the SRO Coding Corner forum part of the Silkroad Online category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jun 2009
Posts: 8
Received Thanks: 1
C# - Little Bot, need help!

Hello guys,

for now i want to create a simple vsro bot in C#.

- I can understand and use C# syntax
- I've never used socket programming before
- I've never used Ollydbg before

What do I need to know? Where to Start?

I think the first problem would be to make the client start, log in and retrieve charakter informations. That would be my first goal.

For that i need to know several things, like how to read informations from the client and use them for programming the bot? (Like the charakter name, level, HP, MP and so on)

If anybody maybe have any tipps or even a documentated starting source I would be very thankful!
kvix is offline  
Old 08/29/2015, 19:23   #2

 
sarkoplata's Avatar
 
elite*gold: 166
Join Date: Apr 2009
Posts: 2,339
Received Thanks: 2,661
Quote:
Originally Posted by kvix View Post
Hello guys,

for now i want to create a simple vsro bot in C#.

- I can understand and use C# syntax
- I've never used socket programming before
- I've never used Ollydbg before

What do I need to know? Where to Start?

I think the first problem would be to make the client start, log in and retrieve charakter informations. That would be my first goal.

For that i need to know several things, like how to read informations from the client and use them for programming the bot? (Like the charakter name, level, HP, MP and so on)

If anybody maybe have any tipps or even a documentated starting source I would be very thankful!
Firstly you won't use Ollydbg and you don't have anything to do with memory stuff, except the redirected client start which is advanced and you won't need it at the beginning.

There are some completed bot sources out there. One I can remember is zBot by zeteris. Check that out.
You can check the open-source silkroad emulators as well. Those are the most useful stuff to code a bot.

What you're going to do is (ultra-simplified), redirect your sro client to your own bot (proxy). This will be super easy because a legend called Drew Benton has given us something called SilkroadSecurityApi some time ago and all the boring/hard stuff is handled by that. Packets will go through your proxy, so your bot can interfere your game. Your bot will receive the responses from server before your client so you will have all the control.

After everything is set, you're just going to explore the opcodes and their packet structures and in most of your time you will parse packets. Which is the only fun part of it, imo.

No one can give you a list of useful sources, but there are alot of them. So start by searching them!
sarkoplata is offline  
Thanks
2 Users
Old 08/29/2015, 21:40   #3
 
elite*gold: 0
Join Date: Jun 2009
Posts: 8
Received Thanks: 1
Thanks, for fast reply.

I've allready looked inside the code of the zBot, and also in a clientless login code. The clientless is definately using the security Api.

I've tried to get zbot to work, changed the server ip adress and tried to launch the bot with a client, but the client just froze at start up. I can't even see the login window. And I have no Idea why...

The source is mostly understandable, but its still hard to find out wich parts of the code do what or better said why? There are almost no documentation in the code.
kvix is offline  
Old 08/30/2015, 21:15   #4
 
zeteris's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 575
Received Thanks: 752
Quote:
Originally Posted by kvix View Post
Thanks, for fast reply.

I've allready looked inside the code of the zBot, and also in a clientless login code. The clientless is definately using the security Api.

I've tried to get zbot to work, changed the server ip adress and tried to launch the bot with a client, but the client just froze at start up. I can't even see the login window. And I have no Idea why...

The source is mostly understandable, but its still hard to find out wich parts of the code do what or better said why? There are almost no documentation in the code.
That code is a huge mess. And if you got any questions feel free to ask via PM or Skype.
It's nice to know there are still people left who're into silkroad programming.
zeteris is offline  
Old 08/30/2015, 23:03   #5
 
elite*gold: 0
Join Date: Jan 2009
Posts: 314
Received Thanks: 686
Quote:
Originally Posted by zeteris View Post
It's nice to know there are still people left who're into silkroad programming.
Sadly there are no more bigger teams eagerly working on something cool. Everything has shifted towards tools and stuff for their own servers. Beginners are trying to accomplish something without the basic knowledge. The only really usable API for Silkroad is SilkroadSecurityAPI, which even beginners kinda get confused with. I got around 2GB of Silkroad project source code. Everything is kind of a mess where beginners need to look through which is quite frustrating to do. This game might be dead, but it's still kind of fun to develop and experiment with. I often though about opening everything I worked on, but it would only end up in another source of code. People who know stuff to some degree will use it on their projects but no public APIs are released in return.

Some projects I work on in spare time. Their actual state might never be revealed.
DaxterSoul is offline  
Thanks
4 Users
Reply




All times are GMT +1. The time now is 02:02.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.