SolvedProgramming language for LoL Bots?

Posts 16 of 6 · Page 1 of 1
Programming language for LoL Bots?
Hello i want to know in what programming language LoL Bots are coded. Thank you
There are multiple options:

1) (The Easy Way) Use Bot of Legends and develop your scripts for it in LUA.

2) (The in-depth way) Use any of the following languages (based on what you want your bot to do):
2.1) C
2.2) C++ (recommended by me)
2.3) C# (recommended by me)
2.4) Python
2.5) AutoIT
2.6) Basic
2.7) ???
Only C++
Becuase if you want to code smth you have to change process's memory.
The easiest way is to use C++ (bc there is no WinAPI for C# :C)

Also if you want to use C# i can send you my mcLib (wproject.16mb.com/mclib.php)
Its not perfect but you can write/read/find process's memory using C#

Simple example (console application C#):
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using wMCLib; // Including library

namespace mclibtest
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create a variable of mcLib class
            mcLib m = new mcLib("notepad", 32);
            m.Open(); //Open process
            Console.WriteLine(m.getPID()); //Write PID of notepad

            uint allocated = m.Alloc(); //Allocate new memory
            string str = "yo!hello!"; //String which will be written
            
            m.Write(str, allocated, (uint)str.Length); //Write in notepad's memory
            m.Read(allocated, (uint)str.Length); //Read it back
            
            string read = m.bufferToStringA();//buffer(bytes) -> string
            
            Console.WriteLine(read);//Write it in console (OUTPUT: yo!hello!)
            m.Free(allocated);//Delete allocated memory
            m.Close(); // better to close it but not needed

            Console.ReadKey(true);
        }
    }
}
Ok, Thank you for your answer.

- - - Updated - - -

Quote Originally Posted by Liberaid View Post
Only C++
Becuase if you want to code smth you have to change process's memory.
The easiest way is to use C++ (bc there is no WinAPI for C# :C)

Also if you want to use C# i can send you my mcLib (wproject.16mb.com/mclib.php)
Its not perfect but you can write/read/find process's memory using C#

Simple example (console application C#):
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using wMCLib; // Including library

namespace mclibtest
{
    class Program
    {
        static void Main(string[] args)
        {
            // Create a variable of mcLib class
            mcLib m = new mcLib("notepad", 32);
            m.Open(); //Open process
            Console.WriteLine(m.getPID()); //Write PID of notepad

            uint allocated = m.Alloc(); //Allocate new memory
            string str = "yo!hello!"; //String which will be written
            
            m.Write(str, allocated, (uint)str.Length); //Write in notepad's memory
            m.Read(allocated, (uint)str.Length); //Read it back
            
            string read = m.bufferToStringA();//buffer(bytes) -> string
            
            Console.WriteLine(read);//Write it in console (OUTPUT: yo!hello!)
            m.Free(allocated);//Delete allocated memory
            m.Close(); // better to close it but not needed

            Console.ReadKey(true);
        }
    }
}

Yes, please send it to me. THank you.
Memory Control Lib for C#


 
Functions
Code:
mcLib(string procName, uint bufferSize)
void Open(uint accessRights)
void Close()
void Write(string value, uint to, uint size)
void Write(string value, uint to, uint size, uint memProtect)
void Read(uint from, uint size)
void Read(uint from, uint size, uint memProtect)
uint Alloc(uint sizeOfAllocatedMemory, uint memProtect) - returns address where new memory starts
void Free(uint ptr)
uint FindSignature(uint base, uint size, string sign, string mask)
uint getProcessSize()
uint getProcessBaseAddr()
uint getModuleSize(string moduleName)
uint getModuleBaseAddr(string moduleName)
uint getPID()
x bufferToX() - convert buffer to X (x may be double, float, uint64, int64, uint32, int32, uint16, int16, uint8, int8)
string bufferToStringA() - converts buffer to string using char* (C++)
string bufferToStringW() - converts buffer to string usgin wchar_t* (C++)


P.S. If you want to write smth instead of string. You have to convert this type to bytes > convert these bytes to string

mclib_mpgh.net.zip39 KB · 5 downloads Clean
Quote Originally Posted by Liberaid View Post
Only C++
It's possible in C++, C# and script languages (AutoIt for example).
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Need help?