Jump to content
SeMa™

If pc.get_empire == 4 Help.

Recommended Posts

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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...