Dragonslayer Posted January 3, 2015 Report Share Posted January 3, 2015 Bueno pues una quest de gm un poco mas "avanzada" que la normal, pero vamos que es muy sencilla. Con esta puede activar los comandos el gm en vez de que salga automaticos. quest estadogm begin state start begin when login with pc.is_gm() begin set_state(information1) end end state information1 begin when letter begin send_letter("ON/OFF - GM") end when button or info begin say_title("ON/OFF") local estado = select ("On" , "Off(Ocupado)" , "Salir") if estado == 1 then notice_all("".. pc.get_name() .." esta Online") notice_all("Enviale un mp para dudas/quejas.") end if estado == 2 then notice_all("".. pc.get_name() .." esta Ocupado o AFK") notice_all("Puedes enviar mp para dudas o quejas. Pero no tendras respuesta inmediata") end if estado == 3 then return end end end end-- quest Metin2Arceus and Oxyrus 1 1 Quote Link to comment Share on other sites More sharing options...
Oxyrus Posted January 3, 2015 Report Share Posted January 3, 2015 Muy bueno, así puedes estar conectado sin que los usuarios se enteren Quote Link to comment Share on other sites More sharing options...
Edward™ Posted January 3, 2015 Report Share Posted January 3, 2015 Porque pones else if y no pones elseif ? Quote Link to comment Share on other sites More sharing options...
Dragonslayer Posted January 3, 2015 Author Report Share Posted January 3, 2015 Porque me gusta mas, si lo tengo en lenguaje lua, puedo cerrarlas XD Quote Link to comment Share on other sites More sharing options...
Edward™ Posted January 3, 2015 Report Share Posted January 3, 2015 Y porque directamente no pones: if xxx == 1 then end if xxx == 2 then end Quote Link to comment Share on other sites More sharing options...
Dragonslayer Posted January 3, 2015 Author Report Share Posted January 3, 2015 Y porque directamente no pones: if xxx == 1 then end if xxx == 2 then end Porque me gustan las cosas ordenadas, y para mi así queda mejor estéticamente. Quote Link to comment Share on other sites More sharing options...
Guest DreamHQ Posted January 5, 2015 Report Share Posted January 5, 2015 Gracias por la quest +1 Un saludo. Quote Link to comment Share on other sites More sharing options...
Guest Caes Posted January 5, 2015 Report Share Posted January 5, 2015 Porque pones else if y no pones elseif ? Y porque directamente no pones: if xxx == 1 then end if xxx == 2 then end En la universidad un profesor de programación me enseñó que un algoritmo es una forma de representar y dar solución a un problema, pero cada persona resuelve un problema de distinta forma por tal razón su algoritmo es diferente al nuestro. Shogun 1 Quote Link to comment Share on other sites More sharing options...
Oxyrus Posted January 7, 2015 Report Share Posted January 7, 2015 La he probado y funciona perfecto, lo único que le añadiría seria una opción para desactivar el mensaje Quote Link to comment Share on other sites More sharing options...
Dragonslayer Posted January 7, 2015 Author Report Share Posted January 7, 2015 La he probado y funciona perfecto, lo único que le añadiría seria una opción para desactivar el mensaje No te confundas, el mensaje solo se muestra cuando le das. No se va a mostrar mas veces. Quote Link to comment Share on other sites More sharing options...
Oxyrus Posted January 7, 2015 Report Share Posted January 7, 2015 No te confundas, el mensaje solo se muestra cuando le das. No se va a mostrar mas veces. A ver si entendí, ¿no importa que opción seleccione (ON/OFF) el mensaje solo se mostrara 1 vez? Digo esto porque he visto varios servidores donde cada vez que un GM se conecta y desconecta, cambia de mapa y eso aparece el mensaje. Quote Link to comment Share on other sites More sharing options...
Dragonslayer Posted January 8, 2015 Author Report Share Posted January 8, 2015 A ver si entendí, ¿no importa que opción seleccione (ON/OFF) el mensaje solo se mostrara 1 vez? Digo esto porque he visto varios servidores donde cada vez que un GM se conecta y desconecta, cambia de mapa y eso aparece el mensaje. Por eso yo lo he echo así, para que el gm solo se muestre on cuando quiera y se ahorra de escribir todo eso. Quote Link to comment Share on other sites More sharing options...
Metin2Arceus Posted April 28, 2019 Report Share Posted April 28, 2019 no me sale la quest en pergamino se podria mejorar o acerla para item 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.