Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2
You last visited: Today at 01:17

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

Advertisement



Send attack function doesnt do anything

Discussion on Send attack function doesnt do anything within the Metin2 forum part of the Popular Games category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2020
Posts: 7
Received Thanks: 1
Send attack function doesnt do anything

Hello guys, i have a problem with my c++ code - it does not do anything ingame i say that i pass all the values correctly but no hit no nothing

That's the code:

DWORD baseaddr =(DWORD)GetModuleHandleW(NULL);
DWORD GetTargetVID = (*(DWORD*)(baseaddr+0x2B1540)+(0x17FCC));
DWORD mode = 0x0;
DWORD network =(DWORD)(baseaddr + 0x2AE584);

void SendAttackPacket(void* pthis, const DWORD mode, const DWORD vid)
{
typedef char(__thiscall* tSendAttackPacket)(void* pthis, DWORD uMotAttack, DWORD dwVIDVictim);
tSendAttackPacket SendAttackPacket = (tSendAttackPacket)(baseaddr+0xA7F80);


}
void Main()
{
while (true)
{
//Here i check the values of the target and CNetworkInstance to see if it matches with values from cheat engine
if (GetAsyncKeyState(VK_NUMPAD1))
{

cout << "target: " << *(DWORD*)GetTargetVID << endl;
cout << "network: " << *(DWORD*)network << endl;
Sleep(1000);
}

SendAttackPacket((void*)(*(DWORD*)network), mode, (*(DWORD*)GetTargetVID));
Sleep(100);

I'm happy to hear your suggestions
mildegusti is offline  
Old 06/10/2021, 11:02   #2
 
elite*gold: 0
Join Date: Feb 2015
Posts: 26
Received Thanks: 8
First, you need to be close to the target, as it requires you to be in melee range.
Second: I'm not sure that the dereference is done correctly in the GetTargetVID. I never understood pointers, so I might be wrong.
Third: if you play on a server that has the attack speed fixed, you should increase the sleep timer to like 200 to test it out ( depends on the class you're playing, the attack speed you have and also depends if you're mounted or not. Better make it dynamic, so you can adjust it on the fly and test it out on which speed it does work.

Cheers.
Aeryas is offline  
Thanks
2 Users
Old 06/10/2021, 11:17   #3
 
elite*gold: 0
Join Date: Nov 2020
Posts: 7
Received Thanks: 1
Thanks for the answer!

I put my char as close as i could've been with the target (even used wallhack) as for the sleep timer i also put 1000 ms and nothing.
I think the VID of the mob is passed correctly as i mentioned above i looked it up on the stack in cheat engine and in c++ --> in this image
mildegusti is offline  
Old 06/10/2021, 13:03   #4
 
elite*gold: 50
Join Date: Feb 2017
Posts: 46
Received Thanks: 59
HelloBrightness is offline  
Thanks
1 User
Old 09/17/2021, 02:17   #5
 
elite*gold: 0
Join Date: Sep 2021
Posts: 11
Received Thanks: 0
DWORD sendbattleattackpacket = 0x0;
DWORD cpythonnetworkstream = *(DWORD*)0x0;

typedef void(__thiscall* sendattack)(DWORD cpythonnetworkstream, UINT attack, DWORD vid);
sendattack sendattackpacket = (sendattack)sendbattleattackpacket;

DWORD gettarrgetvid = *(DWORD*)(*(DWORD*)(0x0) + 0x0);
sendattackpacket(cpythonnetworkstream, 0, gettarrgetvid);


i think you can do it like this!
badforce788 is offline  
Old 09/17/2021, 20:45   #6
 
elite*gold: 0
Join Date: Oct 2020
Posts: 13
Received Thanks: 9
Just to say that some retarded and autist admins from Metin2 servers (all Metin2 admins are like it but you got the idea), they add a IsAttacking check inside the SendAttackPacket call, so check SendAttackPacket in your server to see the conditions inside it and, if needed, patch this crappy first.

Btw, its not char, its bool:
typedef char(__thiscall* tSendAttackPacket)(void* pthis, DWORD uMotAttack, DWORD dwVIDVictim);
tSendAttackPacket SendAttackPacket = (tSendAttackPacket)(baseaddr+0xA7F80);

typedef bool(__thiscall* tSendAttackPacket)(void* pthis, DWORD uMotAttack, DWORD dwVIDVictim);
tSendAttackPacket SendAttackPacket = (tSendAttackPacket)(baseaddr+0xA7F80);
trashepvp is offline  
Reply


Similar Threads Similar Threads
[Buying] Metin2 Send DMG to target / auch send dmg to target on attack
05/28/2014 - Metin2 Trading - 5 Replies
Moinsen Freunde, ich suche hier mal einen gescheiten Coder der mir einen Hack/Bot/Tool schreiben kann. Es geht um das was im Titel steht. Ich möchte das so haben wie lalaker1 es hier publiziert hatte, da es aber auf den meisten Servern nicht mit dieser Geschwindigkeit geklappt hat möchte ich nur für mich privat sowas haben. Genaue Infos gibt es per PN, natürlich muss das zwischenmenschliche auch stimmen, die Bezahlung stimmt auf jeden Fall.
std::function of a function returning an std::function
11/11/2013 - C/C++ - 19 Replies
Nun muss ich nach langer Zeit auch mal wieder einen Thread erstellen, weil mir Google nicht mehr weiterhelfen kann. Ich verzweifle an Folgendem Vorhaben: #include <Windows.h> #include <string> #include <iostream> using namespace std;
Running Function 2 after Function 1 finished
09/15/2013 - AutoIt - 3 Replies
Hey, its me again. Im stuck on a problem since yesterday and as much as i hate to ask for help, i really dont know what else to try. I want Function 2 to run after Function 1 has finished. I tried GuiCtrlSetOnEvent and MsgLoop, but i dont really understand it. I tried to read tutorials but they didnt help at all. The line that are underline is what im talking about. I want gamestart() to run first and when its finished, i want iniviteteam() to run. #AutoIt3Wrapper_UseX64=n...
[VIP-function] ToxicSYS [VIP-function]
08/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies
heeeey E-pvpers :pimp: this is a new hack by TSYS Status : UNDETECTED Functions (VIDEO) : YouTube - WarRock - Bikini event VIP hack



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


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.