ReeX 1 Posted July 16, 2017 Share Posted July 16, 2017 (edited) 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 September 3, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
ReeX 1 Posted July 17, 2017 Author Share Posted July 17, 2017 Bump Link to comment Share on other sites More sharing options...
ReeX 1 Posted July 17, 2017 Author Share Posted July 17, 2017 Bump Link to comment Share on other sites More sharing options...
ReeX 1 Posted July 18, 2017 Author Share Posted July 18, 2017 Bump Link to comment Share on other sites More sharing options...
ReeX 1 Posted July 19, 2017 Author Share Posted July 19, 2017 Bump Link to comment Share on other sites More sharing options...
M.Sorin 284 Posted July 19, 2017 Share Posted July 19, 2017 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 More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now