Do a script like this exist?
Like if for example if player Eternal Oblivion enter screen, sound the alarm!
Thanks :)
Printable View
Do a script like this exist?
Like if for example if player Eternal Oblivion enter screen, sound the alarm!
Thanks :)
Code:local PlayerList = {"Orc Warlord","Demon","Kharsek","Eternal Oblivion"}
Module.New('player alert', function(module)
local player = Self.GetSpectators(true)
for i =1, #player do
if table.contains(PlayerList, player[i]:Name()) then
alert()
module:Delay(2000)
end
end
end)
It is a bit different
Local players the should be your farms
And set "if not table.contains..."
Should work
Code:local whiteList = {
["CHAR NAME"] = true,
["CHAR NAME"] = true
}
Module.New("alarmwithwhitelist", function()
for name, cid in Creature.iPlayers() do
if (not whiteList[name]) then
alert()
end
end
end)