|
You last visited: Today at 07:34
Advertisement
[Release]Conquer Loader 5517 FullScreen!
Discussion on [Release]Conquer Loader 5517 FullScreen! within the CO2 PServer Guides & Releases forum part of the CO2 Private Server category.
02/25/2020, 06:39
|
#1
|
elite*gold: 0
Join Date: Apr 2019
Posts: 22
Received Thanks: 4
|
[Release]Conquer Loader 5517 FullScreen!
Hello guys im release this loader for community !
And for Accserver here is a code ! if u want!
/Class
//Authentication.cs
using System;
using System.IO;
using System.Text;
namespace AccServer.Network.AuthPackets
{
public unsafe class Authentication : Interfaces.IPacket
{
public string Username;
public string Password;
public string Server;
public string Hwid;
public string Mac;
public Authentication()
{
}
private byte[] _array;
internal int Seed;
public string ReadString(int length, int offset)
{
// Read the value:
fixed (byte* ptr = _array)
return new string((sbyte*)ptr, offset, length, Encoding.GetEncoding(1252)).TrimEnd('\0');
}
public void Deserialize(byte[] buffer)
{
if (buffer.Length == 276)
{
ushort PacketID = BitConverter.ToUInt16(buffer, 2);
string USER = Encoding.Default.GetString(buffer, 4, 16);
string PASS = Encoding.Default.GetString(buffer, 132, 16);
string SERVER = Encoding.Default.GetString(buffer, 260, 16);
if (PacketID == 1060)
{
Username = USER.Replace("\0", "");
Password = PASS.Replace("\0", "");
Server = SERVER.Replace("\0", "");
}
}
msvcrt.msvcrt.srand(Seed);
byte[] encpw = new byte[16];
var rc5Key = new byte[0x10];
for (int i = 0; i < 0x10; i++)
rc5Key[i] = (byte)msvcrt.msvcrt.rand();
Buffer.BlockCopy(buffer, 132, encpw, 0, 16);
var password = System.Text.Encoding.ASCII.GetString(
(new ConquerPasswordCryptpographer(Username)).Decrypt(
(new RC5(rc5Key)).Decrypt(encpw)));
Password = password.Split('\0')[0];
string NoNumPadNumbers = "";
foreach (char c in password)
{
switch (c.ToString())
{
case "-": NoNumPadNumbers += "0"; break;
case "#": NoNumPadNumbers += "1"; break;
case "(": NoNumPadNumbers += "2"; break;
case "\"": NoNumPadNumbers += "3"; break;
case "%": NoNumPadNumbers += "4"; break;
case "\f": NoNumPadNumbers += "5"; break;
case "'": NoNumPadNumbers += "6"; break;
case "$": NoNumPadNumbers += "7"; break;
case "&": NoNumPadNumbers += "8"; break;
case "!": NoNumPadNumbers += "9"; break;
default: NoNumPadNumbers += c; break;
}
}
Password = NoNumPadNumbers.Replace("\0", "");
}
public byte[] ToArray()
{
throw new NotImplementedException();
}
}
}
//Class
//Program.cs
//Go to private static void AuthServer_OnClientReceive(byte[] buffer, int length, ClientWrapper arg3)
//add Decrypt(buffer); Under {
//Add This Void Any where you want in Class Program
static int[] Keys = { 36, 32, 22, 57, 59, 67, 4, 1, 02, 34, 59, 83, 12, 2, 234, 1, 1, 2, 80, 73, 202, 31, 99, 75, 7, 4, 6, 32, 100, 221, 28, 154 };
public static void Decrypt(byte[] data)
{
for (int i = 0; i < data.Length; i++)
{
data[i] = (byte)(Keys[i % 32] ^ data[i]);
}
}
|
|
|
02/27/2020, 13:22
|
#2
|
elite*gold: 0
Join Date: May 2011
Posts: 83
Received Thanks: 4
|
Could you send the Conquer Loader 5517 file on a normal screen?
For studies
|
|
|
03/31/2020, 22:57
|
#3
|
elite*gold: 0
Join Date: Jul 2011
Posts: 95
Received Thanks: 76
|
Wish you released the source code or at least didn't put your crappy Arabic website to it, so I wouldn't have to check what's up. It's also funny how you put it in Base64 format (probably thinking it will be harder to find lol).
Anyways, your "anti-cheat/anti-debugger" is a pile of ****. You pack it with upx for ***'s sake. You even put virtual protect, like who's going to vmware this ****? Just lmao.
--
disgusting.
.
|
|
|
04/03/2020, 19:47
|
#4
|
elite*gold: 0
Join Date: Jan 2017
Posts: 20
Received Thanks: 0
|
can not make the account server could you help about that?
|
|
|
04/03/2020, 21:11
|
#5
|
elite*gold: 12
Join Date: Jul 2011
Posts: 8,247
Received Thanks: 4,152
|
If it's not clear by the posts above, you shouldn't use this.
|
|
|
04/07/2020, 22:22
|
#6
|
elite*gold: 50
Join Date: Apr 2018
Posts: 56
Received Thanks: 9
|
Quote:
Originally Posted by Latyos
Wish you released the source code or at least didn't put your crappy Arabic website to it, so I wouldn't have to check what's up. It's also funny how you put it in Base64 format (probably thinking it will be harder to find lol).
Anyways, your "anti-cheat/anti-debugger" is a pile of ****. You pack it with upx for ***'s sake. You even put virtual protect, like who's going to vmware this ****? Just lmao.
--
disgusting.
.
|
Can i know the software you debug with it and decompile the dll
|
|
|
04/08/2020, 05:35
|
#7
|
elite*gold: 0
Join Date: Jul 2011
Posts: 95
Received Thanks: 76
|
Quote:
Originally Posted by Kujiku
Can i know the software you debug with it and decompile the dll
|
I used here but you can use anything. For example IDA will give you a similar view. The only trick here was to check headers of the DLL to see which software they used to pack the dll.
|
|
|
08/29/2020, 18:45
|
#8
|
elite*gold: 0
Join Date: Jul 2011
Posts: 95
Received Thanks: 76
|
Quote:
Originally Posted by marcbacor6666
sorry bumping the thread but, can anyone remove the oem.ini he added in shield.dll?
|
We already talked in PM and I advised you not to use this. It's just a pile of **** and I've shown many proof to my statement.
If you just want the fullscreen, you will be better off spending time on learning how to do it.
If you really want to use this for whatever reason, you need to NOP checks of file hashes (I already shared psuedo-code of where it's being done) and JMP to success.
|
|
|
08/31/2020, 04:42
|
#9
|
elite*gold: 0
Join Date: Aug 2008
Posts: 143
Received Thanks: 18
|
|
|
|
06/12/2024, 20:18
|
#10
|
elite*gold: 0
Join Date: Apr 2024
Posts: 5
Received Thanks: 1
|
Quote:
Originally Posted by Spirited
If it's not clear by the posts above, you shouldn't use this.
|
Is there a way to unlock the resolution for version 5517? I tried a lot of things and didn't succeed, but I saw some games in this version with a wide screen. Are they modified higher versions or is there any way to unlock the resolution?
|
|
|
06/14/2024, 00:14
|
#11
|
elite*gold: 0
Join Date: Sep 2014
Posts: 191
Received Thanks: 50
|
Quote:
Originally Posted by libertapombo
Is there a way to unlock the resolution for version 5517? I tried a lot of things and didn't succeed, but I saw some games in this version with a wide screen. Are they modified higher versions or is there any way to unlock the resolution?
|
This is an old piece of code I made like 5-7 years ago.
Code:
// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include <iostream>
#include <tchar.h>
#include <exception>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
#include "MemoryFunctions.h"
#include "shield.h"
#define DLL_EXPORT extern "C" __declspec(dllexport)
BOOL STARTED = false;
BOOL(WINAPI* pMove)
(HWND, int, int, int, int, BOOL) = MoveWindow;
void WriteValueExp(char* lpAppName, char* lpKeyName, int a3)
{
char a[100];
sprintf(a, "%d", a3);
WritePrivateProfileStringA((lpAppName), (lpKeyName), a, "ini\\info.ini");
}
void load_gui(int width, int height)
{
wchar_t width_s[5], height_s[5];
wsprintf(width_s, L"%d", width);
wsprintf(height_s, L"%d", height);
WritePrivateProfileString(TEXT("0-0"), TEXT("w"), width_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-0"), TEXT("h"), height_s, TEXT("ini\\GUI.ini"));
int x = ((width - 1024) / 2);
wchar_t x_s[5];
wsprintf(x_s, L"%d", x);
int y = 627 + (height - 768);
wchar_t y_s[5];
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-130"), TEXT("w"), width_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-130"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-130"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 82 + ((width - 1024) / 2);
x_s[5];
wsprintf(x_s, L"%d", x);
y = (height - 71);
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-145"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-145"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
x = 935 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-304"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 315 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-357"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
y = 650 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-339"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 276 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-339"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 663 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-272"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 276 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-272"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
// + btn
x = 984 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-1199"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
// - btn
x = 1004 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-1200"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
// chat btn
x = 610 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-3"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 650 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-3"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// options
x = 327 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-138"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 237 + ((height - 768) / 2);
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-138"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// options
x = 380 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-141"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
//Chat btns
x = 254 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-174"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 452 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-174"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//PK Modes
x = 734 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-191"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 670 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-191"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// left btn
y = 283 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-1198"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// guild btn
x = 680 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-371"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 615 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-371"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// main emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-367"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 520 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-367"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-274"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 550 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-274"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-360"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 550 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-360"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-140"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 550 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-140"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Shopping mall
x = 132 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-289"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 653 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-289"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Arena
x = 325 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-403"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 650 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-403"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Lock
x = 223 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-328"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 654 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-328"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Mentor
x = 165 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-325"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 639 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-325"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Hide
x = 90 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-484"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 670 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-484"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Inventory
x = 754 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-153"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-153"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Arrows
x = 724 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-272"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 975 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-272"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Events box
x = 770 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-464"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
//Dance
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-421"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 541 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-421"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// ARENA 412-2482
x = ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("412-2482"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = height - 768;
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("412-2482"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 650 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-258"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
WriteValueExp("ExpShowPos", "Exp_YPos", 673 + (height - 768));
WriteValueExp("ExpShowPos", "AddExp_YPos", 673 + (height - 768));
WriteValueExp("ExpShowPos", "Exp_XPos", 485 + ((width - 1024) / 2));
WriteValueExp("ExpShowPos", "AddExp_XPos", 575 + ((width - 1024) / 2));
}
int y_p = 0, width_p = 0;
int Edited = 0, width = 0, height = 0;
BOOL __stdcall move_wind(HWND hWnd,
int X,
int Y,
int nWidth,
int nHeight,
BOOL bRepaint)
{
if (Y == y_p && nWidth == width_p && X == 0)// width_p : screen width && y_p = 627 + (height - 768);
{
X = ((width_p - 1024) / 2);
}
return pMove(hWnd, X, Y, nWidth, nHeight, bRepaint);
}
extern "C" int __declspec(dllexport) __cdecl EntryPoint() {
if (STARTED) return 0;
STARTED = true;
RECT desktop;
const HWND hDesktop = GetDesktopWindow();
// Get the size of screen to the variable desktop
GetWindowRect(hDesktop, &desktop);
// The top left corner will have coordinates (0,0)
// and the bottom right corner will have coordinates
// (horizontal, vertical)
int m_width = desktop.right;
int m_height = desktop.bottom;
TCHAR sAbsolutePathBuffer[2048] = _T("");
int fs = 0, FPS = 40;
if (GetFullPathName(TEXT("config.ini"), sizeof(sAbsolutePathBuffer) / sizeof(TCHAR), sAbsolutePathBuffer, NULL))
{
FPS = GetPrivateProfileInt(TEXT("Screen"), TEXT("FPS"), 40, sAbsolutePathBuffer);
width = GetPrivateProfileInt(TEXT("Screen"), TEXT("Width"), 1024, sAbsolutePathBuffer);
height = GetPrivateProfileInt(TEXT("Screen"), TEXT("Height"), 768, sAbsolutePathBuffer);
if (width > m_width) width = m_width;
if (height > m_height) height = m_height;
if (width < 1024) width = 1024;
if (height < 768) height = 768;
if (FPS > 900) FPS = 900;
if (FPS < 40) FPS = 40;
}
load_gui(width, height);
width_p = width;
y_p = 627 + (height - 768);
int a;
//start_hp();
//start_hp();
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID&)pMove, move_wind);
if (DetourTransactionCommit() != NO_ERROR)
{
exit(0);
return 0;
}
HookMe((void*)0x005AB540, (1000 / FPS), 1); // FPS
HookMe((void*)0x005AB549, (1000 / FPS), 1); // FPS 005AB547 . 83C1 19 ADD ECX,19
HookMe((void*)0x005D7EAA, width, 5);
HookMe((void*)0x005D7EAF, height, 5);
HookMe((void*)0x0063A15E, width, 5);
HookMe((void*)0x0063A177, height, 5);
HookMe((void*)0x0063A185, height, 5);
return 1;
}
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
{
break;
}
case DLL_THREAD_ATTACH:
{
EntryPoint();
break;
}
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
Maybe rubbish? TRUE. Good luck!
|
|
|
06/23/2024, 12:04
|
#12
|
elite*gold: 0
Join Date: Apr 2024
Posts: 5
Received Thanks: 1
|
Quote:
Originally Posted by iBotx
This is an old piece of code I made like 5-7 years ago.
Code:
// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include <iostream>
#include <tchar.h>
#include <exception>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
#include "MemoryFunctions.h"
#include "shield.h"
#define DLL_EXPORT extern "C" __declspec(dllexport)
BOOL STARTED = false;
BOOL(WINAPI* pMove)
(HWND, int, int, int, int, BOOL) = MoveWindow;
void WriteValueExp(char* lpAppName, char* lpKeyName, int a3)
{
char a[100];
sprintf(a, "%d", a3);
WritePrivateProfileStringA((lpAppName), (lpKeyName), a, "ini\\info.ini");
}
void load_gui(int width, int height)
{
wchar_t width_s[5], height_s[5];
wsprintf(width_s, L"%d", width);
wsprintf(height_s, L"%d", height);
WritePrivateProfileString(TEXT("0-0"), TEXT("w"), width_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-0"), TEXT("h"), height_s, TEXT("ini\\GUI.ini"));
int x = ((width - 1024) / 2);
wchar_t x_s[5];
wsprintf(x_s, L"%d", x);
int y = 627 + (height - 768);
wchar_t y_s[5];
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-130"), TEXT("w"), width_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-130"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-130"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 82 + ((width - 1024) / 2);
x_s[5];
wsprintf(x_s, L"%d", x);
y = (height - 71);
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-145"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-145"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
x = 935 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-304"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 315 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-357"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
y = 650 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-339"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 276 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-339"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 663 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-272"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 276 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-272"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
// + btn
x = 984 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-1199"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
// - btn
x = 1004 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-1200"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
// chat btn
x = 610 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-3"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 650 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-3"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// options
x = 327 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-138"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 237 + ((height - 768) / 2);
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-138"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// options
x = 380 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-141"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
//Chat btns
x = 254 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-174"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 452 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-174"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//PK Modes
x = 734 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-191"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 670 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-191"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// left btn
y = 283 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-1198"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// guild btn
x = 680 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-371"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 615 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-371"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// main emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-367"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 520 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-367"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-274"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 550 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-274"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-360"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 550 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-360"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-140"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 550 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-140"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Shopping mall
x = 132 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-289"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 653 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-289"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Arena
x = 325 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-403"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 650 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-403"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Lock
x = 223 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-328"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 654 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-328"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Mentor
x = 165 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-325"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 639 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-325"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Hide
x = 90 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-484"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 670 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-484"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Inventory
x = 754 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-153"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-153"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Arrows
x = 724 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-272"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 975 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-272"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Events box
x = 770 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-464"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
//Dance
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-421"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 541 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-421"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// ARENA 412-2482
x = ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("412-2482"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = height - 768;
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("412-2482"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 650 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-258"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
WriteValueExp("ExpShowPos", "Exp_YPos", 673 + (height - 768));
WriteValueExp("ExpShowPos", "AddExp_YPos", 673 + (height - 768));
WriteValueExp("ExpShowPos", "Exp_XPos", 485 + ((width - 1024) / 2));
WriteValueExp("ExpShowPos", "AddExp_XPos", 575 + ((width - 1024) / 2));
}
int y_p = 0, width_p = 0;
int Edited = 0, width = 0, height = 0;
BOOL __stdcall move_wind(HWND hWnd,
int X,
int Y,
int nWidth,
int nHeight,
BOOL bRepaint)
{
if (Y == y_p && nWidth == width_p && X == 0)// width_p : screen width && y_p = 627 + (height - 768);
{
X = ((width_p - 1024) / 2);
}
return pMove(hWnd, X, Y, nWidth, nHeight, bRepaint);
}
extern "C" int __declspec(dllexport) __cdecl EntryPoint() {
if (STARTED) return 0;
STARTED = true;
RECT desktop;
const HWND hDesktop = GetDesktopWindow();
// Get the size of screen to the variable desktop
GetWindowRect(hDesktop, &desktop);
// The top left corner will have coordinates (0,0)
// and the bottom right corner will have coordinates
// (horizontal, vertical)
int m_width = desktop.right;
int m_height = desktop.bottom;
TCHAR sAbsolutePathBuffer[2048] = _T("");
int fs = 0, FPS = 40;
if (GetFullPathName(TEXT("config.ini"), sizeof(sAbsolutePathBuffer) / sizeof(TCHAR), sAbsolutePathBuffer, NULL))
{
FPS = GetPrivateProfileInt(TEXT("Screen"), TEXT("FPS"), 40, sAbsolutePathBuffer);
width = GetPrivateProfileInt(TEXT("Screen"), TEXT("Width"), 1024, sAbsolutePathBuffer);
height = GetPrivateProfileInt(TEXT("Screen"), TEXT("Height"), 768, sAbsolutePathBuffer);
if (width > m_width) width = m_width;
if (height > m_height) height = m_height;
if (width < 1024) width = 1024;
if (height < 768) height = 768;
if (FPS > 900) FPS = 900;
if (FPS < 40) FPS = 40;
}
load_gui(width, height);
width_p = width;
y_p = 627 + (height - 768);
int a;
//start_hp();
//start_hp();
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID&)pMove, move_wind);
if (DetourTransactionCommit() != NO_ERROR)
{
exit(0);
return 0;
}
HookMe((void*)0x005AB540, (1000 / FPS), 1); // FPS
HookMe((void*)0x005AB549, (1000 / FPS), 1); // FPS 005AB547 . 83C1 19 ADD ECX,19
HookMe((void*)0x005D7EAA, width, 5);
HookMe((void*)0x005D7EAF, height, 5);
HookMe((void*)0x0063A15E, width, 5);
HookMe((void*)0x0063A177, height, 5);
HookMe((void*)0x0063A185, height, 5);
return 1;
}
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
{
break;
}
case DLL_THREAD_ATTACH:
{
EntryPoint();
break;
}
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
Maybe rubbish? TRUE. Good luck!
|
Rly Thx!
|
|
|
10/20/2024, 15:56
|
#13
|
elite*gold: 0
Join Date: Sep 2013
Posts: 14
Received Thanks: 0
|
Quote:
Originally Posted by iBotx
This is an old piece of code I made like 5-7 years ago.
Code:
// dllmain.cpp : Defines the entry point for the DLL application.
#include "stdafx.h"
#include <iostream>
#include <tchar.h>
#include <exception>
#include <winsock2.h>
#include <ws2tcpip.h>
#include <stdlib.h>
#include <stdio.h>
#include "MemoryFunctions.h"
#include "shield.h"
#define DLL_EXPORT extern "C" __declspec(dllexport)
BOOL STARTED = false;
BOOL(WINAPI* pMove)
(HWND, int, int, int, int, BOOL) = MoveWindow;
void WriteValueExp(char* lpAppName, char* lpKeyName, int a3)
{
char a[100];
sprintf(a, "%d", a3);
WritePrivateProfileStringA((lpAppName), (lpKeyName), a, "ini\\info.ini");
}
void load_gui(int width, int height)
{
wchar_t width_s[5], height_s[5];
wsprintf(width_s, L"%d", width);
wsprintf(height_s, L"%d", height);
WritePrivateProfileString(TEXT("0-0"), TEXT("w"), width_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-0"), TEXT("h"), height_s, TEXT("ini\\GUI.ini"));
int x = ((width - 1024) / 2);
wchar_t x_s[5];
wsprintf(x_s, L"%d", x);
int y = 627 + (height - 768);
wchar_t y_s[5];
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-130"), TEXT("w"), width_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-130"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-130"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 82 + ((width - 1024) / 2);
x_s[5];
wsprintf(x_s, L"%d", x);
y = (height - 71);
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-145"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
WritePrivateProfileString(TEXT("0-145"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
x = 935 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-304"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 315 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-357"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
y = 650 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-339"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 276 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-339"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 663 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-272"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 276 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-272"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
// + btn
x = 984 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-1199"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
// - btn
x = 1004 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-1200"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
// chat btn
x = 610 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-3"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 650 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-3"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// options
x = 327 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-138"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 237 + ((height - 768) / 2);
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-138"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// options
x = 380 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-141"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
//Chat btns
x = 254 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-174"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 452 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-174"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//PK Modes
x = 734 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-191"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 670 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-191"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// left btn
y = 283 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-1198"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// guild btn
x = 680 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-371"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 615 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-371"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// main emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-367"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 520 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-367"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-274"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 550 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-274"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-360"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 550 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-360"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// emoji btn
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-140"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 550 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-140"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Shopping mall
x = 132 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-289"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 653 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-289"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Arena
x = 325 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-403"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 650 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-403"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Lock
x = 223 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-328"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 654 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-328"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Mentor
x = 165 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-325"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 639 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-325"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Hide
x = 90 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-484"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 670 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-484"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Inventory
x = 754 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-153"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-153"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Arrows
x = 724 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-272"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 975 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-272"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
//Events box
x = 770 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-464"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
//Dance
x = 574 + ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-421"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = 541 + ((height - 768));
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("0-421"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
// ARENA 412-2482
x = ((width - 1024) / 2);
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("412-2482"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
y = height - 768;
wsprintf(y_s, L"%d", y);
WritePrivateProfileString(TEXT("412-2482"), TEXT("y"), y_s, TEXT("ini\\GUI.ini"));
x = 650 + ((width - 1024));
wsprintf(x_s, L"%d", x);
WritePrivateProfileString(TEXT("0-258"), TEXT("x"), x_s, TEXT("ini\\GUI.ini"));
WriteValueExp("ExpShowPos", "Exp_YPos", 673 + (height - 768));
WriteValueExp("ExpShowPos", "AddExp_YPos", 673 + (height - 768));
WriteValueExp("ExpShowPos", "Exp_XPos", 485 + ((width - 1024) / 2));
WriteValueExp("ExpShowPos", "AddExp_XPos", 575 + ((width - 1024) / 2));
}
int y_p = 0, width_p = 0;
int Edited = 0, width = 0, height = 0;
BOOL __stdcall move_wind(HWND hWnd,
int X,
int Y,
int nWidth,
int nHeight,
BOOL bRepaint)
{
if (Y == y_p && nWidth == width_p && X == 0)// width_p : screen width && y_p = 627 + (height - 768);
{
X = ((width_p - 1024) / 2);
}
return pMove(hWnd, X, Y, nWidth, nHeight, bRepaint);
}
extern "C" int __declspec(dllexport) __cdecl EntryPoint() {
if (STARTED) return 0;
STARTED = true;
RECT desktop;
const HWND hDesktop = GetDesktopWindow();
// Get the size of screen to the variable desktop
GetWindowRect(hDesktop, &desktop);
// The top left corner will have coordinates (0,0)
// and the bottom right corner will have coordinates
// (horizontal, vertical)
int m_width = desktop.right;
int m_height = desktop.bottom;
TCHAR sAbsolutePathBuffer[2048] = _T("");
int fs = 0, FPS = 40;
if (GetFullPathName(TEXT("config.ini"), sizeof(sAbsolutePathBuffer) / sizeof(TCHAR), sAbsolutePathBuffer, NULL))
{
FPS = GetPrivateProfileInt(TEXT("Screen"), TEXT("FPS"), 40, sAbsolutePathBuffer);
width = GetPrivateProfileInt(TEXT("Screen"), TEXT("Width"), 1024, sAbsolutePathBuffer);
height = GetPrivateProfileInt(TEXT("Screen"), TEXT("Height"), 768, sAbsolutePathBuffer);
if (width > m_width) width = m_width;
if (height > m_height) height = m_height;
if (width < 1024) width = 1024;
if (height < 768) height = 768;
if (FPS > 900) FPS = 900;
if (FPS < 40) FPS = 40;
}
load_gui(width, height);
width_p = width;
y_p = 627 + (height - 768);
int a;
//start_hp();
//start_hp();
DetourTransactionBegin();
DetourUpdateThread(GetCurrentThread());
DetourAttach(&(PVOID&)pMove, move_wind);
if (DetourTransactionCommit() != NO_ERROR)
{
exit(0);
return 0;
}
HookMe((void*)0x005AB540, (1000 / FPS), 1); // FPS
HookMe((void*)0x005AB549, (1000 / FPS), 1); // FPS 005AB547 . 83C1 19 ADD ECX,19
HookMe((void*)0x005D7EAA, width, 5);
HookMe((void*)0x005D7EAF, height, 5);
HookMe((void*)0x0063A15E, width, 5);
HookMe((void*)0x0063A177, height, 5);
HookMe((void*)0x0063A185, height, 5);
return 1;
}
BOOL APIENTRY DllMain(HMODULE hModule,
DWORD ul_reason_for_call,
LPVOID lpReserved
)
{
switch (ul_reason_for_call)
{
case DLL_PROCESS_ATTACH:
{
break;
}
case DLL_THREAD_ATTACH:
{
EntryPoint();
break;
}
case DLL_THREAD_DETACH:
break;
case DLL_PROCESS_DETACH:
break;
}
return TRUE;
}
Maybe rubbish? TRUE. Good luck!
|
[0-130]Why is this node, modified, still not moving. It's on the left.
|
|
|
10/20/2024, 18:51
|
#14
|
elite*gold: 0
Join Date: Sep 2014
Posts: 191
Received Thanks: 50
|
You have to hook MoveWind, if you're talking about the bar at the bottom.
|
|
|
|
Similar Threads
|
[Conquer Heroes] 5517 Based Leveling Server
03/27/2017 - CO2 PServer Archive - 27 Replies
Conquer Heroes is officially launched!
Conquer heroes has been in development for the past year and a half and is finally ready for players to log in and start causing plenty of havoc! We're incredibly excited to see the community's response to the project and to start delivering some really exciting custom content.
Conquer heroes is a partnership between myself and Roy (infamousnoone) with a huge shoutout to Angelus who worked on the project for an extended period of time.
Play...
|
How to set up a 5517 conquer server [ Eragon's Source ]
01/22/2013 - CO2 PServer Guides & Releases - 30 Replies
WILL NOT BE UPDATING OR REPLYING TO ANYTHING.
First of All, just to let you all know, this isn't my source. This is the one Shaft released, and i am going to release a guide on how to set it up.
Okay, first of all download the following iff you haven't already;
- Appserv ( I Use 2.5.10 ) From here >> AppServNetwork - AppServ 2.5.10
- Navicat ( I Use Premium, but it doesnt matter which ) from here >>> Navicat DOWNLOAD
|
Conquer Loader for 5517/5518
11/15/2012 - CO2 Private Server - 6 Replies
Hey guys,
im looking for a Client Loader that does actually work, ive tried all version of that one appearing in the forums everywhere but they just start conquer normally and i see normal servers and when i try to login it doesnt even go through to the server...
Im confused can somebody help me with a Clean and working CoLoader for that Version where i can set my server ip etc?
|
how can i edit 5517 server.dat 's ip ...no loader
01/20/2012 - CO2 Private Server - 7 Replies
like my title ///
some player want to use IPProxy gaming
if i use the loader change the game ip ... the IPProxy can't use
so ..i want edit server.dat's serverIp ...
how can i do ???
or how can i use IPProxy...
|
All times are GMT +1. The time now is 07:34.
|
|