Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Well is your source different than the one compiled in the worldserver.exe?

[DiscordArchive] Well is your source different than the one compiled in the worldserver.exe?

[DiscordArchive] Well is your source different than the one compiled in the worldserver.exe?

Pages (9): Previous 1 4 5 6 7 8 9 Next  
rektbyfaith
Administrator
0
06-05-2019, 01:36 PM
#51
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:36:11.430000+00:00
Original source

after that I can make a sql table with `creatureEntry`, `modNormal`, `modSpell`
rektbyfaith
06-05-2019, 01:36 PM #51

Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:36:11.430000+00:00
Original source

after that I can make a sql table with `creatureEntry`, `modNormal`, `modSpell`

rektbyfaith
Administrator
0
06-05-2019, 01:36 PM
#52
Archived author: Luka • Posted: 2019-06-05T13:36:14.858000+00:00
Original source

Don't write two separate functions for that
rektbyfaith
06-05-2019, 01:36 PM #52

Archived author: Luka • Posted: 2019-06-05T13:36:14.858000+00:00
Original source

Don't write two separate functions for that

rektbyfaith
Administrator
0
06-05-2019, 01:36 PM
#53
Archived author: Luka • Posted: 2019-06-05T13:36:33.361000+00:00
Original source

`uint32 Modifer_DealDamage(Unit* target, Unit* attacker, uint32 damage, bool isSpellDamage)`
rektbyfaith
06-05-2019, 01:36 PM #53

Archived author: Luka • Posted: 2019-06-05T13:36:33.361000+00:00
Original source

`uint32 Modifer_DealDamage(Unit* target, Unit* attacker, uint32 damage, bool isSpellDamage)`

rektbyfaith
Administrator
0
06-05-2019, 01:36 PM
#54
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:36:58.610000+00:00
Original source

oh yea you are right
rektbyfaith
06-05-2019, 01:36 PM #54

Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:36:58.610000+00:00
Original source

oh yea you are right

rektbyfaith
Administrator
0
06-05-2019, 01:36 PM
#55
Archived author: Luka • Posted: 2019-06-05T13:36:58.837000+00:00
Original source

And then pass true or false depending on the type of damage and use different modifiers for it
rektbyfaith
06-05-2019, 01:36 PM #55

Archived author: Luka • Posted: 2019-06-05T13:36:58.837000+00:00
Original source

And then pass true or false depending on the type of damage and use different modifiers for it

rektbyfaith
Administrator
0
06-05-2019, 01:37 PM
#56
Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:37:02.751000+00:00
Original source

a boolean can do it
rektbyfaith
06-05-2019, 01:37 PM #56

Archived author: MR.MUSTACHE • Posted: 2019-06-05T13:37:02.751000+00:00
Original source

a boolean can do it

rektbyfaith
Administrator
0
06-05-2019, 01:37 PM
#57
Archived author: Luka • Posted: 2019-06-05T13:37:11.287000+00:00
Original source

Also, your function naming is weird,
` uint32 ModiferDealDamage(Unit* target, Unit* attacker, uint32 damage)`
rektbyfaith
06-05-2019, 01:37 PM #57

Archived author: Luka • Posted: 2019-06-05T13:37:11.287000+00:00
Original source

Also, your function naming is weird,
` uint32 ModiferDealDamage(Unit* target, Unit* attacker, uint32 damage)`

rektbyfaith
Administrator
0
06-05-2019, 01:37 PM
#58
Archived author: Luka • Posted: 2019-06-05T13:37:17.511000+00:00
Original source

Remove the _
rektbyfaith
06-05-2019, 01:37 PM #58

Archived author: Luka • Posted: 2019-06-05T13:37:17.511000+00:00
Original source

Remove the _

rektbyfaith
Administrator
0
06-05-2019, 01:37 PM
#59
Archived author: Luka • Posted: 2019-06-05T13:37:43.331000+00:00
Original source

And pass the damage as a reference, that way you don't have to return it
rektbyfaith
06-05-2019, 01:37 PM #59

Archived author: Luka • Posted: 2019-06-05T13:37:43.331000+00:00
Original source

And pass the damage as a reference, that way you don't have to return it

rektbyfaith
Administrator
0
06-05-2019, 01:39 PM
#60
Archived author: Luka • Posted: 2019-06-05T13:39:14.226000+00:00
Original source

`uint32 modiferDealDamage(Unit* target, Unit* attacker, uint32& damage)`
example in hook
```cpp
void ModifySpellDamageTaken(Unit* target, Unit* attacker, int32& damage) override
{
damage = Modifer_DealDamage(target, attacker, damage);
}```
end of modiferDealDamage function
```cpp
damage * damageMultiplier;```
rektbyfaith
06-05-2019, 01:39 PM #60

Archived author: Luka • Posted: 2019-06-05T13:39:14.226000+00:00
Original source

`uint32 modiferDealDamage(Unit* target, Unit* attacker, uint32& damage)`
example in hook
```cpp
void ModifySpellDamageTaken(Unit* target, Unit* attacker, int32& damage) override
{
damage = Modifer_DealDamage(target, attacker, damage);
}```
end of modiferDealDamage function
```cpp
damage * damageMultiplier;```

Pages (9): Previous 1 4 5 6 7 8 9 Next  
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)