[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
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?
Archived author: Ryan Turner • Posted: 2024-11-09T21:14:12.301000+00:00
Original source
Core changed the text format if not mistaken
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?
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
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.
Archived author: Honey • Posted: 2024-11-09T21:19:25.202000+00:00
Original source
At least for text format that is.
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?
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.