Jump to content

quest de reseteos


Akroma

Recommended Posts

Bueno aqui os dejo la quest de reseteos creada por mi, esta 100% terminada lo unico que debereis hacer es añadir 1 funcion para que devuelva el nivel a 1 que no se cual es ahora exactamente, si me viene a la cabeza lo editare yo mismo, sino que lo edite o keko o raul.

 

link pastebin:

Debes iniciar sesión para ver el contenido del enlace en esta publicación.

 

aqui por si no quereis ir alli.

 

 

quest reseteo begin
state start begin
local exp = pc.get_exp()
local level = pc.get_level()
local money = pc.get_gold()
when login with pc.level == 250 and pc.getqf("prestigios") == 0 begin
chat("Puedes subir de prestigio")
chat("Perderas, el dinero, nivel y exp")
chat("Pero obtendras valores especiales")
chat("Te ha aparecido 1 objeto para resetear")
chat("Usalo si quieres resetear")
end
when id.use with pc.level == 250 begin
say_title("Ascension a prestigio 1")
say("Deseas ascender a prestigio 1?")
local r = select("Si", "No")
if r == 1 then
pc.give_exp2(-exp)
pc.change_gold(-money)
item.remove()
pc.setqf("prestigios", pc.getqf("prestigios") +1)
notice_all(""..pc.get_name().." ha ascendido de prestigio")
end
when login with pc.getqf("prestigios") == 1 begin
if get_time() < pc.getqf("temporizador_bonus") then
return
end
affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*24*365)
affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*24*365)
affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*24*365)
affect.add_collect(apply.CRITICAL_PCT, 5, 60*60*24*365)
pc.setqf("temporizador_bonus", get_time() + 60*60*24*365)
end
end
end

falta añadir solo 1 funcion para que baje el nivel

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...