View Full Version : Why do this script XLOG if I get orange skull?
jollebollen
02-24-2016, 06:29 PM
It is supposed to XLOG if I get White Skull or Red Skull, but it exit my client even if revenge skull (orange).
Can you find the issue?
THanks..
local alarm = true
local exit = true
Module.New("skull", function(module)
if Self.Skull() > 0 then
if alarm then
alert()
module:Delay(1400)
end
if exit then
os.exit()
end
end
end)
Jontor
02-24-2016, 06:37 PM
Change it to
local alarm = true
local exit = true
local skulls = {SKULL_WHITE, SKULL_RED, SKULL_BLACK}
Module.New("skull", function(module)
if table.find(skulls, Self.Skull()) then
if alarm then
alert()
module:Delay(1400)
end
if exit then
os.exit()
end
end
end)
wuuuduu
02-24-2016, 07:31 PM
Change it to
local alarm = true
local exit = true
local skulls = {SKULL_WHITE, SKULL_RED, SKULL_BLACK}
Module.New("skull", function(module)
if table.find(skulls, Self.Skull()) then
if alarm then
alert()
module:Delay(1400)
end
if exit then
os.exit()
end
end
end)
thanks!
.
.
.
local exit = true
.
.
.
if (Label == "log") then
if exit then
os.exit()
end
works :D
jollebollen
02-26-2016, 12:06 AM
Change it to
local alarm = true
local exit = true
local skulls = {SKULL_WHITE, SKULL_RED, SKULL_BLACK}
Module.New("skull", function(module)
if table.find(skulls, Self.Skull()) then
if alarm then
alert()
module:Delay(1400)
end
if exit then
os.exit()
end
end
end)
THX§! :)
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.