Jump to content

OX Event - Login Bug Fix


Recommended Posts

M2 Download Center

This is the hidden content, please
( Internal )

Hi guys, I'd like to share with you a little bug fix to the ox event.
When an OX event is active, and you go to the event, if you press 'esc' you can logout, and after, you login on the question phase that you want.
To solve this, you can put this in the ox event quest, in th
 

when login begin

end

if it does not exist, you put it, and in middle put this code
 

local x,y,evento,mapa = pc.get_x(), pc.get_y(),  game.get_event_flag("oxevent_status"),113
    if pc.get_map_index() == mapa and evento != 1 and y >= 228 and y <= 264 and x >= 8925 and x <= 9003 then
        warp_to_village()
    return
end

I hope you find it useful, greetings.

  • Metin2 Dev 7
  • Love 15
Link to comment
https://metin2.dev/topic/5-ox-event-login-bug-fix/
Share on other sites

  • 1 month later...
  • 7 months later...

Sorry for necropost but it is ok in this way?

 

quest oxevent_manager begin
state start begin
when login begin
  local x,y,evento,mapa = pc.get_x(), pc.get_y(),  game.get_event_flag("oxevent_status"),113
if pc.get_map_index() == mapa and evento != 1 and y >= 228 and y <= 264 and x >= 8925 and x <= 9003 then
warp_to_village()
return
end
end
when 20011.chat."GM: Mappa Gara OX" with pc.is_gm() begin
say_title("Uriel")
say("Vuoi andare nella mappa della gara OX?[ENTER]")
local s = select ("Si", "No")
if s == 2 then
return
end
say_title("Uriel")
say("Ora verrai teletrasportato.[ENTER]") 
wait() 
command("go ox") 
end

Link to comment
https://metin2.dev/topic/5-ox-event-login-bug-fix/#findComment-23929
Share on other sites

Don't use any images from : imgur, turkmmop, freakgamers, inforge, hizliresim... Or your content will be deleted without notice...
Use : https://metin2.download/media/add/

Please use https://metin2.download/ when uploading files smaller than 100MB, otherwise the approval will take longer due to manual upload.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • 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.