Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > 12Sky2
You last visited: Today at 14:55

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

Advertisement



Megabyte , help :(

Discussion on Megabyte , help :( within the 12Sky2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 271
Received Thanks: 108
Megabyte , help :(

. to any1 interested and knowledge of visual studio/c# .

So recently I've found a good library for C# that interacts with DirectX games as in sending keys to the game window , simulating it's you pressing the keys / macros.

For example a auto-pet feeder which I was working on but suddenly it stopped working from a day to another. I do not know what happened but anyway resuming, I was coding an application which I was gonna supposedly publish it here aswell that would auto-pet feed every 25 minutes, and you could also active AOE Spammer.

* Fun-fact: I could chat in-game, and yet the character would be grinding! *

All my solutions with this library suddenly stopped working in Twelve Sky 2, but still they press keys in the windows.

I've attached 2 solutions,
- the example made by it's creator which is working, i did a slightly modification so it will press key I (inventory key) for testing purposes.. This one WORKS with 12sky2!

- and the one I've made that uses the library, also on .NET Framework 2.0 as the example one, pressing key I but it's not working...

The code is very simple, and easy to understand. Press debug button or run the .exe in the debug folder.

I've made a new project with Visual Studio 2013, the library I can confirm it were working until I shutdown my computer and wake up next day with nothing working at all.

The code between the 2 solutions is the same, but I cannot figure out why suddenly it stopped working with twelve sky 2.

Sneak peak of what I am trying to do, but I've stopped the progress due to this annoying problem I am running into at the moment. *THIS ONE WERE IN .NET FRAMEWORK 3.5* changed it back later to 2.0 after finding it wasn't working, still didn't fixed it.

TESTED IN MAYNGAMES 12sky2

Regards

ATTACHMENTS HAVE BEEN REMOVED!
MyDooMJr is offline  
Old 08/10/2015, 03:25   #2

 
Mega Byte's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,777
Received Thanks: 1,003
I am not to sure about C# sending input, I never managed to get it working decently whilst the anti hack ran at the same time.

All anti hacks that I know of will block the SendInput api's.

See some links here for analysis on anti hacks.




The chat in Twelve Sky & Twelve Sky 2 is just using normal windows text field input. WM Message sending is enough to emulate keys for this one.

Anti hack won't prevent this to my knowldge and even the C# SendKeys or Key.Send or w/e it was will work to type chat messages.

Using WASD to move, skill keys, pill use keys etc are all using Dinput (Direct input)

Dinput is a part of direct x of course, essentially it works like this.

There is a buffer that stores values I think it was 256 long or maybe 210 or something.
The values are like 80 or 0. Or maybe it was 64 and 0 anyway, its designed to handle input in this buffer for variable pressure of keys but basically all keyboards are either, you press the key or you don't.

In the game loop there is a call to dinput to update this buffer with the key states. Eg pressed or not pressed.

It is possible to directly manipulate this buffer to simulate keys. But not able to be 100% relied on unless you can get it in sync with the game loop function.

If you can hook draw indexed primitive through the vtable you could modify the buffer for the next frame .


I have done this previously to simulate key presses and read keys on Twelve Sky 2 Aeria, but I had more success with just calling game functions to do the desired action.


When you press a key, lets say I to open inventory.

The game has some sort of code that goes
if I has been pressed then call this function or do this code etc...

If you can find that function you can just call it and then the inventory opens.
This game engine also has a boolean value for the visible (open/closed) state of each window dialog/button etc.

If you can find that you can set it to 1 and inventory is open etc.

It is possible to open and close inventory and a few other dialog in the game just by setting the corresponding boolean to a 1 in the games memory. I have done this with a C++ dll after I moved away from using C#.


Who knows C# can probably read/write memory or make a dll to be injected but I found it easier with C++.


I think my dinput hook code is long gone from years of changing computers/formats etc.
I will have a look when I get home though, maybe it will be of some use.
Mega Byte is offline  
Thanks
3 Users
Old 08/10/2015, 18:12   #3
 
elite*gold: 0
Join Date: Feb 2010
Posts: 271
Received Thanks: 108
Thanks for your input MegaByte!

Today I've found why all my projects weren't working using this library I am currently using.

It was because of a debug option where it's platform target was for ANY CPU, while it should be x86.

I can finally work again on my mini-bot (not memory-hacking included) which I plan to release soon

Thanks for your answer though!
MyDooMJr is offline  
Old 08/13/2015, 07:45   #4
 
elite*gold: 0
Join Date: May 2015
Posts: 16
Received Thanks: 1
Mega Bytes You have Xtrap bypass so I can start working with cuts in 12sky2?
Glauber00 is offline  
Old 08/14/2015, 19:12   #5

 
Mega Byte's Avatar
 
elite*gold: 0
Join Date: Dec 2009
Posts: 1,777
Received Thanks: 1,003
no
Mega Byte is offline  
Reply


Similar Threads Similar Threads
Megabyte's ts1 server
02/24/2014 - 12Sky2 - 4 Replies
Hey guys i would like to know if megabyte's ts1 server is open to play or not.
I need some help from MegaByte..
04/02/2013 - 12Sky2 Hacks, Bots, Cheats & Exploits - 4 Replies
i have this problem Buffer overrun detected! i don't know why i receive this ...i searched on google but i odn't understand i'm a little nubby xD
MegaByte
07/30/2011 - 12Sky2 - 8 Replies
I don't mean to bother you & I'm sure you're busy & get asked this a lot but I can't seem to find the answer anywhere... is there any ETA for when your private server will be working? I have been waiting for almost 2 years now and it's just hard to wait D:
MegaByte need some help
05/29/2011 - 12Sky2 - 2 Replies
hy can i pls ask for a autpu pet pill refill.dllwich i can inject in to the game ? to refill my pet pill bar at 50% like the other one i got who got pathced? pls if is not to much truble
Partition mit 7,5 MB. ja, Megabyte
03/23/2006 - Technical Support - 4 Replies
Also bei meinem jährlichen Neuformatieren hatte ich so bei 2% nen Stromausfall. Das Schöne: Jetzt habe ich eine Festplatte C: mit 7,5 MB Speicher. Bild Gibt es irgendeine Möglichkeit dieses Ding zu entfernen?!



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


Powered by vBulletin®
Copyright ©2000 - 2026, 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 ©2026 elitepvpers All Rights Reserved.