Jump to content
  • 0

to disable the auto attack in a duel?


RedStar
Go to solution Solved by VegaS™,

Question

 

Hi, I would like to disable the auto attack in duels but I can't understand how to do it.
Would any of you know how to show me the steps?
Thank you.

Link to post

3 answers to this question

Recommended Posts

  • 0
  • Solution
Posted (edited)

I sent him the code to PM some months ago for test, he said would be nice if I post here too, so here's:

GameLib/PythonPlayerInput.cpp

Search for:

void CPythonPlayer::__SetAutoAttackTargetActorID(DWORD dwVID)
{
 	m_dwAutoAttackTargetVID = dwVID;
}

Replace it with:

Hidden Content

    Give reaction to this post to see the hidden content.

UserInterface/InstanceBase.h

Make the function public from protected.

		static bool __FindPVPKey(DWORD dwSrcVID, DWORD dwDstVID);

UserInterface/Locale_Inc.h

#define ENABLE_BLOCK_AUTO_ATTACK_DUEL

 

 

Edited by VegaS™ (see edit history)
  • Love 2
Link to post
  • 0
  • VIP

My ideea is lazy and ugly, but its fast to do and has no performance impact.. i'm a very lazy person..

 

1. Server-side when the duel starts the server will send a command to the client that will set a variable to 1, and when it ends to 0.

2. Use the python root variable to set a binary global variable.

3. Use the global variable to return if 1 directly where the auto attack function is, so the auto attack wont work until the duel is finished.

4. Set the variable to 0 at every teleport.

  • Love 3
  • Ghost 2
Link to post
  • 0
On 6/24/2020 at 9:21 PM, Speachless said:

My ideea is lazy and ugly, but its fast to do and has no performance impact.. i'm a very lazy person..

 

1. Server-side when the duel starts the server will send a command to the client that will set a variable to 1, and when it ends to 0.

2. Use the python root variable to set a binary global variable.

3. Use the global variable to return if 1 directly where the auto attack function is, so the auto attack wont work until the duel is finished.

4. Set the variable to 0 at every teleport.

Hello, thank you for the clarification on the steps to be taken but more than a theoretical guide, a detailed guide would be more useful.
I await further answers.

Link to post
Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.