Jump to content

Guild war enter bug


Recommended Posts

So upon declaring a war against another guild. I can't enter in the guild war arena through the quest for some reason (when I click Accept nothing happens on the guild war enter quest).

 

(Here's a gif demonstration of what exactly happens)

https://metin2.download/picture/063wk3S2lfBrw8vlc37YTKFM9EyOLEY3/.gif

 

My guild war enter quest

Spoiler

quest guild_war_join begin
    state start begin
    when letter begin
        local e = guild.get_any_war()

        if e != 0 and pc.get_war_map() == 0 then
        setskin(NOWINDOW)
        makequestbutton(locale.guild.war_join_request)
        end
    end

    when button begin
        local e = guild.get_any_war()

        if e == 0 then
        say(locale.guild.war_over)
        else
        say(locale.guild.war_entry_ask_head..guild.name(e)..locale.guild.war_entry_ask_tail)

        local s = select(locale.yes, locale.no)

        if s == 1 then
            guild.war_enter(e)
        else
            setskin(NOWINDOW)
            makequestbutton(locale.guild.war_join_request)
        end
        end
    end
    end
end
 

 

Guild_war_join Function

Spoiler

    int guild_war_enter(lua_State* L)
    {
        if (!lua_isnumber(L, 1))
        {
            sys_err("invalid argument");
            return 0;
        }

        CQuestManager& q = CQuestManager::instance();
        LPCHARACTER ch = q.GetCurrentCharacterPtr();

        if (ch->GetGuild())
            ch->GetGuild()->GuildWarEntryAccept((DWORD) lua_tonumber(L, 1), ch);

        return 0;
    }

 

Note: I have MAP ALLOW for maps 110 and 111 on Game99 only

Thanks

Edited by Metin2 Dev
Core X - External 2 Internal
Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

Announcements



×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.