SeBuenoPorfa Posted November 5, 2013 Report Share Posted November 5, 2013 quest gameover begin state start begin when login begin set_state(morir_pj) end end state morir_pj begin when letter begin send_letter("auto morir") end when button or morir_pj begin say_title("auto morir") say("") local main_set = select ("morir", "cancelar") if main_set == 1 then pc.kill() elseif main_set == 2 then return end end end end quiero que al apretar morir mi player se muera Link to comment Share on other sites More sharing options...
Edward Posted November 5, 2013 Report Share Posted November 5, 2013 quest morir begin state start begin when xxx.click begin say_title("Vas a morir") say("Quieres morir?") local muere = select("Si", "No") if muere == 1 then pc.kill() elseif muere == 2 then say("Tu te lo pierdes") return end end end end Es mediante un item. Link to comment Share on other sites More sharing options...
Shiindrex Posted November 5, 2013 Report Share Posted November 5, 2013 Fijate con esta quest: Debes iniciar sesión para ver el contenido del enlace en esta publicación. Link to comment Share on other sites More sharing options...
SeBuenoPorfa Posted November 5, 2013 Author Report Share Posted November 5, 2013 pero pc.kill() funciona? esa funcion funciona? Link to comment Share on other sites More sharing options...
Shiindrex Posted November 5, 2013 Report Share Posted November 5, 2013 No lo se nunca la probe Link to comment Share on other sites More sharing options...
SeBuenoPorfa Posted November 5, 2013 Author Report Share Posted November 5, 2013 ami no me funciona Link to comment Share on other sites More sharing options...
Edward Posted November 5, 2013 Report Share Posted November 5, 2013 en mi server funciona Link to comment Share on other sites More sharing options...
SeBuenoPorfa Posted November 5, 2013 Author Report Share Posted November 5, 2013 lo de pc.kill() cuando lo puse me lo invente porque no sabia que tenia que poner, y vosotros me decis que funciona? XD entonces que hago para que ami tambien me funcione? xP cuando hago el .qc me dice que la quest esta mal cuando pongo pc.kill() si no lo pongo me dice que en la quest no hay nada mal Link to comment Share on other sites More sharing options...
Sarck3Imperios Posted November 5, 2013 Report Share Posted November 5, 2013 Quitale los () Link to comment Share on other sites More sharing options...
SeBuenoPorfa Posted November 5, 2013 Author Report Share Posted November 5, 2013 sigue dando error Link to comment Share on other sites More sharing options...
fuuton97 Posted November 5, 2013 Report Share Posted November 5, 2013 npc.kill() , la función pc.kill() no existe, tal como tu dijiste, porque "la creaste" dandole solo el nombre, cosa que te da error al hacer .qc. Link to comment Share on other sites More sharing options...
SeBuenoPorfa Posted November 5, 2013 Author Report Share Posted November 5, 2013 sigue sin irme, pero no da error al cargar la quest quest gameover begin state start begin when login begin set_state(morir_pj) end end state morir_pj begin when letter begin send_letter("auto morir") end when button or morir_pj begin say_title("auto morir") say("") local main_set = select ("morir", "cancelar") if main_set == 1 then npc.kill() elseif main_set == 2 then return end end end end Link to comment Share on other sites More sharing options...
Tiico™ Posted November 5, 2013 Report Share Posted November 5, 2013 Toma con esto te correra perfectamente: quest auto_morir begin state start begin when login begin set_state(morir) end end state morir begin when letter begin send_letter("Suicidarse") end when button or info begin say_title("Suicidarse:") say("") say_reward("¿Quieres suicidarte?") local s = select ("¡Matame!","Prefiero vivir") if s == 1 then npc.kill() elseif s == 2 then return end end endend Link to comment Share on other sites More sharing options...
Edward Posted November 5, 2013 Report Share Posted November 5, 2013 npc.kill() , la función pc.kill() no existe, tal como tu dijiste, porque "la creaste" dandole solo el nombre, cosa que te da error al hacer .qc. Verdad verdad es npc.kill() .. srry xD Link to comment Share on other sites More sharing options...
SeBuenoPorfa Posted November 5, 2013 Author Report Share Posted November 5, 2013 no da error al ejecutar, pero tampoco funciona le doy a la mision, selecciono morir y no muero, no pasa nada Link to comment Share on other sites More sharing options...
topekone Posted November 6, 2013 Report Share Posted November 6, 2013 Siendo GM supongo que sí te funcionará, ¿no? Link to comment Share on other sites More sharing options...
SeBuenoPorfa Posted November 6, 2013 Author Report Share Posted November 6, 2013 en modo gm la quest tal cual me dio ticco en el juego no me aparece, pero en modo user si, y al usarla no muero nisiquiera creo que a vosotros os funcione... porque antes cuando teniais pc envez de npc deciais que os funcionaba ¬¬ os he pillado xD Link to comment Share on other sites More sharing options...
Recommended Posts