Jump to content

Recommended Posts

Posted

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.

Posted

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.

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

This site uses cookies to enhance your browsing experience and provide relevant content. By continuing to browse, you agree to our We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. and Terms of Use. For more information on how we protect your data, please check our Privacy Policy.