SeMa™ Posted June 5, 2013 Report Share Posted June 5, 2013 Hola, quisiera saber si alguien puede hacerme un sql_query que chekee si player_index el reino es 4, que la quest continue y si no es 4 simplemente salga un say. when 20308.chat."Crear Gremio" with pc.hasguild() and not pc.isguildmaster() begin --and (pc.get_empire == 4) begin Ya que esta funcion no me la coge al no usar dif's para el 4º reino. Un saludo y gracias. Link to comment Share on other sites More sharing options...
LoGo Posted June 5, 2013 Report Share Posted June 5, 2013 ¿Has probado con pc.get_empire > 3 ? Link to comment Share on other sites More sharing options...
PACI Posted June 5, 2013 Report Share Posted June 5, 2013 Prueba colocando > 3 Link to comment Share on other sites More sharing options...
pepineitor Posted June 5, 2013 Report Share Posted June 5, 2013 when 20308.chat."Crear Gremio" with pc.hasguild() and not pc.isguildmaster() begin local player = mysql_query(select id from player.player where name='"..name.."') local empire = mysql_query(select empire from player_index.player where id='"..player.."') if empire !=4 then say("No eres del 4º reino") return end say("Crear un gremio") --Pon lo que continue end Creo que asi estaría bien. Link to comment Share on other sites More sharing options...
Akroma Posted June 5, 2013 Report Share Posted June 5, 2013 sabes k laguearas el sv de mala manera consultando eso cada vez k le da al guardian no?. tus querys estan mal pepineitor, te faltan los (" Link to comment Share on other sites More sharing options...
SeMa™ Posted June 6, 2013 Author Report Share Posted June 6, 2013 Gracias a todos, pero ya con esta línea me funcionó: when 20308.chat."Crear Gremio" with not pc.hasguild() and pc.get_empire > 3 begin Pueden cerrar. Link to comment Share on other sites More sharing options...
Recommended Posts