Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 03:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



notice_in_map undeclared function?

Discussion on notice_in_map undeclared function? within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Mar 2011
Posts: 22
Received Thanks: 0
notice_in_map undeclared function?

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
VRuler is offline  
Old 05/26/2011, 03:35   #2
 
elite*gold: 0
Join Date: Mar 2011
Posts: 22
Received Thanks: 0
Nobody knows? It's supposed to show the quest scroll or something like that, is there an alternative?
VRuler is offline  
Old 11/23/2013, 09:55   #3
 
elite*gold: 0
Join Date: Aug 2009
Posts: 10
Received Thanks: 2
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")
MagicianPT is offline  
Old 11/23/2013, 11:02   #4
 
elite*gold: 0
Join Date: Nov 2013
Posts: 116
Received Thanks: 2
y
MegaBomBee is offline  
Reply


Similar Threads Similar Threads
[VIP-function] ToxicSYS [VIP-function]
08/14/2010 - WarRock Hacks, Bots, Cheats & Exploits - 1 Replies
heeeey E-pvpers :pimp: this is a new hack by TSYS Status : UNDETECTED Functions (VIDEO) : YouTube - WarRock - Bikini event VIP hack
[HELP] Function
08/02/2010 - EO PServer Hosting - 2 Replies
Where can I find this function "gamecard> = 1" within my
[Help]C# ReadMemory Function
04/21/2010 - .NET Languages - 1 Replies
Hi! I am a newbie and trying to learn the C# ReadProcessMemory function! As a training I am trying to read the HP value in "Conquer Online" so please tell me is this code right or wrong and will it cause me problems? note: this is a console application the program should read the HP address then it shows the value of the address! using System; using System.Collections.Generic; using System.Text; using System.Runtime.InteropServices; using System.Text.RegularExpressions;
[Help]formula.ini function
01/31/2009 - Dekaron Private Server - 2 Replies
can any1 help me to explain the function of each line pls..i only know a little such as exp ratio, lvl and stat..it will be much easier for me if i know each of them..where can i edit my server DF time..? thanks wMaxLevel ,170 wMinLevelToLoseExp ,0 byStatPointPerLevel ,10 wDropMaxDistance ,180 fItemRatio ,0.5 fSTRDamageRatio ,0.4
Need help with ecx function
07/05/2008 - General Coding - 2 Replies
Ich hab da ein Problem ich habe eine SpeicherAdresse (007B4750) und in ihr ist wohl eine function mit folgender struct (X,Y,Z :Integer) : Integer so... wie kann ich nun diese func mir zu nutze machen und sie so zu sagen aktivieren? Ich habe folgendes versucht. ========================================== var Processhandle: THandle; WindowHandle, Pidi,



All times are GMT +1. The time now is 03:57.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.