RedStar 10 Posted June 24, 2020 Share Posted June 24, 2020 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 comment Share on other sites More sharing options...
Premium Speachless 759 Posted June 24, 2020 Premium Share Posted June 24, 2020 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. 3 Link to comment Share on other sites More sharing options...
RedStar 10 Posted June 27, 2020 Author Share Posted June 27, 2020 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 comment Share on other sites More sharing options...
Forum Moderator Solution VegaS™ 10282 Posted August 20, 2020 Forum Moderator Solution Share Posted August 20, 2020 (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: This is the hidden content, please Sign In or Sign Up 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 August 22, 2020 by VegaS™ 17 1 1 4 6 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now