Yerbauskas Publicado 7 de Diciembre del 2020 Reportar Compartir Publicado 7 de Diciembre del 2020 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 Citar Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
♥ TesT ♥ Publicado 7 de Diciembre del 2020 Reportar Compartir Publicado 7 de Diciembre del 2020 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 ) Citar Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
caanmasu Publicado 7 de Diciembre del 2020 Reportar Compartir Publicado 7 de Diciembre del 2020 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 Citar Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
Johan™ Publicado 7 de Diciembre del 2020 Reportar Compartir Publicado 7 de Diciembre del 2020 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 Citar Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
ReuS Publicado 8 de Diciembre del 2020 Reportar Compartir Publicado 8 de Diciembre del 2020 quest nivelxD begin state start begin when login with pc.get_level() == 1 then pc.set_level(81) end end end De esta forma no se te cerrara el pj con el efecto del nivel. Citar Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
caanmasu Publicado 8 de Diciembre del 2020 Reportar Compartir Publicado 8 de Diciembre del 2020 hace 36 minutos, Zauron dijo: quest nivelxD begin state start begin when login with pc.get_level() == 1 then pc.set_level(81) end end end De esta forma no se te cerrara el pj con el efecto del nivel. Hay que revisar primero si en sus files tiene esa función. Igual montarla no es problema Citar Enlace para comentar Compartir en otros sitios Mas opciones de compartir...
Mensajes recomendados
Unirse a la conversación
Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.