Forums WoW Modding Support Archives WoWModding Support Archives [DiscordArchive] Hey, does anyone know where to look to disable melee auto attacking for hunters to allow them use th

[DiscordArchive] Hey, does anyone know where to look to disable melee auto attacking for hunters to allow them use th

[DiscordArchive] Hey, does anyone know where to look to disable melee auto attacking for hunters to allow them use th

rektbyfaith
Administrator
0
12-24-2022, 11:05 PM
#1
Archived author: Ryande • Posted: 2022-12-24T23:05:05.270000+00:00
Original source

Hey, does anyone know where to look to disable melee auto attacking for hunters to allow them use their bow from any range?
rektbyfaith
12-24-2022, 11:05 PM #1

Archived author: Ryande • Posted: 2022-12-24T23:05:05.270000+00:00
Original source

Hey, does anyone know where to look to disable melee auto attacking for hunters to allow them use their bow from any range?

rektbyfaith
Administrator
0
12-24-2022, 11:26 PM
#2
Archived author: robinsch • Posted: 2022-12-24T23:26:38.215000+00:00
Original source

yup, here is the client code:

```cpp
_BOOL1 __cdecl C_Battleground::CanEnter(unsigned int playerLevel, BattlemasterListRec* dbc, _DWORD *a3)
{
char v4; // dl
int v5; // ecx
int *i; // eax

if ( dbc && a3 )
{
*a3 = 0;
if ( dbc->m_ID == 32 ) // Random Battleground
{
*a3 = 0;
return playerLevel == 80;
}
v4 = 0;
v5 = 0;

//
```
rektbyfaith
12-24-2022, 11:26 PM #2

Archived author: robinsch • Posted: 2022-12-24T23:26:38.215000+00:00
Original source

yup, here is the client code:

```cpp
_BOOL1 __cdecl C_Battleground::CanEnter(unsigned int playerLevel, BattlemasterListRec* dbc, _DWORD *a3)
{
char v4; // dl
int v5; // ecx
int *i; // eax

if ( dbc && a3 )
{
*a3 = 0;
if ( dbc->m_ID == 32 ) // Random Battleground
{
*a3 = 0;
return playerLevel == 80;
}
v4 = 0;
v5 = 0;

//
```

rektbyfaith
Administrator
0
12-24-2022, 11:30 PM
#3
Archived author: robinsch • Posted: 2022-12-24T23:30:41.283000+00:00
Original source

You could patch client executable 0x0054ba22 = FF to allow to queue for random BGs at any level. Different way, you could just increase the ID from BattlemasterList.dbc client and server side, then the check would not work. Or you just create a new entry that you will use.
rektbyfaith
12-24-2022, 11:30 PM #3

Archived author: robinsch • Posted: 2022-12-24T23:30:41.283000+00:00
Original source

You could patch client executable 0x0054ba22 = FF to allow to queue for random BGs at any level. Different way, you could just increase the ID from BattlemasterList.dbc client and server side, then the check would not work. Or you just create a new entry that you will use.

rektbyfaith
Administrator
0
12-24-2022, 11:31 PM
#4
Archived author: Deleted User • Posted: 2022-12-24T23:31:14.561000+00:00
Original source

I _knew_ I wasn't going crazy. Thank you very much robinsch.
rektbyfaith
12-24-2022, 11:31 PM #4

Archived author: Deleted User • Posted: 2022-12-24T23:31:14.561000+00:00
Original source

I _knew_ I wasn't going crazy. Thank you very much robinsch.

rektbyfaith
Administrator
0
12-24-2022, 11:51 PM
#5
Archived author: robinsch • Posted: 2022-12-24T23:51:39.626000+00:00
Original source

You can also patch the if check for displaying bgs in here: https://github.com/wowgaming/3.3.5-inter...me.lua#L31
[Embed: 3.3.5-interface-files/PVPBattlegroundFrame.lua at d0339b17b0221db76...]
Interface files from 3.3.5 to find useful information on how to work with AddOns API - 3.3.5-interface-files/PVPBattlegroundFrame.lua at d0339b17b0221db76e6acd2dc2915d224a5b62ca · wowgaming/3.3.5-i...
https://github.com/wowgaming/3.3.5-inter...dFrame.lua
rektbyfaith
12-24-2022, 11:51 PM #5

Archived author: robinsch • Posted: 2022-12-24T23:51:39.626000+00:00
Original source

You can also patch the if check for displaying bgs in here: https://github.com/wowgaming/3.3.5-inter...me.lua#L31
[Embed: 3.3.5-interface-files/PVPBattlegroundFrame.lua at d0339b17b0221db76...]
Interface files from 3.3.5 to find useful information on how to work with AddOns API - 3.3.5-interface-files/PVPBattlegroundFrame.lua at d0339b17b0221db76e6acd2dc2915d224a5b62ca · wowgaming/3.3.5-i...
https://github.com/wowgaming/3.3.5-inter...dFrame.lua

rektbyfaith
Administrator
0
12-24-2022, 11:55 PM
#6
Archived author: robinsch • Posted: 2022-12-24T23:55:19.134000+00:00
Original source

GetBattlegroundInfo returns isRandom as 4th parameter so just use it and change the if to

```
localizedName, canEnter, isHoliday, isRandom = GetBattlegroundInfo(i);
if ( isRandom or (localizedName and canEnter) ) then
```
rektbyfaith
12-24-2022, 11:55 PM #6

Archived author: robinsch • Posted: 2022-12-24T23:55:19.134000+00:00
Original source

GetBattlegroundInfo returns isRandom as 4th parameter so just use it and change the if to

```
localizedName, canEnter, isHoliday, isRandom = GetBattlegroundInfo(i);
if ( isRandom or (localizedName and canEnter) ) then
```

rektbyfaith
Administrator
0
12-25-2022, 12:25 AM
#7
Archived author: Titi • Posted: 2022-12-25T00:25:13.735000+00:00
Original source

Not all animations are in external anim files, most are in the M2 file
rektbyfaith
12-25-2022, 12:25 AM #7

Archived author: Titi • Posted: 2022-12-25T00:25:13.735000+00:00
Original source

Not all animations are in external anim files, most are in the M2 file

Recently Browsing
 
Recently Browsing