Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] So where to look for the server side calculation?

[DiscordArchive] So where to look for the server side calculation?

[DiscordArchive] So where to look for the server side calculation?

Pages (4): 1 2 3 4 Next
rektbyfaith
Administrator
0
03-14-2020, 10:46 PM
#1
Archived author: ghibly79 • Posted: 2020-03-14T22:46:21.735000+00:00
Original source

So where to look for the server side calculation?
rektbyfaith
03-14-2020, 10:46 PM #1

Archived author: ghibly79 • Posted: 2020-03-14T22:46:21.735000+00:00
Original source

So where to look for the server side calculation?

rektbyfaith
Administrator
0
03-14-2020, 10:46 PM
#2
Archived author: Viste • Posted: 2020-03-14T22:46:59.226000+00:00
Original source

and plz use 3 ` before and after code
rektbyfaith
03-14-2020, 10:46 PM #2

Archived author: Viste • Posted: 2020-03-14T22:46:59.226000+00:00
Original source

and plz use 3 ` before and after code

rektbyfaith
Administrator
0
03-14-2020, 10:47 PM
#3
Archived author: Viste • Posted: 2020-03-14T22:47:18.107000+00:00
Original source

and then code looks like
```
void Player::UpdateSpellDamageAndHealingBonus()
{
// Magic damage modifiers implemented in Unit::SpellDamageBonusDone
// This information for client side use only
// Get healing bonus for all schools
SetStatInt32Value(PLAYER_FIELD_MOD_HEALING_DONE_POS, SpellBaseHealingBonusDone(SPELL_SCHOOL_MASK_ALL));
// Get damage bonus for all schools
for (int i = SPELL_SCHOOL_HOLY; i < MAX_SPELL_SCHOOL; ++i)
SetStatInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+i, SpellBaseDamageBonusDone(SpellSchoolMask(1 << i)));
}```
rektbyfaith
03-14-2020, 10:47 PM #3

Archived author: Viste • Posted: 2020-03-14T22:47:18.107000+00:00
Original source

and then code looks like
```
void Player::UpdateSpellDamageAndHealingBonus()
{
// Magic damage modifiers implemented in Unit::SpellDamageBonusDone
// This information for client side use only
// Get healing bonus for all schools
SetStatInt32Value(PLAYER_FIELD_MOD_HEALING_DONE_POS, SpellBaseHealingBonusDone(SPELL_SCHOOL_MASK_ALL));
// Get damage bonus for all schools
for (int i = SPELL_SCHOOL_HOLY; i < MAX_SPELL_SCHOOL; ++i)
SetStatInt32Value(PLAYER_FIELD_MOD_DAMAGE_DONE_POS+i, SpellBaseDamageBonusDone(SpellSchoolMask(1 << i)));
}```

rektbyfaith
Administrator
0
03-14-2020, 10:49 PM
#4
Archived author: ghibly79 • Posted: 2020-03-14T22:49:58.587000+00:00
Original source

thx
rektbyfaith
03-14-2020, 10:49 PM #4

Archived author: ghibly79 • Posted: 2020-03-14T22:49:58.587000+00:00
Original source

thx

rektbyfaith
Administrator
0
03-14-2020, 10:50 PM
#5
Archived author: Viste • Posted: 2020-03-14T22:50:24.720000+00:00
Original source

```C
int32 Unit::SpellBaseDamageBonusDone(SpellSchoolMask schoolMask)```
rektbyfaith
03-14-2020, 10:50 PM #5

Archived author: Viste • Posted: 2020-03-14T22:50:24.720000+00:00
Original source

```C
int32 Unit::SpellBaseDamageBonusDone(SpellSchoolMask schoolMask)```

rektbyfaith
Administrator
0
03-14-2020, 10:51 PM
#6
Archived author: Viste • Posted: 2020-03-14T22:51:48.926000+00:00
Original source

and
rektbyfaith
03-14-2020, 10:51 PM #6

Archived author: Viste • Posted: 2020-03-14T22:51:48.926000+00:00
Original source

and

rektbyfaith
Administrator
0
03-14-2020, 10:51 PM
#7
Archived author: Viste • Posted: 2020-03-14T22:51:51.751000+00:00
Original source

```
void Player::_ApplyItemBonuses(ItemTemplate const* proto, uint8 slot, bool apply, bool only_level_scale /*= false*/)
```
rektbyfaith
03-14-2020, 10:51 PM #7

Archived author: Viste • Posted: 2020-03-14T22:51:51.751000+00:00
Original source

```
void Player::_ApplyItemBonuses(ItemTemplate const* proto, uint8 slot, bool apply, bool only_level_scale /*= false*/)
```

rektbyfaith
Administrator
0
03-14-2020, 10:52 PM
#8
Archived author: Viste • Posted: 2020-03-14T22:52:13.174000+00:00
Original source

and maeby somewhere else this what i remember
rektbyfaith
03-14-2020, 10:52 PM #8

Archived author: Viste • Posted: 2020-03-14T22:52:13.174000+00:00
Original source

and maeby somewhere else this what i remember

rektbyfaith
Administrator
0
03-14-2020, 10:52 PM
#9
Archived author: ghibly79 • Posted: 2020-03-14T22:52:44.241000+00:00
Original source

In player.cpp?
rektbyfaith
03-14-2020, 10:52 PM #9

Archived author: ghibly79 • Posted: 2020-03-14T22:52:44.241000+00:00
Original source

In player.cpp?

rektbyfaith
Administrator
0
03-14-2020, 10:53 PM
#10
Archived author: Viste • Posted: 2020-03-14T22:53:01.295000+00:00
Original source

unit and player yes
rektbyfaith
03-14-2020, 10:53 PM #10

Archived author: Viste • Posted: 2020-03-14T22:53:01.295000+00:00
Original source

unit and player yes

Pages (4): 1 2 3 4 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)