Add files via upload

This commit is contained in:
Dinkledork
2023-02-08 11:34:43 -07:00
committed by GitHub
parent 973cb1afaf
commit 8a0525c464
15 changed files with 1422 additions and 109 deletions

17
reload_scripts.lua Normal file
View File

@@ -0,0 +1,17 @@
-- Name: Reload Scripts
-- Details: Reloads lua scripts for faster development.
-- Usage: Type "reload scripts" in the mangosd console or in-game.
-- Website: https://github.com/RStijn
-- Functions
function reloadElunaEngine(event, player, command)
if command == "reload scripts" or command == "reloadscripts" then
if player == nil or player:IsGM() then -- console or gm
ReloadEluna()
else
player:SendBroadcastMessage("Turn <GM> mode on for access to this command")
end
end
end
RegisterPlayerEvent(42, reloadElunaEngine)