Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] why is that?

[DiscordArchive] why is that?

[DiscordArchive] why is that?

Pages (3): Previous 1 2 3
rektbyfaith
Administrator
0
12-25-2022, 09:03 PM
#21
Archived author: Honey • Posted: 2022-12-25T21:03:07.612000+00:00
Original source

`(event, player, command, chatHandler)` these are arguments the core passes on to your script.
`command` is what the user typed, minus the .
so if you want the script to do something when the user types ` .test`, use `if command == 'test' then`
rektbyfaith
12-25-2022, 09:03 PM #21

Archived author: Honey • Posted: 2022-12-25T21:03:07.612000+00:00
Original source

`(event, player, command, chatHandler)` these are arguments the core passes on to your script.
`command` is what the user typed, minus the .
so if you want the script to do something when the user types ` .test`, use `if command == 'test' then`

rektbyfaith
Administrator
0
12-25-2022, 09:09 PM
#22
Archived author: adm • Posted: 2022-12-25T21:09:16.136000+00:00
Original source

Right, this works, thanks!

Now just have to figure how to cast a buff on the player on use
rektbyfaith
12-25-2022, 09:09 PM #22

Archived author: adm • Posted: 2022-12-25T21:09:16.136000+00:00
Original source

Right, this works, thanks!

Now just have to figure how to cast a buff on the player on use

rektbyfaith
Administrator
0
12-25-2022, 09:16 PM
#23
Archived author: Honey • Posted: 2022-12-25T21:16:33.888000+00:00
Original source

CastSpell with player as caster and target can do that
rektbyfaith
12-25-2022, 09:16 PM #23

Archived author: Honey • Posted: 2022-12-25T21:16:33.888000+00:00
Original source

CastSpell with player as caster and target can do that

rektbyfaith
Administrator
0
12-25-2022, 09:18 PM
#24
Archived author: adm • Posted: 2022-12-25T21:18:18.572000+00:00
Original source

or maybe player:AddAura too?
rektbyfaith
12-25-2022, 09:18 PM #24

Archived author: adm • Posted: 2022-12-25T21:18:18.572000+00:00
Original source

or maybe player:AddAura too?

rektbyfaith
Administrator
0
12-25-2022, 09:18 PM
#25
Archived author: Honey • Posted: 2022-12-25T21:18:21.731000+00:00
Original source

add a nil check for player at the start of the function, cause if the command is used from the worldserver, player is nil
rektbyfaith
12-25-2022, 09:18 PM #25

Archived author: Honey • Posted: 2022-12-25T21:18:21.731000+00:00
Original source

add a nil check for player at the start of the function, cause if the command is used from the worldserver, player is nil

rektbyfaith
Administrator
0
12-25-2022, 09:18 PM
#26
Archived author: Honey • Posted: 2022-12-25T21:18:41.221000+00:00
Original source

depends if you cast a spell or add an aura
rektbyfaith
12-25-2022, 09:18 PM #26

Archived author: Honey • Posted: 2022-12-25T21:18:41.221000+00:00
Original source

depends if you cast a spell or add an aura

rektbyfaith
Administrator
0
12-25-2022, 09:18 PM
#27
Archived author: adm • Posted: 2022-12-25T21:18:51.529000+00:00
Original source

i prefer a spell
rektbyfaith
12-25-2022, 09:18 PM #27

Archived author: adm • Posted: 2022-12-25T21:18:51.529000+00:00
Original source

i prefer a spell

Pages (3): Previous 1 2 3
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)