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

[DiscordArchive] why is that?

[DiscordArchive] why is that?

Pages (3): 1 2 3 Next
rektbyfaith
Administrator
0
12-25-2022, 06:51 PM
#1
Archived author: adm • Posted: 2022-12-25T18:51:13.855000+00:00
Original source

why is that?
rektbyfaith
12-25-2022, 06:51 PM #1

Archived author: adm • Posted: 2022-12-25T18:51:13.855000+00:00
Original source

why is that?

rektbyfaith
Administrator
0
12-25-2022, 06:51 PM
#2
Archived author: Foe • Posted: 2022-12-25T18:51:42.681000+00:00
Original source

Because you're creating a command, thus you should use the command hook
rektbyfaith
12-25-2022, 06:51 PM #2

Archived author: Foe • Posted: 2022-12-25T18:51:42.681000+00:00
Original source

Because you're creating a command, thus you should use the command hook

rektbyfaith
Administrator
0
12-25-2022, 06:51 PM
#3
Archived author: Foe • Posted: 2022-12-25T18:51:56.213000+00:00
Original source

Using the chat hook is a hack
rektbyfaith
12-25-2022, 06:51 PM #3

Archived author: Foe • Posted: 2022-12-25T18:51:56.213000+00:00
Original source

Using the chat hook is a hack

rektbyfaith
Administrator
0
12-25-2022, 06:54 PM
#4
Archived author: adm • Posted: 2022-12-25T18:54:43.688000+00:00
Original source

to be honest, I'm just modifying an existing script It worked well so far, I just need some slight modifications
rektbyfaith
12-25-2022, 06:54 PM #4

Archived author: adm • Posted: 2022-12-25T18:54:43.688000+00:00
Original source

to be honest, I'm just modifying an existing script It worked well so far, I just need some slight modifications

rektbyfaith
Administrator
0
12-25-2022, 06:56 PM
#5
Archived author: adm • Posted: 2022-12-25T18:56:36.339000+00:00
Original source

Thank you!
rektbyfaith
12-25-2022, 06:56 PM #5

Archived author: adm • Posted: 2022-12-25T18:56:36.339000+00:00
Original source

Thank you!

rektbyfaith
Administrator
0
12-25-2022, 08:27 PM
#6
Archived author: adm • Posted: 2022-12-25T20:27:31.607000+00:00
Original source

Any idea why this doesn't work:

> local command = "test"
>
> function Test(event, player, message, type, language)
> if(message == command) then
>
> **player:CastSpell(2825)**

The bold part is wrong
rektbyfaith
12-25-2022, 08:27 PM #6

Archived author: adm • Posted: 2022-12-25T20:27:31.607000+00:00
Original source

Any idea why this doesn't work:

> local command = "test"
>
> function Test(event, player, message, type, language)
> if(message == command) then
>
> **player:CastSpell(2825)**

The bold part is wrong

rektbyfaith
Administrator
0
12-25-2022, 08:28 PM
#7
Archived author: adm • Posted: 2022-12-25T20:28:31.107000+00:00
Original source

I tried also unit:CastSpell(unit, 2895, true), same thing
rektbyfaith
12-25-2022, 08:28 PM #7

Archived author: adm • Posted: 2022-12-25T20:28:31.107000+00:00
Original source

I tried also unit:CastSpell(unit, 2895, true), same thing

rektbyfaith
Administrator
0
12-25-2022, 08:29 PM
#8
Archived author: adm • Posted: 2022-12-25T20:29:58.358000+00:00
Original source

the script works if I put only:

> player:SendBroadcastMessage("something something")
rektbyfaith
12-25-2022, 08:29 PM #8

Archived author: adm • Posted: 2022-12-25T20:29:58.358000+00:00
Original source

the script works if I put only:

> player:SendBroadcastMessage("something something")

rektbyfaith
Administrator
0
12-25-2022, 08:31 PM
#9
Archived author: Honey • Posted: 2022-12-25T20:31:51.142000+00:00
Original source

Unrelated to your problem, but you're still using the wrong hook. The chat hook is called way more often and you're badly decreasing your performance.
rektbyfaith
12-25-2022, 08:31 PM #9

Archived author: Honey • Posted: 2022-12-25T20:31:51.142000+00:00
Original source

Unrelated to your problem, but you're still using the wrong hook. The chat hook is called way more often and you're badly decreasing your performance.

rektbyfaith
Administrator
0
12-25-2022, 08:33 PM
#10
Archived author: adm • Posted: 2022-12-25T20:33:37.653000+00:00
Original source

I dont know how to make it use the proper one...
rektbyfaith
12-25-2022, 08:33 PM #10

Archived author: adm • Posted: 2022-12-25T20:33:37.653000+00:00
Original source

I dont know how to make it use the proper one...

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