ReuS 128 Report post Posted October 30, 2019 Buenas, estaba haciendo esta quest sencilla, pero no le encuentro el error xD (novato en esto aun) quest beran begin state start begin when 30121.chat."Entrar al Beran" begin local m = select ("Sala del Beran", "Cerrar") if m == 1 then if pc.get_level() >= 75 and pc.get_level () =< 90 then say("Solo pjs entre nivel 75 y 90 entran al mapa") return end if pc.count_item(30179) >= 3 then pc.warp(819200,1049600) end item.remove() else say("Necesitas al menos 3 llaves para ingresar") end when 2493.kill with pc.get_map_index() == 208 begin timer("pafuera", 0*5) end when pafuera.timer begin warp_all_to_village() end notice("Seras llevado a la ciudad en 5 segundos") end end end el error: beran.quest:28:syntax error : [string "start"]:3: `then' expected near `=' Quote Share this post Link to post Share on other sites
xLordneji 40 Report post Posted October 31, 2019 Puedes probarla así, de seguro te funcionará. quest beran begin state start begin when 30121.chat."Entrar al Beran" begin say_title("Guardián:") say("Elije una de las siguientes opciones:") local m = select ("Sala del Beran","Cerrar") if m == 2 then return end if pc.level >= 75 and pc.level <= 90 then say("Solo pjs entre nivel 75 y 90 entran al mapa") return end if pc.count_item(30179) >= 3 then pc.warp(819200,1049600) item.remove() else say("Necesitas al menos 3 llaves para ingresar") end end when 2493.kill with pc.get_map_index() == 208 begin timer("pafuera", 0*5) notice("Seras llevado a la ciudad en 5 segundos") end when pafuera.timer begin warp_all_to_village() end end --state end --quest Suerte 1 emilio45 reacted to this Quote Share this post Link to post Share on other sites