Forums WoW Modding Support Archives Azerothcore Discord Archives [DiscordArchive] I recently updated my core and Eluna module after a long time (probably 8-9 months or more). Now, a

[DiscordArchive] I recently updated my core and Eluna module after a long time (probably 8-9 months or more). Now, a

[DiscordArchive] I recently updated my core and Eluna module after a long time (probably 8-9 months or more). Now, a

rektbyfaith
Administrator
0
11-09-2024, 09:09 PM
#1
Archived author: adm • Posted: 2024-11-09T21:09:25.373000+00:00
Original source

I recently updated my core and Eluna module after a long time (probably 8-9 months or more). Now, a previously working LUA script is causing issues. GM commands are not working at all (except ".reload eluna"), and there’s no output for them. However, normal player commands are working and displaying output. This is a simplified version of the script:

```function Buff(event, player, command, chatHandler)
if command == "test" then
if player:GetMap():IsDungeon() then
if player:GetLevel() >= 80 then
player:AddAura(48942, player)
player:SendBroadcastMessage("Buffed!")
end
end
end
return false
end

RegisterPlayerEvent(42, Buff)```

This script still works, but is also causing the issues I mentioned.

Have there been any changes in Eluna or the core recently that could have made the code outdated?
rektbyfaith
11-09-2024, 09:09 PM #1

Archived author: adm • Posted: 2024-11-09T21:09:25.373000+00:00
Original source

I recently updated my core and Eluna module after a long time (probably 8-9 months or more). Now, a previously working LUA script is causing issues. GM commands are not working at all (except ".reload eluna"), and there’s no output for them. However, normal player commands are working and displaying output. This is a simplified version of the script:

```function Buff(event, player, command, chatHandler)
if command == "test" then
if player:GetMap():IsDungeon() then
if player:GetLevel() >= 80 then
player:AddAura(48942, player)
player:SendBroadcastMessage("Buffed!")
end
end
end
return false
end

RegisterPlayerEvent(42, Buff)```

This script still works, but is also causing the issues I mentioned.

Have there been any changes in Eluna or the core recently that could have made the code outdated?

rektbyfaith
Administrator
0
11-09-2024, 09:14 PM
#2
Archived author: Ryan Turner • Posted: 2024-11-09T21:14:12.301000+00:00
Original source

Core changed the text format if not mistaken
rektbyfaith
11-09-2024, 09:14 PM #2

Archived author: Ryan Turner • Posted: 2024-11-09T21:14:12.301000+00:00
Original source

Core changed the text format if not mistaken

rektbyfaith
Administrator
0
11-09-2024, 09:16 PM
#3
Archived author: adm • Posted: 2024-11-09T21:16:35.105000+00:00
Original source

Do you have an idea what needs to be updated in the above script?
rektbyfaith
11-09-2024, 09:16 PM #3

Archived author: adm • Posted: 2024-11-09T21:16:35.105000+00:00
Original source

Do you have an idea what needs to be updated in the above script?

rektbyfaith
Administrator
0
11-09-2024, 09:18 PM
#4
Archived author: Ryan Turner • Posted: 2024-11-09T21:18:34.525000+00:00
Original source

Not on the top of my head no, check for any recent updates to modules could be just formatting fix for a reference
rektbyfaith
11-09-2024, 09:18 PM #4

Archived author: Ryan Turner • Posted: 2024-11-09T21:18:34.525000+00:00
Original source

Not on the top of my head no, check for any recent updates to modules could be just formatting fix for a reference

rektbyfaith
Administrator
0
11-09-2024, 09:19 PM
#5
Archived author: Honey • Posted: 2024-11-09T21:19:00.874000+00:00
Original source

lua scripts are unaffected by changes in the core, which would effect modules.
rektbyfaith
11-09-2024, 09:19 PM #5

Archived author: Honey • Posted: 2024-11-09T21:19:00.874000+00:00
Original source

lua scripts are unaffected by changes in the core, which would effect modules.

rektbyfaith
Administrator
0
11-09-2024, 09:19 PM
#6
Archived author: Honey • Posted: 2024-11-09T21:19:25.202000+00:00
Original source

At least for text format that is.
rektbyfaith
11-09-2024, 09:19 PM #6

Archived author: Honey • Posted: 2024-11-09T21:19:25.202000+00:00
Original source

At least for text format that is.

rektbyfaith
Administrator
0
11-09-2024, 09:20 PM
#7
Archived author: adm • Posted: 2024-11-09T21:20:10.185000+00:00
Original source

do you see anything that may cause the issue in the script?
rektbyfaith
11-09-2024, 09:20 PM #7

Archived author: adm • Posted: 2024-11-09T21:20:10.185000+00:00
Original source

do you see anything that may cause the issue in the script?

rektbyfaith
Administrator
0
11-09-2024, 09:20 PM
#8
Archived author: Honey • Posted: 2024-11-09T21:20:53.603000+00:00
Original source

My best guess is that a different script causes issues. There might be one that handles the GM commands and prevents other scripts from even starting their handlers after it was returning true.
rektbyfaith
11-09-2024, 09:20 PM #8

Archived author: Honey • Posted: 2024-11-09T21:20:53.603000+00:00
Original source

My best guess is that a different script causes issues. There might be one that handles the GM commands and prevents other scripts from even starting their handlers after it was returning true.

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