Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] can someone tell me what does GetMaxPower do?

[DiscordArchive] can someone tell me what does GetMaxPower do?

[DiscordArchive] can someone tell me what does GetMaxPower do?

Pages (8): 1 2 3 4 5 8 Next  
rektbyfaith
Administrator
0
11-02-2022, 06:00 PM
#1
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:00:56.541000+00:00
Original source

can someone tell me what does GetMaxPower do?
rektbyfaith
11-02-2022, 06:00 PM #1

Archived author: aionisbeingpegged • Posted: 2022-11-02T18:00:56.541000+00:00
Original source

can someone tell me what does GetMaxPower do?

rektbyfaith
Administrator
0
11-02-2022, 06:01 PM
#2
Archived author: Revision • Posted: 2022-11-02T18:01:10.702000+00:00
Original source

Perhaps not but I don't know any of that so you have one on me there for sure.
rektbyfaith
11-02-2022, 06:01 PM #2

Archived author: Revision • Posted: 2022-11-02T18:01:10.702000+00:00
Original source

Perhaps not but I don't know any of that so you have one on me there for sure.

rektbyfaith
Administrator
0
11-02-2022, 06:01 PM
#3
Archived author: Revision • Posted: 2022-11-02T18:01:46.827000+00:00
Original source

It should return the max power that's available. The max value of mana, for example.
rektbyfaith
11-02-2022, 06:01 PM #3

Archived author: Revision • Posted: 2022-11-02T18:01:46.827000+00:00
Original source

It should return the max power that's available. The max value of mana, for example.

rektbyfaith
Administrator
0
11-02-2022, 06:02 PM
#4
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:02:06.756000+00:00
Original source

so it's not setting the power to the max value?
rektbyfaith
11-02-2022, 06:02 PM #4

Archived author: aionisbeingpegged • Posted: 2022-11-02T18:02:06.756000+00:00
Original source

so it's not setting the power to the max value?

rektbyfaith
Administrator
0
11-02-2022, 06:02 PM
#5
Archived author: Revision • Posted: 2022-11-02T18:02:18.343000+00:00
Original source

No, it just grabs the value.
rektbyfaith
11-02-2022, 06:02 PM #5

Archived author: Revision • Posted: 2022-11-02T18:02:18.343000+00:00
Original source

No, it just grabs the value.

rektbyfaith
Administrator
0
11-02-2022, 06:02 PM
#6
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:02:25.852000+00:00
Original source

found 2 codes that should probably be the same
rektbyfaith
11-02-2022, 06:02 PM #6

Archived author: aionisbeingpegged • Posted: 2022-11-02T18:02:25.852000+00:00
Original source

found 2 codes that should probably be the same

rektbyfaith
Administrator
0
11-02-2022, 06:02 PM
#7
Archived author: Revision • Posted: 2022-11-02T18:02:30.252000+00:00
Original source

You use SetMaxPower to set it.
rektbyfaith
11-02-2022, 06:02 PM #7

Archived author: Revision • Posted: 2022-11-02T18:02:30.252000+00:00
Original source

You use SetMaxPower to set it.

rektbyfaith
Administrator
0
11-02-2022, 06:03 PM
#8
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:03:01.984000+00:00
Original source

```
        if (getPetType() == SUMMON_PET && !current) //all (?) summon pets come with full health when called, but not when they are current
        {
            SetPower(POWER_MANA, GetMaxPower(POWER_MANA));
            SetFullHealth();
```
rektbyfaith
11-02-2022, 06:03 PM #8

Archived author: aionisbeingpegged • Posted: 2022-11-02T18:03:01.984000+00:00
Original source

```
        if (getPetType() == SUMMON_PET && !current) //all (?) summon pets come with full health when called, but not when they are current
        {
            SetPower(POWER_MANA, GetMaxPower(POWER_MANA));
            SetFullHealth();
```

rektbyfaith
Administrator
0
11-02-2022, 06:03 PM
#9
Archived author: aionisbeingpegged • Posted: 2022-11-02T18:03:09.210000+00:00
Original source

from AzerothCore
rektbyfaith
11-02-2022, 06:03 PM #9

Archived author: aionisbeingpegged • Posted: 2022-11-02T18:03:09.210000+00:00
Original source

from AzerothCore

rektbyfaith
Administrator
0
11-02-2022, 06:03 PM
#10
Archived author: Revision • Posted: 2022-11-02T18:03:23.221000+00:00
Original source

Yes, it sets the current mana to its max value
rektbyfaith
11-02-2022, 06:03 PM #10

Archived author: Revision • Posted: 2022-11-02T18:03:23.221000+00:00
Original source

Yes, it sets the current mana to its max value

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