Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] does **PLAYER_EVENT_ON_COMMAND** only fire on failed commands?

[DiscordArchive] does **PLAYER_EVENT_ON_COMMAND** only fire on failed commands?

[DiscordArchive] does **PLAYER_EVENT_ON_COMMAND** only fire on failed commands?

Pages (3): Previous 1 2 3 Next
rektbyfaith
Administrator
0
02-14-2023, 04:16 AM
#11
Archived author: Anchy • Posted: 2023-02-14T04:16:45.997000+00:00
Original source

what command are you trying to use
rektbyfaith
02-14-2023, 04:16 AM #11

Archived author: Anchy • Posted: 2023-02-14T04:16:45.997000+00:00
Original source

what command are you trying to use

rektbyfaith
Administrator
0
02-14-2023, 04:17 AM
#12
Archived author: Anchy • Posted: 2023-02-14T04:17:44.622000+00:00
Original source

that hook is called twice internally
rektbyfaith
02-14-2023, 04:17 AM #12

Archived author: Anchy • Posted: 2023-02-14T04:17:44.622000+00:00
Original source

that hook is called twice internally

rektbyfaith
Administrator
0
02-14-2023, 04:17 AM
#13
Archived author: Anchy • Posted: 2023-02-14T04:17:47.488000+00:00
Original source

```cpp
if (cmd)
{ /* if we matched a command at some point, invoke it */
handler.SetSentErrorMessage(false);
if (cmd->IsInvokerVisible(handler) && cmd->_invoker(&handler, oldTail))
{ /* invocation succeeded, log this */
if (!handler.IsConsole())
LogCommandUsage(*handler.GetSession(), cmdStr);
}
else if (!handler.HasSentErrorMessage()) /* invocation failed, we should show usage */
{
if (!sScriptMgr->CanExecuteCommand(handler, cmdStr))
{
return true;
}

cmd->SendCommandHelp(handler);
handler.SetSentErrorMessage(true);
}

return true;
}

if (!sScriptMgr->CanExecuteCommand(handler, cmdStr))
{
return true;
}```
rektbyfaith
02-14-2023, 04:17 AM #13

Archived author: Anchy • Posted: 2023-02-14T04:17:47.488000+00:00
Original source

```cpp
if (cmd)
{ /* if we matched a command at some point, invoke it */
handler.SetSentErrorMessage(false);
if (cmd->IsInvokerVisible(handler) && cmd->_invoker(&handler, oldTail))
{ /* invocation succeeded, log this */
if (!handler.IsConsole())
LogCommandUsage(*handler.GetSession(), cmdStr);
}
else if (!handler.HasSentErrorMessage()) /* invocation failed, we should show usage */
{
if (!sScriptMgr->CanExecuteCommand(handler, cmdStr))
{
return true;
}

cmd->SendCommandHelp(handler);
handler.SetSentErrorMessage(true);
}

return true;
}

if (!sScriptMgr->CanExecuteCommand(handler, cmdStr))
{
return true;
}```

rektbyfaith
Administrator
0
02-14-2023, 04:18 AM
#14
Archived author: 0xCiBeR • Posted: 2023-02-14T04:18:32.181000+00:00
Original source

The idea is to "log" every command to discord
rektbyfaith
02-14-2023, 04:18 AM #14

Archived author: 0xCiBeR • Posted: 2023-02-14T04:18:32.181000+00:00
Original source

The idea is to "log" every command to discord

rektbyfaith
Administrator
0
02-14-2023, 04:19 AM
#15
Archived author: 0xCiBeR • Posted: 2023-02-14T04:19:00.035000+00:00
Original source

tried for example, .tele gmisland / .appear player
rektbyfaith
02-14-2023, 04:19 AM #15

Archived author: 0xCiBeR • Posted: 2023-02-14T04:19:00.035000+00:00
Original source

tried for example, .tele gmisland / .appear player

rektbyfaith
Administrator
0
02-14-2023, 04:20 AM
#16
Archived author: 0xCiBeR • Posted: 2023-02-14T04:20:04.898000+00:00
Original source

seems when command has subcommand it doesnt get fired
rektbyfaith
02-14-2023, 04:20 AM #16

Archived author: 0xCiBeR • Posted: 2023-02-14T04:20:04.898000+00:00
Original source

seems when command has subcommand it doesnt get fired

rektbyfaith
Administrator
0
02-14-2023, 04:20 AM
#17
Archived author: 0xCiBeR • Posted: 2023-02-14T04:20:25.751000+00:00
Original source

For example:
.tele gmisland -> Not Fired
.tele -> Fired
rektbyfaith
02-14-2023, 04:20 AM #17

Archived author: 0xCiBeR • Posted: 2023-02-14T04:20:25.751000+00:00
Original source

For example:
.tele gmisland -> Not Fired
.tele -> Fired

rektbyfaith
Administrator
0
02-14-2023, 04:21 AM
#18
Archived author: 0xCiBeR • Posted: 2023-02-14T04:21:29.821000+00:00
Original source

.asdd asdasd -> Fired(cmd doesn't exist)
rektbyfaith
02-14-2023, 04:21 AM #18

Archived author: 0xCiBeR • Posted: 2023-02-14T04:21:29.821000+00:00
Original source

.asdd asdasd -> Fired(cmd doesn't exist)

rektbyfaith
Administrator
0
02-14-2023, 04:23 AM
#19
Archived author: Anchy • Posted: 2023-02-14T04:23:46.157000+00:00
Original source

I'll just verify it from the c++ side real quick
rektbyfaith
02-14-2023, 04:23 AM #19

Archived author: Anchy • Posted: 2023-02-14T04:23:46.157000+00:00
Original source

I'll just verify it from the c++ side real quick

rektbyfaith
Administrator
0
02-14-2023, 04:25 AM
#20
Archived author: Anchy • Posted: 2023-02-14T04:25:00.058000+00:00
Original source

I am observing the same results in my c++ module, it seems to be an issue on the core side
rektbyfaith
02-14-2023, 04:25 AM #20

Archived author: Anchy • Posted: 2023-02-14T04:25:00.058000+00:00
Original source

I am observing the same results in my c++ module, it seems to be an issue on the core side

Pages (3): Previous 1 2 3 Next
Recently Browsing
 
Recently Browsing