01-23-2012, 22:58 PM
hello i have problem with 1 script.
On freya chronicle it worked fine, but now i play on hi5 & when QA appear my window is immiadiately closed. No crash , no errors just close, no pms to players
any suggest what i should change??
raidbosses = { " Queen Ant" } -- table with npc name or id
players = { "xxxxNEBUxxxx", } -- table with players
spawned = false
function alert(name)
ShowToClient("RBCheck", "Raidboss "..name.." was spawned so go kill him!")
PlaySound("alarm.wav")
for k, playerName in pairs(players) do
SendPM(playerName, "Raidboss "..name.." was spawned!")
Sleep(1053)
end
spawned = true
end
ShowToClient("RBCheck", "Raidboss checker v0.1 was loaded and waiting for spawn rb")
repeat
npc_list = GetMonsterList();
for npc in npc_list.list do
for k, v in pairs(raidbosses) do
if type(v) == "string" and string.upper(npc:GetName()) == string.upper(v) then
alert(npc:GetName())
elseif type(v) == "number" and npc:GetNpcId() == v then
alert(npc:GetName())
end
end
end
Sleep(500);
until spawned == true
ShowToClient("RBCheck", "Script end...")
On freya chronicle it worked fine, but now i play on hi5 & when QA appear my window is immiadiately closed. No crash , no errors just close, no pms to players
any suggest what i should change??
raidbosses = { " Queen Ant" } -- table with npc name or id
players = { "xxxxNEBUxxxx", } -- table with players
spawned = false
function alert(name)
ShowToClient("RBCheck", "Raidboss "..name.." was spawned so go kill him!")
PlaySound("alarm.wav")
for k, playerName in pairs(players) do
SendPM(playerName, "Raidboss "..name.." was spawned!")
Sleep(1053)
end
spawned = true
end
ShowToClient("RBCheck", "Raidboss checker v0.1 was loaded and waiting for spawn rb")
repeat
npc_list = GetMonsterList();
for npc in npc_list.list do
for k, v in pairs(raidbosses) do
if type(v) == "string" and string.upper(npc:GetName()) == string.upper(v) then
alert(npc:GetName())
elseif type(v) == "number" and npc:GetNpcId() == v then
alert(npc:GetName())
end
end
end
Sleep(500);
until spawned == true
ShowToClient("RBCheck", "Script end...")