Jump to content
UPDATE 2 - External pictures are being replaced... ×
×
×
  • Create New...
  • 0

Guild war enter bug


ReeX

Question

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://gyazo.com/dce3b90edd13f6d6b84d4dc284bdd891

 

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

Link to comment
Share on other sites

  • Answers 5
  • Created
  • Last Reply

Top Posters For This Question

5 answers to this question

Recommended Posts

  • 0

Serch in guild_war.cpp for this 

 

void CGuild::GuildWarEntryAsk(DWORD dwOppGID)

and after search for this

questIndex=CQuestManager::instance().GetQuestIndexByName

 

You need to put the index name of the guild war quest , if you edited it.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


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.