notice_in_map undeclared function?

05/25/2011 03:16 VRuler#1
Anyone else getting this error?

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
05/26/2011 03:35 VRuler#2
Nobody knows? It's supposed to show the quest scroll or something like that, is there an alternative?
11/23/2013 09:55 MagicianPT#3
Hi, i know its an old post and all but, i was also looking for a similar function to use in a quest and saw this topic...

Actually, I think that it is not "notice_in_map", but "notice_map" and it is not a quest function, it is a gm command, this one:
/notice_map <your text>

If you want to use it in a quest, you can, but the character must have gm powers.
You can implement in a quest as follows:
command("notice_map hello all")
Or maybe (not tested):
say_in_map("text")

I'm sorry to bump an old topic but i feel like i had to help.
Also, if any one knows a similar function (or if I'm wrong) so it can be incorporated in a quest to normal character (not GM), please post (it if you may & if admin let).

It would be nice to have such a quest function...

Best regards all.

EDIT:
Quote:
It's supposed to show the quest scroll or something like that
No, its supposed to send a chat notice only in character's current map.
To do that (show the quest "scroll"), you need to use this one:
send_letter("name you want to the scroll")
11/23/2013 11:02 MegaBomBee#4
y