ใโ-๐ใโ๐๐ผ๐ Posted May 23, 2018 Report Share Posted May 23, 2018 Alguien me podria decir que hice mal en la quest? al intentar cargarla se queda trabado en esta parte: ./qc inventario_teleport.lua QUEST : inventario_teleport STATE : start WHEN : login WHEN : button or WHEN : info Quest: quest inventario_teleport begin state start begin when login begin cmdchat("Teleport "..q.getcurrentquestindex()) end when button or info begin say_title("Anillo teletransportador:") say("A que mapa deseas teletransportarte?") say("") local s = select("Imperios","Regiones Forestales","Cuevas de Arañas","Zonas de Atlantea","Otras Regiones","Mapas de Leveo","Cerrar") if s == 1 then say_title("Anillo teletransportador:") say("") local ss = select("Reino Shinsoo","Reino Chunjo","Reino Jinno","Cerrar") if ss == 1 then say_title("Anillo teletransportador:") say("") local ciudades = select("Ciudad 1","Ciudad 2","Cerrar") if ciudades == 1 then pc.warp(473900,954600) elseif ciudades == 2 then pc.warp(352300,882700) end elseif ss == 2 then say_title("Anillo teletransportador:") say("") local citys = select("Ciudad 1","Ciudad 2","Cerrar") if citys == 1 then pc.warp(63200,166700) elseif citys == 2 then pc.warp(145700,239800) end elseif ss == 3 then say_title("Anillo teletransportador:") say("") local citys = select("Ciudad 1","Ciudad 2","Cerrar") if citys == 1 then pc.warp(959600,269700) elseif citys == 2 then pc.warp(863800,246000) end end elseif s == 2 then say_title("Anillo teletransportador:") say("") local sss = select("Bosque","Bosque Rojo (Inicio)","Bosque Rojo (Final)","Cerrar") if sss == 1 then pc.warp(288700,5700) elseif sss == 2 then pc.warp(1119900,70800) elseif sss == 3 then pc.warp(1118100,8600) end elseif s == 3 then say_title("Anillo teletransportador:") say("") local zindan = select("Caverna de Arañas (V1)","Caverna de Arañas (V2)","Cerrar") if zindan == 1 then pc.warp(59800,497300) elseif zindan == 2 then pc.warp(704100,521900) end elseif s == 4 then say_title("Anillo teletransportador:") say("") local atlantea = select("Gruta del Exilio (40)","Sala del Dragón (70)","Cerrar") if atlantea == 1 then if pc.get_level() < 40 then pc.warp(0,1203200) elseif atlantea == 2 then if pc.get_level() < 80 then pc.warp(819200,1049600) end elseif s == 5 then say_title("Anillo teletransportador:") say("") local sssssss = select("Valle de Seungryong","Monte Sohan","Desierto Yongbi","Tierra de Fuego","Tierra de Gigantes","Torre de Demonios","Cerrar") if sssssss == 1 then pc.warp(336000,755600) elseif sssssss == 2 then pc.warp(436400,215600) elseif sssssss == 3 then pc.warp(296800,547400) elseif sssssss == 4 then pc.warp(600800,687400) elseif sssssss == 5 then pc.warp(829900,763300) elseif sssssss == 6 then pc.warp(590500,110500) end elseif s == 6 then say_title("Anillo teletransportador:") say("") local sssssss = select("Acantilado de Gautama (90)","Bahía Nefrite (90)","Cabo del Dragón (90)","Cerrar") if sssssss == 1 then if pc.get_level() < 90 then pc.warp(1177600,1664000) elseif sssssss == 2 then if pc.get_level() < 90 then pc.warp(1049600,1510400) elseif sssssss == 3 then if pc.get_level() < 90 then pc.warp(1024000,1664000) end elseif s == 7 then end end end end leo2993 1 Link to comment Share on other sites More sharing options...
Dilong Posted May 23, 2018 Report Share Posted May 23, 2018 Le puse algunos arreglos pero no creo que sirva, tendria que crear de nuevo la quest y ponerlo aqui Spoiler quest inventario_teleport begin state start begin when login begin cmdchat("Teleport "..q.getcurrentquestindex()) end when button or info begin say_title("Anillo teletransportador:") say("A que mapa deseas teletransportarte?") say("") local s = select("Imperios","Regiones Forestales","Cuevas de Arañas","Zonas de Atlantea","Otras Regiones","Mapas de Leveo","Cerrar") if s == 1 then say_title("Anillo teletransportador:") say("") local ss = select("Reino Shinsoo","Reino Chunjo","Reino Jinno","Cerrar") if ss == 1 then say_title("Anillo teletransportador:") say("") local ciudades = select("Ciudad 1","Ciudad 2","Cerrar") if ciudades == 1 then pc.warp(473900,954600) elseif ciudades == 2 then pc.warp(352300,882700) return end end elseif ss == 2 then say_title("Anillo teletransportador:") say("") local citys = select("Ciudad 1","Ciudad 2","Cerrar") if citys == 1 then pc.warp(63200,166700) elseif citys == 2 then pc.warp(145700,239800) return end end elseif ss == 3 then say_title("Anillo teletransportador:") say("") local citys = select("Ciudad 1","Ciudad 2","Cerrar") if citys == 1 then pc.warp(959600,269700) elseif citys == 2 then pc.warp(863800,246000) return end end elseif s == 2 then say_title("Anillo teletransportador:") say("") local sss = select("Bosque","Bosque Rojo Inicio","Bosque Rojo Final","Cerrar") if sss == 1 then pc.warp(288700,5700) elseif sss == 2 then pc.warp(1119900,70800) elseif sss == 3 then pc.warp(1118100,8600) return end end end elseif s == 3 then say_title("Anillo teletransportador:") say("") local zindan = select("Caverna de Arañas V1","Caverna de Arañas V2","Cerrar") if zindan == 1 then pc.warp(59800,497300) elseif zindan == 2 then pc.warp(704100,521900) return end end elseif s == 4 then say_title("Anillo teletransportador:") say("") local atlantea = select("Gruta del Exilio Nv40","Sala del Dragón Nv70","Cerrar") if atlantea == 1 then if pc.get_level() < 40 then chat("error") return end pc.warp(0,1203200) elseif atlantea == 2 then if pc.get_level() < 80 then chat("error") return end pc.warp(819200,1049600) return end end elseif s == 5 then say_title("Anillo teletransportador:") say("") local neutral = select("Valle de Seungryong","Monte Sohan","Desierto Yongbi","Tierra de Fuego","Tierra de Gigantes","Torre de Demonios","Cerrar") if neutral == 1 then pc.warp(336000,755600) elseif neutral == 2 then pc.warp(436400,215600) elseif neutral == 3 then pc.warp(296800,547400) elseif neutral == 4 then pc.warp(600800,687400) elseif neutral == 5 then pc.warp(829900,763300) elseif neutral == 6 then pc.warp(590500,110500) return end end end elseif s == 6 then say_title("Anillo teletransportador:") if pc.get_level() < 90 then chat("error") return end local neutral = select("Acantilado de Gautama Nv90","Bahía Nefrite Nv90","Cabo del Dragón Nv90","Cerrar") if neutral == 1 then pc.warp(1177600,1664000) elseif neutral == 2 then pc.warp(1049600,1510400) elseif neutral == 3 then pc.warp(1024000,1664000) return end end end end santomt2, aaron fdz and ใโ-๐ใโ๐๐ผ๐ 2 1 Link to comment Share on other sites More sharing options...
Dilong Posted May 26, 2018 Report Share Posted May 26, 2018 Aqui tienes, le falta algunos detalles pero funciona Spoiler quest teleport begin state start begin when 20094.chat."teleport" begin local warps = select("Imperios","Regiones Forestales","Cuevas de Arañas","Zonas de Atlantea","Otras Regiones","Mapas de Leveo","salir") if warps == 1 then local imperios = {"jinno","chunjo","shinso","salir"} local table = select_table(imperios) local xy_imperios = { {473900,954600}, {63200,166700}, {959600,269700}, } pc.warp(xy_imperios[table][1],xy_imperios[table][2]) elseif warps == 2 then local foresta = {"Bosque","Bosque Rojo Inicio","Bosque Rojo Final","salir"} local table2 = select_table(foresta) local xy_foresta = { {288700,5700}, {1119900,70800}, {1118100,8600}, } pc.warp(xy_foresta[table2][1],xy_foresta[table2][2]) elseif warps == 3 then local aracn = {"mapa1","mapa2","salir"} local table3 = select_table(aracn) local xy_aracn = { {59800,497300}, {704100,521900}, } if pc.get_level() < 60 then return end pc.warp(xy_aracn[table3][1],xy_aracn[table3][2]) elseif warps == 4 then local setaous = select("nivel 1","nivel 2","salir") if setaous == 1 then if pc.get_level() < 75 and pc.count_item(30190) < 0 then say("no tienes el nivel insuficiente") say("O no tienes el objeto necesario") return end pc.warp(0,1203200) pc.remove_item(30190,1) elseif setaous == 2 then if pc.get_level() < 80 and pc.count_item(30190) < 0 then say("no tienes el nivel insuficiente") say("O no tienes el objeto necesario") return end pc.warp(819200,1049600) pc.remove_item(30190,1) return end elseif warps == 5 then local regiones = {"Valle de Seungryong","Monte Sohan","Desierto Yongbi","Tierra de Fuego","Tierra de Gigantes","Torre de Demonios","salir"} local table4 = select_table(regiones) local xy_regiones = { {336000,755600}, {436400,215600}, {296800,547400}, {600800,687400}, {829900,763300}, {590500,110500}, } pc.warp(xy_regiones[table4][1],xy_regiones[table4][2]) elseif warps == 6 then local pvm = {"Acantilado de Gautama 90","Bahía Nefrite 90","Cabo del Dragón 90","Salir"} local table5 = select_table(pvm) local xy_pvm = { {1177600,1664000}, {1049600,1510400}, {1024000,1664000}, } pc.warp(xy_pvm[table5][1],xy_pvm[table5][2]) end end when login with pc.get_map_index()== index_gautama or pc.get_map_index()== index_nefrite or pc.get_map_index()== index_cabo begin if pc.get_level() < 90 then notice("error") warp_to_village() end end end end ใโ-๐ใโ๐๐ผ๐, diegojimenezyt and santomt2 2 1 Link to comment Share on other sites More sharing options...
ใโ-๐ใโ๐๐ผ๐ Posted May 26, 2018 Author Report Share Posted May 26, 2018 Justo ahora, Dilong dijo: Aqui tienes, le falta algunos detalles pero funciona Debes iniciar sesión para ver el contenido del enlace en esta publicación. Ocultar contenido quest teleport begin state start begin when 20094.chat."teleport" begin local warps = select("Imperios","Regiones Forestales","Cuevas de Arañas","Zonas de Atlantea","Otras Regiones","Mapas de Leveo","salir") if warps == 1 then local imperios = {"jinno","chunjo","shinso","salir"} local table = select_table(imperios) local xy_imperios = { {473900,954600}, {63200,166700}, {959600,269700}, } pc.warp(xy_imperios[table][1],xy_imperios[table][2]) elseif warps == 2 then local foresta = {"Bosque","Bosque Rojo Inicio","Bosque Rojo Final","salir"} local table2 = select_table(foresta) local xy_foresta = { {288700,5700}, {1119900,70800}, {1118100,8600}, } pc.warp(xy_foresta[table2][1],xy_foresta[table2][2]) elseif warps == 3 then local aracn = {"mapa1","mapa2","salir"} local table3 = select_table(aracn) local xy_aracn = { {59800,497300}, {704100,521900}, } if pc.get_level() < 60 then return end pc.warp(xy_aracn[table3][1],xy_aracn[table3][2]) elseif warps == 4 then local setaous = select("nivel 1","nivel 2","salir") if setaous == 1 then if pc.get_level() < 75 and pc.count_item(30190) < 0 then say("no tienes el nivel insuficiente") say("O no tienes el objeto necesario") return end pc.warp(0,1203200) pc.remove_item(30190,1) elseif setaous == 2 then if pc.get_level() < 80 and pc.count_item(30190) < 0 then say("no tienes el nivel insuficiente") say("O no tienes el objeto necesario") return end pc.warp(819200,1049600) pc.remove_item(30190,1) return end elseif warps == 5 then local regiones = {"Valle de Seungryong","Monte Sohan","Desierto Yongbi","Tierra de Fuego","Tierra de Gigantes","Torre de Demonios","salir"} local table4 = select_table(regiones) local xy_regiones = { {336000,755600}, {436400,215600}, {296800,547400}, {600800,687400}, {829900,763300}, {590500,110500}, } pc.warp(xy_regiones[table4][1],xy_regiones[table4][2]) elseif warps == 6 then local pvm = {"Acantilado de Gautama 90","Bahía Nefrite 90","Cabo del Dragón 90","Salir"} local table5 = select_table(pvm) local xy_pvm = { {1177600,1664000}, {1049600,1510400}, {1024000,1664000}, } pc.warp(xy_pvm[table5][1],xy_pvm[table5][2]) end end when login with pc.get_map_index()== index_gautama or pc.get_map_index()== index_nefrite or pc.get_map_index()== index_cabo begin if pc.get_level() < 90 then notice("error") warp_to_village() end end end end Gracias por la ayuda! pero tengo una duda... como agrego la parte para que se inicie desde el boton que tenia? Esta parte: quest inventario_teleport begin state start begin when login begin cmdchat("Teleport "..q.getcurrentquestindex()) end when button or info begin say_title("Anillo teletransportador:") say("A que mapa deseas teletransportarte?") say("") Link to comment Share on other sites More sharing options...
Dilong Posted May 26, 2018 Report Share Posted May 26, 2018 Spoiler quest teleport begin state start begin when login begin cmdchat("Teleport "..q.getcurrentquestindex()) end when button or info begin say_title("Anillo teletransportador:") say("A que mapa deseas teletransportarte?") say("") local warps = select("Imperios","Regiones Forestales","Cuevas de Arañas","Zonas de Atlantea","Otras Regiones","Mapas de Leveo","salir") if warps == 1 then local imperios = {"jinno","chunjo","shinso","salir"} local table = select_table(imperios) local xy_imperios = { {473900,954600}, {63200,166700}, {959600,269700}, } pc.warp(xy_imperios[table][1],xy_imperios[table][2]) elseif warps == 2 then local foresta = {"Bosque","Bosque Rojo Inicio","Bosque Rojo Final","salir"} local table2 = select_table(foresta) local xy_foresta = { {288700,5700}, {1119900,70800}, {1118100,8600}, } pc.warp(xy_foresta[table2][1],xy_foresta[table2][2]) elseif warps == 3 then local aracn = {"mapa1","mapa2","salir"} local table3 = select_table(aracn) local xy_aracn = { {59800,497300}, {704100,521900}, } pc.warp(xy_aracn[table3][1],xy_aracn[table3][2]) elseif warps == 4 then local setaous = select("nivel 1","nivel 2","salir") if setaous == 1 then if pc.get_level() < 75 and pc.count_item(30190) < 0 then say("no tienes el nivel insuficiente") say("O no tienes el objeto necesario") return end pc.warp(0,1203200) pc.remove_item(30190,1) elseif setaous == 2 then if pc.get_level() < 80 and pc.count_item(30190) < 0 then say("no tienes el nivel insuficiente") say("O no tienes el objeto necesario") return end pc.warp(819200,1049600) pc.remove_item(30190,1) return end elseif warps == 5 then local regiones = {"Valle de Seungryong","Monte Sohan","Desierto Yongbi","Tierra de Fuego","Tierra de Gigantes","Torre de Demonios","salir"} local table4 = select_table(regiones) local xy_regiones = { {336000,755600}, {436400,215600}, {296800,547400}, {600800,687400}, {829900,763300}, {590500,110500}, } pc.warp(xy_regiones[table4][1],xy_regiones[table4][2]) elseif warps == 6 then local pvm = {"Acantilado de Gautama 90","Bahía Nefrite 90","Cabo del Dragón 90","Salir"} local table5 = select_table(pvm) local xy_pvm = { {1177600,1664000}, {1049600,1510400}, {1024000,1664000}, } pc.warp(xy_pvm[table5][1],xy_pvm[table5][2]) end end when login with pc.get_map_index()== index_gautama or pc.get_map_index()== index_nefrite or pc.get_map_index()== index_cabo begin if pc.get_level() < 90 then notice("error") warp_to_village() end end when login with pc.get_map_index()== arañas1 begin if pc.get_level() < nivel then notice("error") warp_to_village() end end when login with pc.get_map_index()== arañas2 begin if pc.get_level() < nivel then notice("error") warp_to_village() end end Ya, de paso le puse unos detalles que faltaban diegojimenezyt, santomt2 and ใโ-๐ใโ๐๐ผ๐ 2 1 Link to comment Share on other sites More sharing options...
ใโ-๐ใโ๐๐ผ๐ Posted May 26, 2018 Author Report Share Posted May 26, 2018 Justo ahora, Dilong dijo: Debes iniciar sesión para ver el contenido del enlace en esta publicación. Ocultar contenido quest teleport begin state start begin when login begin cmdchat("Teleport "..q.getcurrentquestindex()) end when button or info begin say_title("Anillo teletransportador:") say("A que mapa deseas teletransportarte?") say("") local warps = select("Imperios","Regiones Forestales","Cuevas de Arañas","Zonas de Atlantea","Otras Regiones","Mapas de Leveo","salir") if warps == 1 then local imperios = {"jinno","chunjo","shinso","salir"} local table = select_table(imperios) local xy_imperios = { {473900,954600}, {63200,166700}, {959600,269700}, } pc.warp(xy_imperios[table][1],xy_imperios[table][2]) elseif warps == 2 then local foresta = {"Bosque","Bosque Rojo Inicio","Bosque Rojo Final","salir"} local table2 = select_table(foresta) local xy_foresta = { {288700,5700}, {1119900,70800}, {1118100,8600}, } pc.warp(xy_foresta[table2][1],xy_foresta[table2][2]) elseif warps == 3 then local aracn = {"mapa1","mapa2","salir"} local table3 = select_table(aracn) local xy_aracn = { {59800,497300}, {704100,521900}, } pc.warp(xy_aracn[table3][1],xy_aracn[table3][2]) elseif warps == 4 then local setaous = select("nivel 1","nivel 2","salir") if setaous == 1 then if pc.get_level() < 75 and pc.count_item(30190) < 0 then say("no tienes el nivel insuficiente") say("O no tienes el objeto necesario") return end pc.warp(0,1203200) pc.remove_item(30190,1) elseif setaous == 2 then if pc.get_level() < 80 and pc.count_item(30190) < 0 then say("no tienes el nivel insuficiente") say("O no tienes el objeto necesario") return end pc.warp(819200,1049600) pc.remove_item(30190,1) return end elseif warps == 5 then local regiones = {"Valle de Seungryong","Monte Sohan","Desierto Yongbi","Tierra de Fuego","Tierra de Gigantes","Torre de Demonios","salir"} local table4 = select_table(regiones) local xy_regiones = { {336000,755600}, {436400,215600}, {296800,547400}, {600800,687400}, {829900,763300}, {590500,110500}, } pc.warp(xy_regiones[table4][1],xy_regiones[table4][2]) elseif warps == 6 then local pvm = {"Acantilado de Gautama 90","Bahía Nefrite 90","Cabo del Dragón 90","Salir"} local table5 = select_table(pvm) local xy_pvm = { {1177600,1664000}, {1049600,1510400}, {1024000,1664000}, } pc.warp(xy_pvm[table5][1],xy_pvm[table5][2]) end end when login with pc.get_map_index()== index_gautama or pc.get_map_index()== index_nefrite or pc.get_map_index()== index_cabo begin if pc.get_level() < 90 then notice("error") warp_to_village() end end when login with pc.get_map_index()== arañas1 begin if pc.get_level() < nivel then notice("error") warp_to_village() end end when login with pc.get_map_index()== arañas2 begin if pc.get_level() < nivel then notice("error") warp_to_village() end end Ya, de paso le puse unos detalles que faltaban Muchas gracias, la probaré y te diré que tal me fue e.e Link to comment Share on other sites More sharing options...
ใโ-๐ใโ๐๐ผ๐ Posted May 27, 2018 Author Report Share Posted May 27, 2018 hace 1 hora, Dilong dijo: Debes iniciar sesión para ver el contenido del enlace en esta publicación. Revelar contenido oculto quest teleport begin state start begin when login begin cmdchat("Teleport "..q.getcurrentquestindex()) end when button or info begin say_title("Anillo teletransportador:") say("A que mapa deseas teletransportarte?") say("") local warps = select("Imperios","Regiones Forestales","Cuevas de Arañas","Zonas de Atlantea","Otras Regiones","Mapas de Leveo","salir") if warps == 1 then local imperios = {"jinno","chunjo","shinso","salir"} local table = select_table(imperios) local xy_imperios = { {473900,954600}, {63200,166700}, {959600,269700}, } pc.warp(xy_imperios[table][1],xy_imperios[table][2]) elseif warps == 2 then local foresta = {"Bosque","Bosque Rojo Inicio","Bosque Rojo Final","salir"} local table2 = select_table(foresta) local xy_foresta = { {288700,5700}, {1119900,70800}, {1118100,8600}, } pc.warp(xy_foresta[table2][1],xy_foresta[table2][2]) elseif warps == 3 then local aracn = {"mapa1","mapa2","salir"} local table3 = select_table(aracn) local xy_aracn = { {59800,497300}, {704100,521900}, } pc.warp(xy_aracn[table3][1],xy_aracn[table3][2]) elseif warps == 4 then local setaous = select("nivel 1","nivel 2","salir") if setaous == 1 then if pc.get_level() < 75 and pc.count_item(30190) < 0 then say("no tienes el nivel insuficiente") say("O no tienes el objeto necesario") return end pc.warp(0,1203200) pc.remove_item(30190,1) elseif setaous == 2 then if pc.get_level() < 80 and pc.count_item(30190) < 0 then say("no tienes el nivel insuficiente") say("O no tienes el objeto necesario") return end pc.warp(819200,1049600) pc.remove_item(30190,1) return end elseif warps == 5 then local regiones = {"Valle de Seungryong","Monte Sohan","Desierto Yongbi","Tierra de Fuego","Tierra de Gigantes","Torre de Demonios","salir"} local table4 = select_table(regiones) local xy_regiones = { {336000,755600}, {436400,215600}, {296800,547400}, {600800,687400}, {829900,763300}, {590500,110500}, } pc.warp(xy_regiones[table4][1],xy_regiones[table4][2]) elseif warps == 6 then local pvm = {"Acantilado de Gautama 90","Bahía Nefrite 90","Cabo del Dragón 90","Salir"} local table5 = select_table(pvm) local xy_pvm = { {1177600,1664000}, {1049600,1510400}, {1024000,1664000}, } pc.warp(xy_pvm[table5][1],xy_pvm[table5][2]) end end when login with pc.get_map_index()== index_gautama or pc.get_map_index()== index_nefrite or pc.get_map_index()== index_cabo begin if pc.get_level() < 90 then notice("error") warp_to_village() end end when login with pc.get_map_index()== arañas1 begin if pc.get_level() < nivel then notice("error") warp_to_village() end end when login with pc.get_map_index()== arañas2 begin if pc.get_level() < nivel then notice("error") warp_to_village() end end Ya, de paso le puse unos detalles que faltaban No me funcionó al darle clic al botón no hace nada :S Link to comment Share on other sites More sharing options...
Dilong Posted May 27, 2018 Report Share Posted May 27, 2018 Entonces ya es cosa del sistema Link to comment Share on other sites More sharing options...
ใโ-๐ใโ๐๐ผ๐ Posted May 27, 2018 Author Report Share Posted May 27, 2018 hace 41 minutos, Dilong dijo: Entonces ya es cosa del sistema La anterior quest funcionaba bien, pero cuando le agregue lo de atlantea empezó a andar mal :S Link to comment Share on other sites More sharing options...
Recommended Posts