Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] Also i had a question. If i want to script a spell, that some part of his logic should be works with

[DiscordArchive] Also i had a question. If i want to script a spell, that some part of his logic should be works with

[DiscordArchive] Also i had a question. If i want to script a spell, that some part of his logic should be works with

rektbyfaith
Administrator
0
06-21-2023, 06:22 AM
#1
Archived author: Deleted User • Posted: 2023-06-21T06:22:23.264000+00:00
Original source

Also i had a question. If i want to script a spell, that some part of his logic should be works with 50% chance. Is it correct to use roll_chance_i(50) ?

```C++
if (roll_chance_i(50)) {
// logic here

```

Is it okay to use it inside spell of specific class?
rektbyfaith
06-21-2023, 06:22 AM #1

Archived author: Deleted User • Posted: 2023-06-21T06:22:23.264000+00:00
Original source

Also i had a question. If i want to script a spell, that some part of his logic should be works with 50% chance. Is it correct to use roll_chance_i(50) ?

```C++
if (roll_chance_i(50)) {
// logic here

```

Is it okay to use it inside spell of specific class?

rektbyfaith
Administrator
0
06-21-2023, 06:42 AM
#2
Archived author: Telegrill • Posted: 2023-06-21T06:42:36.845000+00:00
Original source

why are you obtaining GetHitDamage
rektbyfaith
06-21-2023, 06:42 AM #2

Archived author: Telegrill • Posted: 2023-06-21T06:42:36.845000+00:00
Original source

why are you obtaining GetHitDamage

rektbyfaith
Administrator
0
06-21-2023, 07:05 AM
#3
Archived author: Deleted User • Posted: 2023-06-21T07:05:35.057000+00:00
Original source

Oops, I tested something before and forgot to remove it
rektbyfaith
06-21-2023, 07:05 AM #3

Archived author: Deleted User • Posted: 2023-06-21T07:05:35.057000+00:00
Original source

Oops, I tested something before and forgot to remove it

rektbyfaith
Administrator
0
06-21-2023, 07:06 AM
#4
Archived author: Deleted User • Posted: 2023-06-21T07:06:01.127000+00:00
Original source

I'm new, just learning TC. Have not yet studied the work of certain methods
rektbyfaith
06-21-2023, 07:06 AM #4

Archived author: Deleted User • Posted: 2023-06-21T07:06:01.127000+00:00
Original source

I'm new, just learning TC. Have not yet studied the work of certain methods

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)