Need some help with eluna script #18223
Wishmaster117
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi guys i'm working on a hardcore like script but i'm facing a issue, in this function, when the player die, i spawn a grave that is a gob (that is a chest), and i want that all the stuff that the player have goes to this chest, but i have two issues:
The first one is that the chest desappear when the player resurect and not after the time i specified here:
local secondsInADay = 86400
local event = CreateLuaEvent(function()
if grave and grave:IsInWorld() then
grave:Despawn()
end
end, secondsInADay * 1000, 1)
The second issue is that the stuff of the player don't go in the GOB.
local function CreateGrave(player)
if player:GetLevel() < 15 then
-- Pas de gardien d'âmes avant le niveau 15
return
end
end
Someone have a tip for me?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions