pepineitor Posted June 16, 2013 Report Share Posted June 16, 2013 Buenas Metin2Zone, estube mirando y no vi una quest asi sencillita para Gm's online y no me acuerdo quien la pidio, asique he hecho una que lo unico que necesita es la conexion mysql de mijago. Aqui teneis el link: Debes iniciar sesión para ver el contenido del enlace en esta publicación. Metin2 Gea, emilio45, Metin2ResidentEvil and 5 others 8 Quote Link to comment Share on other sites More sharing options...
Metin2ResidentEvil Posted June 16, 2013 Report Share Posted June 16, 2013 esta buena jiji Quote Link to comment Share on other sites More sharing options...
Jfirewall Posted June 16, 2013 Report Share Posted June 16, 2013 Me Gusta La Probare & Le Dare Un Tiempo Para que No Salga cada 5 Minutos sino mas Vere si Anda Gran Aporte Quote Link to comment Share on other sites More sharing options...
EzekielitohMercury Posted June 16, 2013 Report Share Posted June 16, 2013 Y Donde Consigo La Parte Mysql? xD Quote Link to comment Share on other sites More sharing options...
pepineitor Posted June 16, 2013 Author Report Share Posted June 16, 2013 Añades al final de cada archivo --Quest Fuctions mysql_query QuestLib mysql_query = function(query) if not pre then local rt = io.open('CONFIG','r'):read('*all') pre,_= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)%s(%S+).+','-h%1 -u%2 -p%3 -D%4') end math.randomseed(os.time()) local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2^10),{},{} os.execute('mysql '..pre..' --e='..string.format('%q',query)..' > '..fi) -- für MySQL51 -- os.execute('mysql '..pre..' -e'..string.format('%q',query)..' > '..fi) -- für MySQL55 for av in io.open(fi,'r'):lines() do table.insert(t,split(av,'t')) end; os.remove(fi); for i = 2, table.getn(t) do table.foreach(t[i],function(a,b) out[i-1] = out[i-1] or {} out[i-1][a] = tonumber(b) or b or 'NULL' out[t[1][a]] = out[t[1][a]] or {} out[t[1][a]][i-1] = tonumber(b) or b or 'NULL' end) end return out end 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.