Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] Oh, thank you. I didn't know that was a thing. So instead of player:HasSpell if I use Player:LearnCl

[DiscordArchive] Oh, thank you. I didn't know that was a thing. So instead of player:HasSpell if I use Player:LearnCl

[DiscordArchive] Oh, thank you. I didn't know that was a thing. So instead of player:HasSpell if I use Player:LearnCl

rektbyfaith
Administrator
0
06-14-2022, 02:23 PM
#1
Archived author: Revision • Posted: 2022-06-14T14:23:17.030000+00:00
Original source

Oh, thank you. I didn't know that was a thing. So instead of player:HasSpell if I use Player:LearnClassSpells all I have to do is HasSpell?
rektbyfaith
06-14-2022, 02:23 PM #1

Archived author: Revision • Posted: 2022-06-14T14:23:17.030000+00:00
Original source

Oh, thank you. I didn't know that was a thing. So instead of player:HasSpell if I use Player:LearnClassSpells all I have to do is HasSpell?

rektbyfaith
Administrator
0
06-14-2022, 02:23 PM
#2
Archived author: Foe • Posted: 2022-06-14T14:23:59.794000+00:00
Original source

You'd do self:HasSpell in the LearnClassSpells function
rektbyfaith
06-14-2022, 02:23 PM #2

Archived author: Foe • Posted: 2022-06-14T14:23:59.794000+00:00
Original source

You'd do self:HasSpell in the LearnClassSpells function

rektbyfaith
Administrator
0
06-14-2022, 02:24 PM
#3
Archived author: Revision • Posted: 2022-06-14T14:24:12.189000+00:00
Original source

Ah, okay. That makes sense, heh.
rektbyfaith
06-14-2022, 02:24 PM #3

Archived author: Revision • Posted: 2022-06-14T14:24:12.189000+00:00
Original source

Ah, okay. That makes sense, heh.

rektbyfaith
Administrator
0
06-14-2022, 02:24 PM
#4
Archived author: Foe • Posted: 2022-06-14T14:24:21.116000+00:00
Original source

Self is reference to the player object in that case
rektbyfaith
06-14-2022, 02:24 PM #4

Archived author: Foe • Posted: 2022-06-14T14:24:21.116000+00:00
Original source

Self is reference to the player object in that case

rektbyfaith
Administrator
0
06-14-2022, 02:26 PM
#5
Archived author: Honey • Posted: 2022-06-14T14:26:21.921000+00:00
Original source

i must admit that i'm taken aback by the need of declaring it globally
rektbyfaith
06-14-2022, 02:26 PM #5

Archived author: Honey • Posted: 2022-06-14T14:26:21.921000+00:00
Original source

i must admit that i'm taken aback by the need of declaring it globally

rektbyfaith
Administrator
0
06-14-2022, 02:26 PM
#6
Archived author: Revision • Posted: 2022-06-14T14:26:23.150000+00:00
Original source

Yeah. I wanted to ask too, is there something in LUA that works like sWorld->setRate and sWorld->getRate? I couldn't find it so I don't think so but wanted to ask to be sure.
rektbyfaith
06-14-2022, 02:26 PM #6

Archived author: Revision • Posted: 2022-06-14T14:26:23.150000+00:00
Original source

Yeah. I wanted to ask too, is there something in LUA that works like sWorld->setRate and sWorld->getRate? I couldn't find it so I don't think so but wanted to ask to be sure.

rektbyfaith
Administrator
0
06-14-2022, 02:26 PM
#7
Archived author: Foe • Posted: 2022-06-14T14:26:48.218000+00:00
Original source

It's appending to the list of player object methods, which is global to begin with
rektbyfaith
06-14-2022, 02:26 PM #7

Archived author: Foe • Posted: 2022-06-14T14:26:48.218000+00:00
Original source

It's appending to the list of player object methods, which is global to begin with

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