Johan™ Posted March 30, 2015 Report Share Posted March 30, 2015 (edited) Hola xd . Hoy les traigo un simple banco board :c. HA REALIZADO CAMBIOS EN EL BOARD. Como siempre la guia de instalación esta en el .rar Para los que tengais la version 1 lo unico que tiene que hacer es descargar el nuevo rar y poner el bancoingame.py board dentro de root y actualizar la nueva quest. Creación de la tabla. ->Nos vamos a player. ->New table. ->Ahora crean la tabla como esta en la imagen. ->Recuerden al campo id solo al campo id le marcan auto increment. .>Ahora una vez echo todo como esta en la imagen le damos en save. ->de nombre le pondremos banco. ->Listo. Debes iniciar sesión para ver el contenido del enlace en esta publicación. Edited March 31, 2015 by Raiser peri200, Jeo, ZoneLife and 10 others 13 Quote Link to comment Share on other sites More sharing options...
RafaVK Posted March 30, 2015 Report Share Posted March 30, 2015 Buen aporte Quote Link to comment Share on other sites More sharing options...
EzekielitohMercury Posted March 31, 2015 Report Share Posted March 31, 2015 Buen aporte Quote Link to comment Share on other sites More sharing options...
Hawk Server's Posted March 31, 2015 Report Share Posted March 31, 2015 Buen aporte pero hay un error no se puede sacar yang en grandes cantidades deposite 1kk y me deja sacar maximo 2028 yang -.- PD: Parece ser que mientras mas yang tengas menos puedes sacar xD ahora meti mas de 7kk y solo deja sacar de a 281 yang :/ Quote Link to comment Share on other sites More sharing options...
ZoneLife Posted March 31, 2015 Report Share Posted March 31, 2015 Buen aporte seguro que le vendrá a muchos bien. Quote Link to comment Share on other sites More sharing options...
Johan™ Posted March 31, 2015 Author Report Share Posted March 31, 2015 Buen aporte pero hay un error no se puede sacar yang en grandes cantidades deposite 1kk y me deja sacar maximo 2028 yang -.- PD: Parece ser que mientras mas yang tengas menos puedes sacar xD ahora meti mas de 7kk y solo deja sacar de a 281 yang :/ xd voy a ver que pasa xd Quote Link to comment Share on other sites More sharing options...
Shang Posted March 31, 2015 Report Share Posted March 31, 2015 Te faltaron los créditos. Eso no es tuyo. Quote Link to comment Share on other sites More sharing options...
Johan™ Posted March 31, 2015 Author Report Share Posted March 31, 2015 Te faltaron los créditos. Eso no es tuyo. ._.yo lo ise Quote Link to comment Share on other sites More sharing options...
Johan™ Posted March 31, 2015 Author Report Share Posted March 31, 2015 #up UPDATE 31/03/15Cambios realizados.->Desde ahora la cantidad ingresada ya no se aloja en un qf ahora se aloja en una nueva tabla.->Solución problema que no podias tener de 2kkk o un poco mas en al banco por que se ponia en -2kkk->La quest ahora usa mysql.PARA PODER USARLA DEBERAN TENER INSTALADO LAS FUNCIONES DE MYSQL. Hawk Server's 1 Quote Link to comment Share on other sites More sharing options...
Hawk Server's Posted March 31, 2015 Report Share Posted March 31, 2015 Excelente ya lo pruebo Quote Link to comment Share on other sites More sharing options...
Hawk Server's Posted March 31, 2015 Report Share Posted March 31, 2015 Errores: Hay que crear manualmente digamos la cuenta(en la tabla poner manualmente el nombre de los pj) para poder depositar pero no deja luego retirar el yang.............. almenos a mi me pasa si alguien mas lo instala y me dices si tambien le da el error......... Quote Link to comment Share on other sites More sharing options...
Johan™ Posted March 31, 2015 Author Report Share Posted March 31, 2015 Errores: Hay que crear manualmente digamos la cuenta(en la tabla poner manualmente el nombre de los pj) para poder depositar pero no deja luego retirar el yang.............. almenos a mi me pasa si alguien mas lo instala y me dices si tambien le da el error......... Si se crea automaticamente la cuenta y ya lo probre todo, antes de subirlo, si se puede retirar. Ha de ser que no tienes las funciones de mysql instaladas. Quote Link to comment Share on other sites More sharing options...
Hawk Server's Posted March 31, 2015 Report Share Posted March 31, 2015 Si las tengo, si no las tubiera no hiciera el deposito luego de crear la cuenta manualmente :/ mysql_query = function(query) local rt = io.open('CONFIG','r'):read('*all') local pre= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)%s(%S+).+','-h%1 -u%2 -p%3 -D%4') math.randomseed(os.time()) local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2^10),{},{} os.execute('mysql '..pre..' --execute='..string.format('%q',query)..' > '..fi) 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] = b out[t[1][a]] = out[t[1][a]] or {} out[t[1][a]][i-1] = b end) end return out end Quote Link to comment Share on other sites More sharing options...
Johan™ Posted March 31, 2015 Author Report Share Posted March 31, 2015 Si las tengo, si no las tubiera no hiciera el deposito luego de crear la cuenta manualmente :/ mysql_query = function(query) local rt = io.open('CONFIG','r'):read('*all') local pre= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)%s(%S+).+','-h%1 -u%2 -p%3 -D%4') math.randomseed(os.time()) local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2^10),{},{} os.execute('mysql '..pre..' --execute='..string.format('%q',query)..' > '..fi) 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] = b out[t[1][a]] = out[t[1][a]] or {} out[t[1][a]][i-1] = b end) end return out end Creaste la tabla tal y como esta en la imagen con los tipos de datos?. o si no agregame a skype y vere que esta pasando. Quote Link to comment Share on other sites More sharing options...
Johan™ Posted March 31, 2015 Author Report Share Posted March 31, 2015 Si las tengo, si no las tubiera no hiciera el deposito luego de crear la cuenta manualmente :/ mysql_query = function(query) local rt = io.open('CONFIG','r'):read('*all') local pre= string.gsub(rt,'.+PLAYER_SQL:%s(%S+)%s(%S+)%s(%S+)%s(%S+).+','-h%1 -u%2 -p%3 -D%4') math.randomseed(os.time()) local fi,t,out = 'mysql_data_'..math.random(10^9)+math.random(2^4,2^10),{},{} os.execute('mysql '..pre..' --execute='..string.format('%q',query)..' > '..fi) 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] = b out[t[1][a]] = out[t[1][a]] or {} out[t[1][a]][i-1] = b end) end return out end prueba con esta. -- MySQL function split(str, delim, maxNb) if str == nil then return str end if string.find(str, delim) == nil then return { str } end if maxNb == nil or maxNb < 1 then maxNb = 0 end local result = {} local pat = "(.-)" .. delim .. "()" local nb = 0 local lastPos for part, pos in string.gfind(str, pat) do nb = nb + 1 result[nb] = part lastPos = pos if nb == maxNb then break end end if nb ~= maxNb then result[nb + 1] = string.sub(str, lastPos) end return result end 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) 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 out[t[1][a]] = out[t[1][a]] or {} out[t[1][a]][i-1] = tonumber(b) or b end) end return out end -- End_Of_MySQL Quote Link to comment Share on other sites More sharing options...
Hawk Server's Posted March 31, 2015 Report Share Posted March 31, 2015 prueba con esta. -- MySQL function split(str, delim, maxNb) if str == nil then return str end if string.find(str, delim) == nil then return { str } end if maxNb == nil or maxNb < 1 then maxNb = 0 end local result = {} local pat = "(.-)" .. delim .. "()" local nb = 0 local lastPos for part, pos in string.gfind(str, pat) do nb = nb + 1 result[nb] = part lastPos = pos if nb == maxNb then break end end if nb ~= maxNb then result[nb + 1] = string.sub(str, lastPos) end return result end 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) 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 out[t[1][a]] = out[t[1][a]] or {} out[t[1][a]][i-1] = tonumber(b) or b end) end return out end -- End_Of_MySQL Ahora si puedo retirar pero es raro que no me crea la cuenta joer :/ Quote Link to comment Share on other sites More sharing options...
Johan™ Posted March 31, 2015 Author Report Share Posted March 31, 2015 Ahora si puedo retirar pero es raro que no me crea la cuenta joer :/ es por que ya has usado la quest y el qf ya no es 0 ahora es 1 y el estado 0 del qf te crea la cuenta, xd has una prueba con otro personaje, o cambiando el nombre a los qf. Quote Link to comment Share on other sites More sharing options...
Hawk Server's Posted March 31, 2015 Report Share Posted March 31, 2015 es por que ya has usado la quest y el qf ya no es 0 ahora es 1 y el estado 0 del qf te crea la cuenta, xd has una prueba con otro personaje, o cambiando el nombre a los qf. Si creo la cuenta manualmente y luego le doy a depositar yang me duplica la cuenta xD ejemplo con el pj theNINJA (SOLO LA PRIMERA VEZ) Un consejo xD Seria bueno crear un boton para la apertura de la cuenta Quote Link to comment Share on other sites More sharing options...
Johan™ Posted March 31, 2015 Author Report Share Posted March 31, 2015 Si creo la cuenta manualmente y luego le doy a depositar yang me duplica la cuenta xD ejemplo con el pj theNINJA (SOLO LA PRIMERA VEZ) Hasle truncate a la tabla y intenta con nuevos pj. Quote Link to comment Share on other sites More sharing options...
Johan™ Posted March 31, 2015 Author Report Share Posted March 31, 2015 Si creo la cuenta manualmente y luego le doy a depositar yang me duplica la cuenta xD ejemplo con el pj theNINJA (SOLO LA PRIMERA VEZ) Un consejo xD Seria bueno crear un boton para la apertura de la cuenta al hacer click en el boton de ingresar, hay un qf si es la primera vez que usas el banco te crea la cuenta, si es valor del qf es 1 solo hace update a la cantidad. Quote Link to comment Share on other sites More sharing options...
Hawk Server's Posted March 31, 2015 Report Share Posted March 31, 2015 si, eso lo se pero igual sigue sin crearme la cuenta y no tengo idea xq pero si creo una cuenta manualmente y le doy a ingresar si me la crea (la duplica) Quote Link to comment Share on other sites More sharing options...
Johan™ Posted March 31, 2015 Author Report Share Posted March 31, 2015 si, eso lo se pero igual sigue sin crearme la cuenta y no tengo idea xq pero si creo una cuenta manualmente y le doy a ingresar si me la crea (la duplica) agregame a skype(editado por problemas) Quote Link to comment Share on other sites More sharing options...
Johan™ Posted March 31, 2015 Author Report Share Posted March 31, 2015 si, eso lo se pero igual sigue sin crearme la cuenta y no tengo idea xq pero si creo una cuenta manualmente y le doy a ingresar si me la crea (la duplica) Prueba con la quest he subido un nuevo .rar con la quest editada. Limpia la tabla con truncate. Quote Link to comment Share on other sites More sharing options...
♥ TesT ♥ Posted May 22, 2015 Report Share Posted May 22, 2015 porque al darle ingresar yang no me hace ninguna funcion ni tampoco al retirar qe es lo mismo si hice todo como ahi Prueba con la quest he subido un nuevo .rar con la quest editada. Limpia la tabla con truncate. 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.