Jump to content

OX Event - Login Bug Fix


Pepineitor

Recommended Posts

M2 Download Center

Download Here ( 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.

  • Love 5
Link to post
  • 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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • 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.