Rafa23Alzira Posted April 9, 2014 Report Share Posted April 9, 2014 Hola chicos, hace tiempo vi está función que marca el nivel del monstruo ya sea para comparar el nivel con el nuestro o para lo que sea, pero la putada es tener que hacer cada vnum de monstruo y nivel manualmente así que me invente un pequeño script php que sirve bastante: <html> <body> <?php $link = mysql_connect("IP_DE_TU_SERVIDOR", "USUARIO_SERVIDOR(NORMALMENTE ROOT)", "CONTRASEÑA_BASE_DE_DATOS"); mysql_select_db("player", $link); $result = mysql_query("SELECT vnum, level FROM mob_proto WHERE type = '0' or type= '2' ORDER BY vnum, level DESC", $link); echo "<table border = '0'> n"; echo "<tr><td>get_mob_level =</td><td></td><td></td></tr> n"; echo "<tr><td>{</td><td></td><td></td></tr> n"; while ($row = mysql_fetch_row($result)){ echo "<tr><td>[$row[0]]<td>=<td>$row[1],</td></tr> n"; } echo "<tr><td>}</td><td></td><td></td></tr> n"; echo "</table> n"; ?> </body> </html> Donde pone mysql_connect debéis rellenarlo con lo que os pide y teneis que subirlo a un hosting y entrar a la dirección donde lo habéis subido, una vez ahí copiar todo (cntrl+a) y pegarlo en el questlib.lua Por ejemplo yo lo uso para esto: quest mob begin state start begin when kill with not npc.is_pc() pc.get_level() - get_mob_level[npc.get_race()] < 10 begin pc.give_item2(10,1) end endend Así solo os daría el objeto si no superáis en 10 niveles el nivel del mob. Se que no es mucho pero a alguien le servirá, un saludo Shogun, LovePlay and Rinnegan 3 Quote Link to comment Share on other sites More sharing options...
LovePlay Posted April 9, 2014 Report Share Posted April 9, 2014 Bastante bueno +1 Quote Link to comment Share on other sites More sharing options...
Rafa23Alzira Posted April 9, 2014 Author Report Share Posted April 9, 2014 Bastante bueno +1 Gracias Quote Link to comment Share on other sites More sharing options...
Yori Posted April 10, 2014 Report Share Posted April 10, 2014 Yo uso esto... Debes iniciar sesión para ver el contenido del enlace en esta publicación. Shogun, Rinnegan, sergio pilcol alvarez and 1 other 4 Quote Link to comment Share on other sites More sharing options...
Rinnegan Posted April 10, 2014 Report Share Posted April 10, 2014 ta bueno gracias por compartir Quote Link to comment Share on other sites More sharing options...
Rafa23Alzira Posted April 10, 2014 Author Report Share Posted April 10, 2014 Yo uso esto... Debes iniciar sesión para ver el contenido del enlace en esta publicación. ¿Pero esa no es para ver datos del otro personaje? Creí que no funcionaba para esto Quote Link to comment Share on other sites More sharing options...
Shogun Posted April 11, 2014 Report Share Posted April 11, 2014 "El otro personaje" incluye mobs. 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.