Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Hi everyone !

[DiscordArchive] Hi everyone !

[DiscordArchive] Hi everyone !

Pages (2): Previous 1 2
rektbyfaith
Administrator
0
07-15-2023, 05:30 PM
#11
Archived author: leonis35 • Posted: 2023-07-15T17:30:57.357000+00:00
Original source

Well and how should i make it ?
rektbyfaith
07-15-2023, 05:30 PM #11

Archived author: leonis35 • Posted: 2023-07-15T17:30:57.357000+00:00
Original source

Well and how should i make it ?

rektbyfaith
Administrator
0
07-15-2023, 05:34 PM
#12
Archived author: Tea • Posted: 2023-07-15T17:34:20.745000+00:00
Original source

im pretty sure client needs those to be signed
rektbyfaith
07-15-2023, 05:34 PM #12

Archived author: Tea • Posted: 2023-07-15T17:34:20.745000+00:00
Original source

im pretty sure client needs those to be signed

rektbyfaith
Administrator
0
07-15-2023, 06:01 PM
#13
Archived author: jackpoz • Posted: 2023-07-15T18:01:19.096000+00:00
Original source

<#870722120458600528> for client edits
rektbyfaith
07-15-2023, 06:01 PM #13

Archived author: jackpoz • Posted: 2023-07-15T18:01:19.096000+00:00
Original source

<#870722120458600528> for client edits

rektbyfaith
Administrator
0
07-15-2023, 06:06 PM
#14
Archived author: leonis35 • Posted: 2023-07-15T18:06:08.854000+00:00
Original source

Well don't worry, i have solved the problem, i will show you its free
On Unit.cpp, find the float "GetTotalAttackPowerValue".
Then find this line (9309 for me) :
```cpp
int32 ap = GetInt32Value(UNIT_FIELD_RANGED_ATTACK_POWER) + int16(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 0)) + int16(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 1));
```
and replace by :
```cpp
int32 ap = GetInt32Value(UNIT_FIELD_RANGED_ATTACK_POWER) + int32(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 0)) + int32(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 1));
```
Do the same 5 line above.
With this, if your attackpower excced 32767 the client display 0 but the core calculate the correct value, and your damage done are correct.
rektbyfaith
07-15-2023, 06:06 PM #14

Archived author: leonis35 • Posted: 2023-07-15T18:06:08.854000+00:00
Original source

Well don't worry, i have solved the problem, i will show you its free
On Unit.cpp, find the float "GetTotalAttackPowerValue".
Then find this line (9309 for me) :
```cpp
int32 ap = GetInt32Value(UNIT_FIELD_RANGED_ATTACK_POWER) + int16(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 0)) + int16(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 1));
```
and replace by :
```cpp
int32 ap = GetInt32Value(UNIT_FIELD_RANGED_ATTACK_POWER) + int32(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 0)) + int32(GetUInt16Value(UNIT_FIELD_RANGED_ATTACK_POWER_MODS, 1));
```
Do the same 5 line above.
With this, if your attackpower excced 32767 the client display 0 but the core calculate the correct value, and your damage done are correct.

Pages (2): Previous 1 2
Recently Browsing
 
Recently Browsing