- Katılım
- 22 May 2021
- Mesajlar
- 1,476
- Beğeniler
- 333
forumda bir zamanlar paylaşmıştım fakat çalışmıyor güncelleyip kullanabilirsiniz
C++:
#include <iostream>
#include <Windows.h>
#include "key.h"
void Dair() {
keybd_event(S, 0x45, 0, 0);
keybd_event(J, 0x45, 0, 0);
Sleep(100);
keybd_event(S, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
}
void DlightNair() {
keybd_event(S, 0x45, 0, 0); //s
keybd_event(J, 0x45, 0, 0); //j
Sleep(30);
keybd_event(S, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
Sleep(330);
keybd_event(SPACE, 0x45, 0, 0);
Sleep(50);
keybd_event(D, 0x45, 0, 0);
keybd_event(L, 0x45, 0, 0);
Sleep(35);
keybd_event(D, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, 0, 0);
Sleep(300);
keybd_event(L, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(SPACE, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
}
void SwordDlightDair() {
keybd_event(S, 0x45, 0, 0); //s
keybd_event(J, 0x45, 0, 0); //j
Sleep(30);
keybd_event(S, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
Sleep(370);
keybd_event(SPACE, 0x45, 0, 0); //
Sleep(30);
keybd_event(D, 0x45, 0, 0); //s
keybd_event(S, 0x45, 0, 0); // L
keybd_event(J, 0x45, 0, 0); //s
Sleep(450);
keybd_event(D, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(SPACE, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(S, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
}
void DlightRecovery() {
keybd_event(S, 0x45, 0, 0); //s
keybd_event(J, 0x45, 0, 0); //j
Sleep(30);
keybd_event(S, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
Sleep(320);
keybd_event(SPACE, 0x45, 0, 0);
Sleep(10);
keybd_event(D, 0x45, 0, 0);
Sleep(40);
keybd_event(SPACE, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(L, 0x45, 0, 0);
Sleep(30);
keybd_event(K, 0x45, 0, 0);
Sleep(200);
keybd_event(L, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(D, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(K, 0x45, KEYEVENTF_KEYUP, 0);
}
void Sair() {
keybd_event(D, 0x45, 0, 0);
Sleep(30);
keybd_event(J, 0x45, 0, 0); //j
Sleep(100);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(D, 0x45, KEYEVENTF_KEYUP, 0);
}
void SwordNlight() {
keybd_event(D, 0x45, 0, 0); //j
Sleep(15);
keybd_event(D, 0x45, KEYEVENTF_KEYUP, 0);
}
void GroundPound() {
keybd_event(S, 0x45, 0, 0);
Sleep(30);
keybd_event(K, 0x45, 0, 0);
Sleep(30);
keybd_event(S, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(K, 0x45, KEYEVENTF_KEYUP, 0);
}
void BowSlight() {
keybd_event(D, 0x45, 0, 0); //j
keybd_event(J, 0x45, 0, 0);
Sleep(100);
keybd_event(D, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
}
void SwordDlightRecovery() {
keybd_event(S, 0x45, 0, 0); //s
keybd_event(J, 0x45, 0, 0); //j
Sleep(30);
keybd_event(S, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
Sleep(330);
keybd_event(SPACE, 0x45, 0, 0);
Sleep(10);
keybd_event(D, 0x45, 0, 0);
Sleep(30);
keybd_event(K, 0x45, 0, 0);
Sleep(200);
keybd_event(D, 0x45, KEYEVENTF_KEYUP, 0);
Sleep(100);
keybd_event(SPACE, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(K, 0x45, KEYEVENTF_KEYUP, 0);
}
void DodgeRight() {
keybd_event(D, 0x45, 0, 0);
Sleep(30);
keybd_event(L, 0x45, 0, 0);
Sleep(30);
keybd_event(D, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(L, 0x45, KEYEVENTF_KEYUP, 0);
}
void DodgeUpRight() {
keybd_event(W, 0x45, 0, 0);
keybd_event(D, 0x45, 0, 0);
Sleep(30);
keybd_event(L, 0x45, 0, 0);
Sleep(30);
keybd_event(W, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(D, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(L, 0x45, KEYEVENTF_KEYUP, 0);
}
void SpotDodge() {
keybd_event(L, 0x45, 0, 0);
Sleep(30);
keybd_event(L, 0x45, KEYEVENTF_KEYUP, 0);
}
void DlightSair2() {
keybd_event(S, 0x45, 0, 0); //s
keybd_event(J, 0x45, 0, 0); //j
Sleep(30);
keybd_event(S, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
Sleep(270);
keybd_event(SPACE, 0x45, 0, 0);
Sleep(30);
keybd_event(D, 0x45, 0, 0);
Sleep(30);
keybd_event(J, 0x45, 0, 0);
Sleep(30);
keybd_event(D, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(SPACE, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
}
void Jump() {
keybd_event(SPACE, 0x45, 0, 0);
Sleep(30);
keybd_event(SPACE, 0x45, KEYEVENTF_KEYUP, 0);
}
void DlightDair() {
keybd_event(S, 0x45, 0, 0);
keybd_event(J, 0x45, 0, 0);
Sleep(30);
keybd_event(S, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
Sleep(300);
keybd_event(S, 0x45, 0, 0);
Sleep(20);
keybd_event(L, 0x45, 0, 0);
Sleep(20);
keybd_event(J, 0x45, 0, 0);
Sleep(20);
keybd_event(W, 0x45, 0, 0);
Sleep(500);
keybd_event(W, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(L, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(S, 0x45, KEYEVENTF_KEYUP, 0);
keybd_event(J, 0x45, KEYEVENTF_KEYUP, 0);
}
int main()
{
while (true) {
if (GetAsyncKeyState(VK_CONTROL)) {
DlightNair();
Sleep(1000);
}
if (GetAsyncKeyState(VK_INSERT))
break;
}
return 0;
}
C++:
#ifndef KEYS_H //header guard
#define KEYS_H
#define A 0x41 // you could also define each key as type char ex: char A = 0x41;
#define C 0x43
#define D 0x44 //choosing right for this example
#define H 0x48
#define J 0x4A //lightattack
#define K 0x4B
#define L 0x4C
#define S 0x53 //down
#define V 0x56
#define W 0x57 //up / jump
#define X 0x58 //heavyattack option 2
#define Z 0x5A //dodge option 2
#define LShift 0xA0
#define SPACE 0x20 //Jump
#endif