Calls undeclared function! :
notice_in_map
Abort trap (core dumped)
Error occured on compile metinevent.quest
SF Daroo
metinevent.quest
Code:
quest metinevent begin
state start begin
when 20090.chat."GM: Start metin event" with pc.is_gm() and game.get_event_flag("metinEventJoin") == 0 begin
say("Event started, you must stay in this map")
timer("phase1", 600)
notice_all("You have 10 minutes to enter the metin Event!")
game.set_event_flag("metinEventJoin", 2)
end
when phase1.timer begin
game.set_event_flag("metinEventJoin", 1)
game.set_event_flag("metinEvent", 1)
notice_all("The Metin Event is just started")
notice_all("You cannot teleport there anymore!")
notice_in_map(103,"Objective: Destroy the other metin stones")
notice_in_map(103,"Objective: Protect your own metin stone")
mob.spawn(8020,466,226,1)
mob.spawn(8021,235,303,1)
mob.spawn(8022,429,563,1)
game.set_event_flag("redStone",1)
game.set_event_flag("yellowStone",1)
game.set_event_flag("blueStone",1)
end
when 8020.kill begin
local yellowStone = game.get_event_flag("yellowStone")
local blueStone = game.get_event_flag("blueStone")
game.set_event_flag("redStone",0)
if blueStone == 0 then
notice_in_map(103,"Yellow empire is the winner!")
timer("reward", 5)
elseif yellowStone == 0 then
notice_in_map(103,"Blue empire is the winner!")
timer("reward", 5)
else
notice_in_map(103,"Red empire lost his stone!")
end
end
when 8021.kill begin
local redStone = game.get_event_flag("redStone")
local yellowStone = game.get_event_flag("yellowStone")
game.set_event_flag("blueStone",0)
if yellowStone == 0 then
notice_in_map(103,"Red empire is the winner!")
timer("reward", 5)
elseif redStone == 0 then
notice_in_map(103,"Yellow empire is the winner!")
timer("reward", 5)
else
notice_in_map(103,"Blue empire lost his stone!")
end
end
when 8022.kill begin
local redStone = game.get_event_flag("redStone")
local blueStone = game.get_event_flag("blueStone")
game.set_event_flag("yellowStone",0)
if blueStone == 0 then
notice_in_map(103,"Red empire is the winner!")
timer("reward", 5)
elseif redStone == 0 then
notice_in_map(103,"Blue empire is the winner!")
timer("reward", 5)
else
notice_in_map(103,"Yellow empire lost his stone!")
end
end
when reward.timer begin
notice_in_map(103,"Congratulations with the victory!")
notice_in_map(103,"Claim your prise in the center off the map!")
notice_in_map(103,"In 10 minutes you will be removed!")
mob.spawn(8027,406,375,1)
mob.spawn(8026,406,394,1)
mob.spawn(8027,392,407,1)
mob.spawn(8026,375,408,1)
mob.spawn(8027,361,394,1)
mob.spawn(8026,360,374,1)
mob.spawn(8027,374,360,1)
mob.spawn(8026,394,361,1)
mob.spawn(20074,384,384,1)
mob.spawn(20075,387,387,1)
mob.spawn(20076,381,381,1)
timer('finish', 600)
end
when finish.timer begin
game.set_event_flag("metinEventJoin",0)
game.set_event_flag("metinEvent", 0)
game.set_event_flag("redStone",0)
game.set_event_flag("yellowStone",0)
game.set_event_flag("blueStone",0)
kill_all_in_map(103)
end
end
end





