Metin2proyecto Posted March 30, 2024 Report Share Posted March 30, 2024 hola ando buscando una quest funcional para cambio de reino para el item 71054 𝗔𝗿𝗲𝘀 1 Quote Link to comment Share on other sites More sharing options...
Dilong Posted March 30, 2024 Report Share Posted March 30, 2024 Eso viene funcionalcen cualquier serverfile, seguro que el item no tiene type 18 en el item proto Quote Link to comment Share on other sites More sharing options...
portykwe Posted March 30, 2024 Report Share Posted March 30, 2024 Esta es la.original traducida rapido, solo edita lo que necesites, no pretendas que hagamos todo el trabajo tampoco.... quest change_empire begin state start begin when 20090.chat."§ó§ï°êÄy" with game.get_event_flag("c_e") >0 begin local count = pc.get_change_empire_count() ; if count >= 1 then say("¤w§ó§ï°êÄyªº¨¤¦â¤£¯à¦A§ó§ï¡C") say("") return end say_reward("Cambio de Imperio") say("") say("Para el cambio de un imperio...") say("Los líderes de los gremios no se puede cambiar de imperio") say("Los miembros de un gremio no pueden") say("Si usted está casado usted necesita un divorcio") say("Esto le costará 500.000 yangs") say("") say("Desea cambiarse de reino ?") say("") local s = select("Si", "No") if s == 1 then change_empire.move_pc() end end when 71054.use begin say("Usando el cambio de imperio") say("Usted tiene a su yegua ?") if get_time() < pc.getqf("next_use_time") then say("Usted no puede prescindir de imperio de inmediato") say("") if pc.is_gm() then say("GM puede restablecer el tiempo") say("") local s = select("Remeter a cero", "Anular") if s == 1 then say("El tiempo ha puesto a cero") pc.setqf("next_use_time", 0) end end return end if change_empire.move_pc() == true then pc.setqf("next_use_time", get_time() + 86400 * 7) end end function move_pc() if pc.is_engaged() then say("Está casado") say("Usted no puede cambiar el imperio") say("") return false end if pc.is_married() then say("Está casado") say("Usted no puede cambiar el imperio") say("") return false end if pc.is_polymorphed() then say("Estás polimorfizado !") say("Usted no puede cambiar el imperio") say("") return false end if pc.has_guild() then say("Usted tiene un gremio") say("Usted no puede cambiar el imperio") say("") return false end if pc.money < 500000 then say("La falta de dinero") say("Usted debe poseer 500000yang a fin de cambiarse de imperio !") say("") return false end say("Cual Imperio escogeras ?") local s = select("Imperio Rojo", "Imperio Amarillo", "Imperio Azul", "Anular") if 4==s then return false end say("") say_reward("Estás seguro que deseas cambiarte de Imperio ?") say_reward("Si usted rechaza los cambios no va a guardar") say("") local a = select("Cambiar", "No, será despues") if 2== a then return false end local ret = pc.change_empire(s) local oldempire = pc.get_empire() if ret == 999 then say("Usted está ahora otro imperio !") say("Debe ir al Imperio correspondiente") say("") pc.change_gold(-500000) pc.remove_item(71054) ; char_log(0, "CHANGE_EMPIRE",string.format("%d -> %d", oldempire, s)) return true else if ret == 1 then say("Ya estás en el imperio !") say("Por favor, elija otro imperio,") say("") say("") elseif ret == 2 then say("Usted es un miembro de un gremio") say("Usted no puede cambiar el imperio") say("") say("") elseif ret == 3 then say("Está casado") say("Usted no puede cambiar el imperio") say("") end end return false end end end Metin2proyecto 1 Quote Link to comment Share on other sites More sharing options...
Rain Posted June 19, 2024 Report Share Posted June 19, 2024 He mejorado un poco la quest y he eliminado un pequeño error. quest change_empire begin state start begin when 20090.chat."Cambio de Imperio" begin say_reward("Cambio de Imperio") say("") if game.get_event_flag("c_e") > 0 then if pc.is_gm() then say("game.get_event_flag('c_e') no esta activo") else say("Eso no es posible ahora") end return end local count = pc.get_change_empire_count() local max_change = 1 if count >= max_change then say("Ya cambiaste de imperio "..count.." vez") say("") return end say("Para el cambio de un imperio...") say("Los líderes de los gremios no se puede cambiar de imperio") say("Los miembros de un gremio no pueden") say("Si usted está casado usted necesita un divorcio") say("Esto le costará 500.000 yangs") say("") say("Desea cambiarse de reino ?") say("") if select("Si", "No") == 1 then change_empire.move_pc() end end when 71054.use begin say_reward("Usando el cambio de imperio") say"" say("Usted tiene a su yegua ?") if get_time() < pc.getqf("next_use_time") then say("Usted no puede prescindir de imperio de inmediato") say("") if pc.is_gm() then say("GM puede restablecer el tiempo") say("") if select("Remeter a cero", "Anular") == 1 then say("El tiempo ha puesto a cero") pc.setqf("next_use_time", 0) end end return end if change_empire.move_pc() then pc.setqf("next_use_time", get_time() + 86400 * 7) end end function move_pc() local change_cost = 500000 if pc.is_engaged() or pc.is_married() then say("Está casado") say("Usted no puede cambiar el imperio") say("") return false end if pc.is_polymorphed() then say("Estás polimorfizado !") say("Usted no puede cambiar el imperio") say("") return false end if pc.has_guild() then say("Usted tiene un gremio") say("Usted no puede cambiar el imperio") say("") return false end if pc.money < change_cost then say("La falta de dinero") say("Usted debe poseer "..change_cost.." yang a fin de cambiarse de imperio !") say("") return false end say("Cual Imperio escogeras ?") local s = select("Imperio Rojo", "Imperio Amarillo", "Imperio Azul", "Anular") if 4 == s then return false end say("") say_reward("Estás seguro que deseas cambiarte de Imperio ?") say_reward("Si usted rechaza los cambios no va a guardar") say("") if select("Cambiar", "No, será despues") == 2 then return false end local oldempire = pc.get_empire() local ret = pc.change_empire(s) if ret == 999 then say("Usted está ahora otro imperio !") say("Debe ir al Imperio correspondiente") say("") pc.change_gold(-change_cost) pc.remove_item(71054) ; char_log(0, "CHANGE_EMPIRE",string.format("%d -> %d", oldempire, s)) return true else if ret == 1 then say("Ya estás en el imperio !") say("Por favor, elija otro imperio,") say("") say("") elseif ret == 2 then say("Usted es un miembro de un gremio") say("Usted no puede cambiar el imperio") say("") say("") elseif ret == 3 then say("Está casado") say("Usted no puede cambiar el imperio") say("") end end return false end end end Quote Link to comment Share on other sites More sharing options...
Kenshi Torres Posted June 19, 2024 Report Share Posted June 19, 2024 hace 7 horas, Rain dijo: He mejorado un poco la quest y he eliminado un pequeño error. quest change_empire begin state start begin when 20090.chat."Cambio de Imperio" begin say_reward("Cambio de Imperio") say("") if game.get_event_flag("c_e") > 0 then if pc.is_gm() then say("game.get_event_flag('c_e') no esta activo") else say("Eso no es posible ahora") end return end local count = pc.get_change_empire_count() local max_change = 1 if count >= max_change then say("Ya cambiaste de imperio "..count.." vez") say("") return end say("Para el cambio de un imperio...") say("Los líderes de los gremios no se puede cambiar de imperio") say("Los miembros de un gremio no pueden") say("Si usted está casado usted necesita un divorcio") say("Esto le costará 500.000 yangs") say("") say("Desea cambiarse de reino ?") say("") if select("Si", "No") == 1 then change_empire.move_pc() end end when 71054.use begin say_reward("Usando el cambio de imperio") say"" say("Usted tiene a su yegua ?") if get_time() < pc.getqf("next_use_time") then say("Usted no puede prescindir de imperio de inmediato") say("") if pc.is_gm() then say("GM puede restablecer el tiempo") say("") if select("Remeter a cero", "Anular") == 1 then say("El tiempo ha puesto a cero") pc.setqf("next_use_time", 0) end end return end if change_empire.move_pc() then pc.setqf("next_use_time", get_time() + 86400 * 7) end end function move_pc() local change_cost = 500000 if pc.is_engaged() or pc.is_married() then say("Está casado") say("Usted no puede cambiar el imperio") say("") return false end if pc.is_polymorphed() then say("Estás polimorfizado !") say("Usted no puede cambiar el imperio") say("") return false end if pc.has_guild() then say("Usted tiene un gremio") say("Usted no puede cambiar el imperio") say("") return false end if pc.money < change_cost then say("La falta de dinero") say("Usted debe poseer "..change_cost.." yang a fin de cambiarse de imperio !") say("") return false end say("Cual Imperio escogeras ?") local s = select("Imperio Rojo", "Imperio Amarillo", "Imperio Azul", "Anular") if 4 == s then return false end say("") say_reward("Estás seguro que deseas cambiarte de Imperio ?") say_reward("Si usted rechaza los cambios no va a guardar") say("") if select("Cambiar", "No, será despues") == 2 then return false end local oldempire = pc.get_empire() local ret = pc.change_empire(s) if ret == 999 then say("Usted está ahora otro imperio !") say("Debe ir al Imperio correspondiente") say("") pc.change_gold(-change_cost) pc.remove_item(71054) ; char_log(0, "CHANGE_EMPIRE",string.format("%d -> %d", oldempire, s)) return true else if ret == 1 then say("Ya estás en el imperio !") say("Por favor, elija otro imperio,") say("") say("") elseif ret == 2 then say("Usted es un miembro de un gremio") say("Usted no puede cambiar el imperio") say("") say("") elseif ret == 3 then say("Está casado") say("Usted no puede cambiar el imperio") say("") end end return false end end end Te falto la parte del source Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.