Jump to content

Duda para iniciar al lvl deseado


Yerbauskas

Mensajes recomendados

quest give_basic_weapon begin
        state start begin
                when login with pc.get_level() == 1 and pc.countitem(27003) == 0 begin
	notice_all ("".. pc.get_name() .." comienza su aventura en Tuserver")
	say_title ( "Bienvenido" )
    say ( "Has despertado en Tuserver." )
    say ( "nuevo servidor PvM." )
    say ( "Disfruta el tiempo que jueges!" )
    say ( "" )
    pc . give_exp2 ( 1 )
    set_quest_state ( "levelup" , "run" )
    pc . change_money ( 100000 )
    pc . give_item2 ( "27003" , 200 )
    pc . give_item2 ( "27003" , 200 )
    pc . give_item2 ( "27003" , 200 )
    pc . give_item2 ( "27003" , 200 )
    pc . give_item2 ( "27003" , 200 )
    pc . give_item2 ( "27006" , 200 )
    pc . give_item2 ( "27006" , 200 )
    pc . give_item2 ( "71050" , 200 )
    pc . give_item2 ( "70038" , 40 )
    pc . give_item2 ( "72702" , 1 )
    pc . give_item2 ( "50051" , 1 )
    pc . give_item2 ( "72701" , 1 )
    pc . give_item2 ( "71085" , 40 )
    pc . give_item2 ( "71084" , 40 )
    horse.advance()
    horse.summon ()
    say ( "Recibes level 1." )
    say ( "Recibes 100000 yang." )
    say ( "Recibes 1000 Pociones Rojas(G)." )
    say ( "Recibes 400 Pociones Azules(G)." )
    say ( "Recibes Equipo basico." )
    say ( "Recibes 40 dopes y 40 cambios" )
    say ( "Recibes un Caballo lvl1" )
    say ( "Recibes varios cabos valor" )
    say ( "Recibes zapatos de velocidad" )
    if pc . job == 0 then
    pc . give_item2 ( "19" , 1 )
    pc . give_item2 ( "3009" , 1 )
    pc . give_item2 ( "11209" , 1 )
    pc . give_item2 ( "12209" , 1 )
    pc . give_item2 ( "13009" , 1 )
    pc . give_item2 ( "14009" , 1 )
    pc . give_item2 ( "15009" , 1 )
    pc . give_item2 ( "16009" , 1 )
    pc . give_item2 ( "17009" , 1 )
        say_reward ( "Has Recibido Set de Guerrero!" )
    elseif pc . job == 1 then
    pc . give_item2 ( "1009" , 1 )
    pc . give_item2 ( "19" , 1 )
    pc . give_item2 ( "2009" , 1 )
    pc . give_item2 ( "8009" , 200 )
    pc . give_item2 ( "8009" , 200 )
    pc . give_item2 ( "8009" , 200 )
    pc . give_item2 ( "8009" , 200 )
    pc . give_item2 ( "11409" , 1 )
    pc . give_item2 ( "12349" , 1 )
    pc . give_item2 ( "13009" , 1 )
    pc . give_item2 ( "14009" , 1 )
    pc . give_item2 ( "15009" , 1 )
    pc . give_item2 ( "16009" , 1 )
    pc . give_item2 ( "17009" , 1 )
    say_reward ( "Has Recibido Set de Ninja!" )
    elseif pc . job == 2 then
    pc . give_item2 ( "19" , 1 )
    pc . give_item2 ( "11609" , 1 )
    pc . give_item2 ( "12489" , 1 )
    pc . give_item2 ( "13009" , 1 )
    pc . give_item2 ( "14009" , 1 )
    pc . give_item2 ( "15009" , 1 )
    pc . give_item2 ( "16009" , 1 )
    pc . give_item2 ( "17009" , 1 )
    say_reward ( "Has Recibido Set de Sura!" )
    elseif pc . job == 3 then
    pc . give_item2 ( "5009" , 1 )
    pc . give_item2 ( "7009" , 1 )
    pc . give_item2 ( "11809" , 1 )
    pc . give_item2 ( "12629" , 1 )
    pc . give_item2 ( "13009" , 1 )
    pc . give_item2 ( "14009" , 1 )
    pc . give_item2 ( "15009" , 1 )
    pc . give_item2 ( "16009" , 1 )
    pc . give_item2 ( "17009" , 1 )
    say_reward ( "Has Recibido Set de Chaman!" )
        end
    if pc.get_map_index() == 21 then
   chat("Bienvenido al reino amarillo")
   elseif pc.get_map_index() == 1 then
   chat("Bienvenido al reino azul")
   elseif pc.get_map_index() == 41 then
    chat("Bienvenido al reino rojo")
end
			set_state(COMPLETE)
		end
	end
	state COMPLETE begin
	end
end

Buenas me gustaria saber que hay que modificar para que los pjs salga al nivel 81

Enlace para comentar
Compartir en otros sitios

hace 4 horas, Yerbauskas dijo:

quest give_basic_weapon begin
        state start begin
                when login with pc.get_level() == 1 and pc.countitem(27003) == 0 begin
	notice_all ("".. pc.get_name() .." comienza su aventura en Tuserver")
	say_title ( "Bienvenido" )
    say ( "Has despertado en Tuserver." )
    say ( "nuevo servidor PvM." )
    say ( "Disfruta el tiempo que jueges!" )
    say ( "" )
    pc . give_exp2 ( 1 )
    set_quest_state ( "levelup" , "run" )
    pc . change_money ( 100000 )
    pc . give_item2 ( "27003" , 200 )
    pc . give_item2 ( "27003" , 200 )
    pc . give_item2 ( "27003" , 200 )
    pc . give_item2 ( "27003" , 200 )
    pc . give_item2 ( "27003" , 200 )
    pc . give_item2 ( "27006" , 200 )
    pc . give_item2 ( "27006" , 200 )
    pc . give_item2 ( "71050" , 200 )
    pc . give_item2 ( "70038" , 40 )
    pc . give_item2 ( "72702" , 1 )
    pc . give_item2 ( "50051" , 1 )
    pc . give_item2 ( "72701" , 1 )
    pc . give_item2 ( "71085" , 40 )
    pc . give_item2 ( "71084" , 40 )
    horse.advance()
    horse.summon ()
    say ( "Recibes level 1." )
    say ( "Recibes 100000 yang." )
    say ( "Recibes 1000 Pociones Rojas(G)." )
    say ( "Recibes 400 Pociones Azules(G)." )
    say ( "Recibes Equipo basico." )
    say ( "Recibes 40 dopes y 40 cambios" )
    say ( "Recibes un Caballo lvl1" )
    say ( "Recibes varios cabos valor" )
    say ( "Recibes zapatos de velocidad" )
    if pc . job == 0 then
    pc . give_item2 ( "19" , 1 )
    pc . give_item2 ( "3009" , 1 )
    pc . give_item2 ( "11209" , 1 )
    pc . give_item2 ( "12209" , 1 )
    pc . give_item2 ( "13009" , 1 )
    pc . give_item2 ( "14009" , 1 )
    pc . give_item2 ( "15009" , 1 )
    pc . give_item2 ( "16009" , 1 )
    pc . give_item2 ( "17009" , 1 )
        say_reward ( "Has Recibido Set de Guerrero!" )
    elseif pc . job == 1 then
    pc . give_item2 ( "1009" , 1 )
    pc . give_item2 ( "19" , 1 )
    pc . give_item2 ( "2009" , 1 )
    pc . give_item2 ( "8009" , 200 )
    pc . give_item2 ( "8009" , 200 )
    pc . give_item2 ( "8009" , 200 )
    pc . give_item2 ( "8009" , 200 )
    pc . give_item2 ( "11409" , 1 )
    pc . give_item2 ( "12349" , 1 )
    pc . give_item2 ( "13009" , 1 )
    pc . give_item2 ( "14009" , 1 )
    pc . give_item2 ( "15009" , 1 )
    pc . give_item2 ( "16009" , 1 )
    pc . give_item2 ( "17009" , 1 )
    say_reward ( "Has Recibido Set de Ninja!" )
    elseif pc . job == 2 then
    pc . give_item2 ( "19" , 1 )
    pc . give_item2 ( "11609" , 1 )
    pc . give_item2 ( "12489" , 1 )
    pc . give_item2 ( "13009" , 1 )
    pc . give_item2 ( "14009" , 1 )
    pc . give_item2 ( "15009" , 1 )
    pc . give_item2 ( "16009" , 1 )
    pc . give_item2 ( "17009" , 1 )
    say_reward ( "Has Recibido Set de Sura!" )
    elseif pc . job == 3 then
    pc . give_item2 ( "5009" , 1 )
    pc . give_item2 ( "7009" , 1 )
    pc . give_item2 ( "11809" , 1 )
    pc . give_item2 ( "12629" , 1 )
    pc . give_item2 ( "13009" , 1 )
    pc . give_item2 ( "14009" , 1 )
    pc . give_item2 ( "15009" , 1 )
    pc . give_item2 ( "16009" , 1 )
    pc . give_item2 ( "17009" , 1 )
    say_reward ( "Has Recibido Set de Chaman!" )
        end
    if pc.get_map_index() == 21 then
   chat("Bienvenido al reino amarillo")
   elseif pc.get_map_index() == 1 then
   chat("Bienvenido al reino azul")
   elseif pc.get_map_index() == 41 then
    chat("Bienvenido al reino rojo")
end
			set_state(COMPLETE)
		end
	end
	state COMPLETE begin
	end
end

Buenas me gustaria saber que hay que modificar para que los pjs salga al nivel 81

bro prueba cambiando aqui mira
cambia el 1 por el 81
 

pc . give_exp2 ( 1 ) 
Enlace para comentar
Compartir en otros sitios

hace 10 minutos, caanmasu dijo:

repeat
  pc.give_exp2(pc.get_next_exp())
until pc.level >= 81

pero con el efecto de subir nivel se te va a desconectar el pj

Se podría corregir con hacer una pausa cada x niveles de x segundos, pero si tiene el SRC puede crear en questlua_pc.cpp una función que se llame desde lua, a la función que usa el comando /a para subir de nivel 🙂

 

Enlace para comentar
Compartir en otros sitios

Unirse a la conversación

Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.

Guest
Responder a este tema...

×   Has pegado contenido con formato .   Eliminar formato

  Only 75 emoji are allowed.

×   Tu enlace se ha incorporado automáticamente.   Mostrar un enlace en su lugar

×   Se ha restaurado el contenido anterior. .   Borrar editor

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

  • Recientemente navegando por este tema   0 miembros

    • No hay usuarios registrados visitando esta página.
×
×
  • Crear nuevo...