Need help with Merrcys Triggerbot pls

Posts 1–6 of 6 · Page 1 of 1
Need help with Merrcys Triggerbot pls
Hello,

i use since month the source code from merrcys polly hack for my triggerbot.

 
Source
class Triggerbot {

public:
void run() {
[junk_enable /]
while (true) {
[add_junk /]
if (Settings()->triggerEnabled) {
[add_junk /]
Entity* inX = inCrosshair();

if (inX != nullptr && Engine()->me.weapon_ammo > 0 && inX->hp > 0 && (Settings()->trigger_holdkey == 0 || GetAsyncKeyState(Settings()->trigger_holdkey))) {
Engine()->Memory()->Write<int>(Engine()->getClientModule()->dwBase + Engine()->Offsets()->dwAttack, 5);
Sleep(10);
if (!GetAsyncKeyState(VK_LBUTTON)) {
Engine()->Memory()->Write<int>(Engine()->getClientModule()->dwBase + Engine()->Offsets()->dwAttack, 4);
}
}
[add_junk /]
}

Sleep(1);
}
[add_junk /]
[junk_disable /]
}

private:
Entity* inCrosshair() {
[junk_enable /]
[add_junk /]
int idInX = Engine()->Memory()->Read<int>(Engine()->me.dwBase + Engine()->Offsets()->dwInCross);

if (idInX != 0) {
[add_junk /]
for (int i = 0; i < Engine()->iEnemies; i++) {
if (Engine()->entEnemies[i].id == idInX) {
return &Engine()->entEnemies[i];
}
}
[add_junk /]
}

[junk_disable /]
return nullptr;
}

};

#endif


But how can i change the code so that the Triggerbot shoots even when target is dead. Because its look unlegit if it stops after the enemie is down. i hope someone can and will help me.

thx.
Quote Originally Posted by Mexor View Post
Hello,

i use since month the source code from merrcys polly hack for my triggerbot.

 
Source
class Triggerbot {

public:
void run() {
[junk_enable /]
while (true) {
[add_junk /]
if (Settings()->triggerEnabled) {
[add_junk /]
Entity* inX = inCrosshair();

if (inX != nullptr && Engine()->me.weapon_ammo > 0 && inX->hp > 0 && (Settings()->trigger_holdkey == 0 || GetAsyncKeyState(Settings()->trigger_holdkey))) {
Engine()->Memory()->Write<int>(Engine()->getClientModule()->dwBase + Engine()->Offsets()->dwAttack, 5);
Sleep(10);
if (!GetAsyncKeyState(VK_LBUTTON)) {
Engine()->Memory()->Write<int>(Engine()->getClientModule()->dwBase + Engine()->Offsets()->dwAttack, 4);
}
}
[add_junk /]
}

Sleep(1);
}
[add_junk /]
[junk_disable /]
}

private:
Entity* inCrosshair() {
[junk_enable /]
[add_junk /]
int idInX = Engine()->Memory()->Read<int>(Engine()->me.dwBase + Engine()->Offsets()->dwInCross);

if (idInX != 0) {
[add_junk /]
for (int i = 0; i < Engine()->iEnemies; i++) {
if (Engine()->entEnemies[i].id == idInX) {
return &Engine()->entEnemies[i];
}
}
[add_junk /]
}

[junk_disable /]
return nullptr;
}

};

#endif


But how can i change the code so that the Triggerbot shoots even when target is dead. Because its look unlegit if it stops after the enemie is down. i hope someone can and will help me.

thx.
You mean after shoot/burst?
Quote Originally Posted by imzyphon View Post
You mean after shoot/burst?
Yes I mean after burst or shoot. The best solution for this would be, if I hold the trigger key and an enemy cross the crosshair, then the trigger start to shoot and stop the shooting not until I let go the trigger key.
Quote Originally Posted by Mexor View Post
Yes I mean after burst or shoot. The best solution for this would be, if I hold the trigger key and an enemy cross the crosshair, then the trigger start to shoot and stop the shooting not until I let go the trigger key.
Just make a Variable to hold a bool value, if a enemy is in your crosshair set it to True, and when you let go off the trigger key set it to false.
Than just call Shoot(); when ever that variable is true.
Quote Originally Posted by xXxPussyDestrpyerxXx View Post
Just make a Variable to hold a bool value, if a enemy is in your crosshair set it to True, and when you let go off the trigger key set it to false.
Than just call Shoot(); when ever that variable is true.
Ok thanks i will test this.
Seems this has been solved.

/Closed.
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us