Jump to content

Quest sencillas


Dilong

Recommended Posts

Tenia encendido los files y me puse a hacer estas quest,son simples pero tal vez a alguien le sirva xD

 

 

quest mineria begin
state start begin
when 20015.chat."Mineria" begin
say("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 then
return
end
if s == 1 then
say("Que mineral tienes?")
local mineral = select("Mineral Oro","Piedra Diamante","Ninguno")
if mineral == 1 then
if pc.count_item(50606) > 200 == false then
say("No tienes suficientes")
say_item_vnum(50606)
say("")
say("Regresa cuando tengas suficiente")
else
pc.remove_item(50606,200)
pc.changegold(100000000)
chat("Has recibido 100.000.000 Yang")
return
end
elseif mineral == 2 then
if pc.count_item(50601) > 200 == false then
say("No tienes suficientes")
say_item_vnum(50601)
say("")
say("Regresa cuando tengas suficiente")
else
pc.remove_item(50601,200)
pc.changegold(200000000)
chat("Has recibido 200.000.000 Yang")
return
end
end
end
end
end
end

 

 

 

quest polimorfar begin
state start begin
when 20094.chat."Transformar" begin
say_green("texto")
local s = select("Comandante setaou","Siervo Salvaje","Mago mantícora","Cerrar")
if pc.get_level() < 30 then
say("solo puedes transformarte al nivel 30")
return
end
if pc.is_polymorphed() == true then
say("no puedes transformarte")
return
end
if s == 1 then
pc.polymorph(2414, 5*60)
say("Has sido transformado")
say_reward("la transformacion solo dura 5 minutos")
return
end
if s == 2 then
pc.polymorph(502, 5*60)
say("Has sido transformado")
say_reward("la transformacion solo dura 5 minutos")
return
end
if s == 3 then
pc.polymorph(3203, 5*60)
say("Has sido transformado")
say_reward("la transformacion solo dura 5 minutos")
return
end
end
end
end

 

 

 

quest borrarlogs begin
state start begin
when 20094.chat."Mantenimiento" with pc.get_name() == "Dilong" begin
say("prueba")
local test = select("Borrar logs","Backup","Cargar Quest","cerrar")
if test == 1 then
os.execute("cd /game && sh clear.sh")
notice("logs borrados")
return
end
if test == 2 then
os.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")
return
end
if test == 3 then
os.execute("cd /quest && ./make_spain")
notice("Las quest han sido compiladas")
notice("recarga las quest con el comando /reload q")
return
end
end
end
end

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...