Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] As I said I'm new to C++, I have a question. Would setting this:```

[DiscordArchive] As I said I'm new to C++, I have a question. Would setting this:```

[DiscordArchive] As I said I'm new to C++, I have a question. Would setting this:```

Pages (7): 1 2 3 4 5 7 Next  
rektbyfaith
Administrator
0
05-10-2022, 04:43 AM
#1
Archived author: Nofyr • Posted: 2022-05-10T04:43:15.427000+00:00
Original source

As I said I'm new to C++, I have a question. Would setting this:```
if (GetRace() == RACE_NIGHTELF)
CastSpell(this, 20584, true);
CastSpell(this, 8326, true);
``` To ->```
if (GetRace() == RACE_NONE)
CastSpell(this, 20584, true);
CastSpell(this, 8326, true);
``` Work as intended?
rektbyfaith
05-10-2022, 04:43 AM #1

Archived author: Nofyr • Posted: 2022-05-10T04:43:15.427000+00:00
Original source

As I said I'm new to C++, I have a question. Would setting this:```
if (GetRace() == RACE_NIGHTELF)
CastSpell(this, 20584, true);
CastSpell(this, 8326, true);
``` To ->```
if (GetRace() == RACE_NONE)
CastSpell(this, 20584, true);
CastSpell(this, 8326, true);
``` Work as intended?

rektbyfaith
Administrator
0
05-10-2022, 04:44 AM
#2
Archived author: Nofyr • Posted: 2022-05-10T04:44:07.351000+00:00
Original source

The definitions of RACE show that RACE_NONE is a skip option so would it apply to all races in that case? Or would I define it with each race using OR ( || ) statements?
rektbyfaith
05-10-2022, 04:44 AM #2

Archived author: Nofyr • Posted: 2022-05-10T04:44:07.351000+00:00
Original source

The definitions of RACE show that RACE_NONE is a skip option so would it apply to all races in that case? Or would I define it with each race using OR ( || ) statements?

rektbyfaith
Administrator
0
05-10-2022, 04:44 AM
#3
Archived author: Bench • Posted: 2022-05-10T04:44:28.168000+00:00
Original source

I think you might have to do it with or's
rektbyfaith
05-10-2022, 04:44 AM #3

Archived author: Bench • Posted: 2022-05-10T04:44:28.168000+00:00
Original source

I think you might have to do it with or's

rektbyfaith
Administrator
0
05-10-2022, 04:45 AM
#4
Archived author: Nofyr • Posted: 2022-05-10T04:45:04.392000+00:00
Original source

I have a better idea actually.
rektbyfaith
05-10-2022, 04:45 AM #4

Archived author: Nofyr • Posted: 2022-05-10T04:45:04.392000+00:00
Original source

I have a better idea actually.

rektbyfaith
Administrator
0
05-10-2022, 04:45 AM
#5
Archived author: Nofyr • Posted: 2022-05-10T04:45:10.416000+00:00
Original source

I'll try changing it to...
rektbyfaith
05-10-2022, 04:45 AM #5

Archived author: Nofyr • Posted: 2022-05-10T04:45:10.416000+00:00
Original source

I'll try changing it to...

rektbyfaith
Administrator
0
05-10-2022, 04:45 AM
#6
Archived author: Nofyr • Posted: 2022-05-10T04:45:23.713000+00:00
Original source

```
if (GetRace() != RACE_NONE)
CastSpell(this, 20584, true);
CastSpell(this, 8326, true);
```
rektbyfaith
05-10-2022, 04:45 AM #6

Archived author: Nofyr • Posted: 2022-05-10T04:45:23.713000+00:00
Original source

```
if (GetRace() != RACE_NONE)
CastSpell(this, 20584, true);
CastSpell(this, 8326, true);
```

rektbyfaith
Administrator
0
05-10-2022, 04:48 AM
#7
Archived author: Nofyr • Posted: 2022-05-10T04:48:25.776000+00:00
Original source

If I make a new cmake solution, what can I disable to save time? Tools, and?
rektbyfaith
05-10-2022, 04:48 AM #7

Archived author: Nofyr • Posted: 2022-05-10T04:48:25.776000+00:00
Original source

If I make a new cmake solution, what can I disable to save time? Tools, and?

rektbyfaith
Administrator
0
05-10-2022, 04:48 AM
#8
Archived author: Nofyr • Posted: 2022-05-10T04:48:46.174000+00:00
Original source

Or just go ahead and build the new solution with ALL_BUILD?
rektbyfaith
05-10-2022, 04:48 AM #8

Archived author: Nofyr • Posted: 2022-05-10T04:48:46.174000+00:00
Original source

Or just go ahead and build the new solution with ALL_BUILD?

rektbyfaith
Administrator
0
05-10-2022, 04:52 AM
#9
Archived author: Jinnai • Posted: 2022-05-10T04:52:41.831000+00:00
Original source

Don't clean up in vs
rektbyfaith
05-10-2022, 04:52 AM #9

Archived author: Jinnai • Posted: 2022-05-10T04:52:41.831000+00:00
Original source

Don't clean up in vs

rektbyfaith
Administrator
0
05-10-2022, 04:53 AM
#10
Archived author: Nofyr • Posted: 2022-05-10T04:53:00.343000+00:00
Original source

I assumed cleaning up would refactor or break the change, so I just did an ALL_BUILD
rektbyfaith
05-10-2022, 04:53 AM #10

Archived author: Nofyr • Posted: 2022-05-10T04:53:00.343000+00:00
Original source

I assumed cleaning up would refactor or break the change, so I just did an ALL_BUILD

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