Dilong Posted October 28, 2015 Report Share Posted October 28, 2015 Tenia encendido los files y me puse a hacer estas quest,son simples pero tal vez a alguien le sirva xD quest mineria beginstate start beginwhen 20015.chat."Mineria" beginsay("Hola "..pc.get_name().." si me traes")say_item_vnum(50606)say("x200")say("Te dare 100kk Yang")say_item_vnum(50601)say("x200 te dare 200kk Yang")say("")say("Aceptas?")local s = select("Si","No")if s == 2 thenreturnendif s == 1 thensay("Que mineral tienes?")local mineral = select("Mineral Oro","Piedra Diamante","Ninguno")if mineral == 1 thenif pc.count_item(50606) > 200 == false thensay("No tienes suficientes")say_item_vnum(50606)say("")say("Regresa cuando tengas suficiente")elsepc.remove_item(50606,200)pc.changegold(100000000)chat("Has recibido 100.000.000 Yang")returnendelseif mineral == 2 thenif pc.count_item(50601) > 200 == false thensay("No tienes suficientes")say_item_vnum(50601)say("")say("Regresa cuando tengas suficiente")elsepc.remove_item(50601,200)pc.changegold(200000000)chat("Has recibido 200.000.000 Yang")returnendendendendendend quest polimorfar beginstate start beginwhen 20094.chat."Transformar" beginsay_green("texto")local s = select("Comandante setaou","Siervo Salvaje","Mago mantícora","Cerrar")if pc.get_level() < 30 thensay("solo puedes transformarte al nivel 30")returnendif pc.is_polymorphed() == true thensay("no puedes transformarte")returnendif s == 1 thenpc.polymorph(2414, 5*60)say("Has sido transformado")say_reward("la transformacion solo dura 5 minutos")returnendif s == 2 thenpc.polymorph(502, 5*60)say("Has sido transformado")say_reward("la transformacion solo dura 5 minutos")returnendif s == 3 thenpc.polymorph(3203, 5*60)say("Has sido transformado")say_reward("la transformacion solo dura 5 minutos")returnendendendend quest borrarlogs beginstate start beginwhen 20094.chat."Mantenimiento" with pc.get_name() == "Dilong" beginsay("prueba")local test = select("Borrar logs","Backup","Cargar Quest","cerrar")if test == 1 thenos.execute("cd /game && sh clear.sh")notice("logs borrados")returnendif test == 2 thenos.execute("cd /usr/servidor/Respaldo && rm -rf *")os.execute("cd /usr/servidor/Respaldo && tar czvf servidor_34083.tgz /usr/servidor")notice("Copia del servidor realizado")notice("se procedera a la copia del mysql")os.execute("cd /usr/servidor/Respaldo && tar czvf database_34083.tar.gz /var/db/mysql")notice("Copia del mysql realizado")returnendif test == 3 thenos.execute("cd /quest && ./make_spain")notice("Las quest han sido compiladas")notice("recarga las quest con el comando /reload q")returnendendendend Marcos Pinheiro and Johan™ 2 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.