Lineage 2 Tower Forum

Full Version: problem with QA script
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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...")
bump
closed means usually you got kicked from server (which is probably for illegal action)
premium users can use Say2, when you using SendPM you can get chatban
ok so i deleted pm option but if qa appear i have only message on this account with no target and No allarm,
i just need to make alarm voice for it and should be enought
any suggest??
like i told on fryea chronicle all was fine on hi5 are problems
Reference URL's