[DiscordArchive] So are you using a lua script, or what? You say elune, BY THE LIGHT. Do you mean Eluna?
[DiscordArchive] So are you using a lua script, or what? You say elune, BY THE LIGHT. Do you mean Eluna?
Archived author: Bloodfangx • Posted: 2024-07-12T18:49:46.465000+00:00
Original source
So are you using a lua script, or what? You say elune, BY THE LIGHT. Do you mean Eluna?
Are you willing to provide the script so we can look into it?
Archived author: mihaelo • Posted: 2024-07-12T18:50:10.169000+00:00
Original source
yes i mean eluna
I will try to rewrite the text so that it is translated normally.
Archived author: Bloodfangx • Posted: 2024-07-12T18:52:03.029000+00:00
Original source
You said the mob stops working but after you restarted the server it doesn't work? Is there a script running before the server restarts but you reloaded the engine or what?
Archived author: mihaelo • Posted: 2024-07-12T18:53:30.466000+00:00
Original source
I use eluna, everything was fine up to a certain point. then the creature event registration broke down, and the events for my custom NPC started working only before the reboot
if I delete the old npc and create a new one using this entry, then everything will work again until the reboot
after reboot, the script body is executed, but events are not executed and do not perform functions
Archived author: mihaelo • Posted: 2024-07-12T18:55:14.191000+00:00
Original source
at the same time, the script is loaded without errors and executed, if you use the script in relation to the NPCs from the original game (already existing in trinitycore), then everything will work, as well as other events, for example, the player's entry into the game will work
Archived author: Bloodfangx • Posted: 2024-07-12T18:55:49.202000+00:00
Original source
It's an npc script but it only works on existing creatures and not new creatures?
Archived author: mihaelo • Posted: 2024-07-12T18:55:57.441000+00:00
Original source
I didn't change the code before the breakdown, I just rebooted the server to see if the phases were working correctly.
Archived author: mihaelo • Posted: 2024-07-12T18:57:15.747000+00:00
Original source
it works with the NPC I created, but at some point it stops working after restarting the server, even if you create an NPC, everything will work, after restarting the script will load but the events will not work
Archived author: Bloodfangx • Posted: 2024-07-12T18:58:34.234000+00:00
Original source
can you provide the script?
Archived author: mihaelo • Posted: 2024-07-12T19:01:59.122000+00:00
Original source
I'm not at the PC right now ( my script looks something like this
local entry =190100
print(" SRC loaded ")
func combat_step( ev, self, attacker , dmg )
print( "event is work")
end
register ev ( entry , 9 , combat_step ) -- then damage taken