Jump to content

SeMa™

Miembro
  • Contador contenido

    518
  • Ingreso

  • Última visita

  • Días ganados

    59

Todo lo publicado por SeMa™

  1. Llevo mucho tiempo instalando dedicados, y eso no hace falta para nada hacerlo. instalar el mysql es: # cd /usr/ports/databases/mysql55-server/# make install cleanmysq_enable = "YES" No tiene mas. Al igual que la libreria libexec o como carajo se llame tampoco hace falta meterla.
  2. SeMa™

    Win 7

    lo que puedes hacer es instalar otro sistema operativo encima del que ya tienes, por si te da miedo y crees que se te va a joder, el windows 7 ultimate te da la opcion de instalarlo encima del so que ya tengas y el que ya tienes se te queda guardado en una carpeta llamada "Windows.old", despues de instarlar el otro windows, si te va bien, puedes usar el ccleaner para borrar todos los archivos de tu antiguo sistema operativo. Este es el método que uso yo para "formatear" o reinstalar el so, y de esta forma no tengo que bajarme driver's ninguno, dado que se quedan guardados. Un saludo.
  3. Pueden cerrar, quedó solucionado, Gracias a todos por vuestra ayuda
  4. voy a probar a pasar los cmdchat's a qf y te cuento.
  5. local i = 1 while (i <= table.getn(items)) doi = i + 1if categoria == items[i][1] and id == items[i][2] thenchat("categoria:"..items[i][1].." y id "..items[i][2])mysql_query("UPDATE account.account SET coins = coins-"..items[i][5].." WHERE id = "..pc.get_account_id().." LIMIT 1;")pc.give_item2(items[i][3], items[i][4])breakendend tampoco me va así xd
  6. *Yori: Despues del for, se queda parado y no pasa al if * Pepinatorrrr xD local i = 1 while (i <= table.getn(items)) do i = i + 1 if categoria == items[i][1] and id == items[i][2] then chat("categoria:"..items[1].." y id "..items[2]) mysql_query("UPDATE account.account SET coins = coins-"..items[5].." WHERE id = "..pc.get_account_id().." LIMIT 1;") pc.give_item2(items[3], items[4]) break end end No llega al chat chat("categoria:"..items[1].." y id "..items[2])
  7. Pues dejo explicado aqui: Yo le doy a 1 boton en py, de 1 itemshop, para comprar 1 item, y desde python envio 2 datos a quest, local categoria = input(cmdchat("GetISBuyID")) --- esto devuelve 1 valor a la questlocal id = input(cmdchat("GetISBuyID2")) --- esto devuelve 1 valor a la quest esos 2 datos los envio, son 2 numeros, 1 es el numero de la categoria de la itemshop y otro es el numero del id del item ( no el vnum ). Necesito que compare esos values recibidos con el array, y haga un pc.give_item2 con esa misma linea del array con su vnum y su cantidad.
  8. si, es cierto, pero tambien es verdad, que de ese array solo cogería la 1º linea y no las demás por lo que de esa forma tampoco funcionaría xD
  9. al final no hace falta poner ..", con dejarlo despues del [] es suficiente, pero ya probé así y el problema está en el if No me hace la comparación.
  10. Hola a todos, tengo un fallo, y no consigo arreglarlo en una quest he preguntado a varios , he probado muchas formas, pero no lo he conseguido aun. Estoy aqui para ver si alguien es capaz de ayudarme en esto. items = { --ID_categoria, ID_item, vnum, cantidad, precio, itemCostType, attr1, val1, attr2, val2, attr3, val3, attr4, val4, attr5, val5, attr6, val6, attr7, val7, sock1, sock2, sock3, Descripcion {1, 1, 149, 1, 100, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Espada Batalla +9"}, {1, 2, 19, 1, 200, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, "Espada +9"} } local categoria = input(cmdchat("GetISBuyID")) --- esto devuelve 1 valor a la quest local id = input(cmdchat("GetISBuyID2")) --- esto devuelve 1 valor a la quest chat("categoria: "..categoria.." id: "..id) if categoria == items[1] and id == items[2] then chat("categoria:"..items[1].." y id "..items[2]) mysql_query("UPDATE account.account SET coins = coins-"..items[5].." WHERE id = "..pc.get_account_id().." LIMIT 1;") pc.give_item2(items[3], items[4]) end Espero que alguien pueda solucionarme este problemita. Gracias y un saludo.
  11. Añadido conversor de item proto y mob proto para el game r34
  12. 1º quest a begin state start begin when levelup with pc.get_level()== 255 begin notice_all("felicidades "..pc.get_name().." has subido al nivel 255") end end end
  13. import background lista_sema = { "season1/metin2_map_duel" : "", # Esto igual que en el atlasinfo. } if background.GetCurrentMapName() in lista_sema: background.RegisterEnvironmentData(1, constInfo.ENVIRONMENT_NIGHT) background.SetEnvironmentData(1) esto en python, game.py la lista_mapa debajo de los import lo demás en def open.
  14. y esta quest tampoco funciona. así si: quest regenerar_vida_mana begin state start begin when login begin if pc.get_hp() <= 0 or pc.get_hp() >= 0 then affect.add_collect(apply.HP_REGEN, 9999999, 3) end if pc.get_sp() <= 0 or pc.get_sp() >= 0 then affect.add_collect(apply.SP_REGEN, 9999999, 3) end end endend
  15. Toma, mete este el Game 404, de los files 2007. game404.rar (10.9 MB) https://mega.co.nz/#!0opwRA4K!RpIehwxnODbfKkHsad1tcjale8okvgzg3TZlMyiS6fw
  16. SeMa™

    Channels

    Aver, eso es que en virtualbox no te lee los puertos como si estuvieran abiertos, pero en el dedicado sí, por esa razón cuando entras a un server hamachi o por ip, en una maquina virtual siempre o casi siempre sale el ... o lo que tengas puesto, pero si entras en un dedicado, lo ves bien, eso le pasa a todo el mundo xD
  17. SeMa™

    Atrapadooo

    nada mal, lo suyo es que le pongas movimiento a la puerta xD
  18. si no me equivoco, el mysql_query no lo hace al instante, por lo que se bugea Sería mejor usar el pc.set_level() con el dif de yuko. Pero vamos a ver, tu tanto tiempo preguntando cosas, si alguien te implementa, etc... y no sabes leer 1 simple quest? *EDITO: Despues de que tu hayas editado la quest y pusieras el set_level, si no me equivoco, creo que es pc.set_level() y no set_level, Repito, "Creo" xD
  19. cmdchat("hola") def hola(self): self.nombredeldef() Y si está en otro py. def hola(self): import nombredelpy nombredelpy.nombredeldef()
  20. algunos buscaban este cliente que estaba en venta no? Aqui lo teneis, lleva una nueva interfaz, nuevos mapas , etc. http://www.youtube.com/watch?v=Eh5NqEQadDM Un saludo. DL: http://alleriamt2.org/Patch/Client_1.1.5.0.13.7z
  21. Alguien puede arreglarme esta funcion? El error está que cuando le doy a comprar item, se cierra la ventana de la quest, no chekea si el dinero que tengo es mayor o menor "if auktions_haus.get_money(pc.get_name()) > preis then" y está justo despues de darle al boton comprar. Gracias. y Saludos. function buy_item ( vnum, name, preis, verkaufer ) local sockets = mysql_query("SELECT socket1, socket2, socket3 FROM player.auktionshaus WHERE name = '"..name.."' and vnum = '"..vnum.."' and preis = '"..preis.."' and verkaufer = '"..verkaufer.."'") local tabelle = { [1] = sockets.socket1[1], [2] = sockets.socket2[1], [3] = sockets.socket3[1], } if verkaufer == pc.get_name() then return chat("Usted no puede comprar su propio Item.") end say_size(350, 425) say_title("Casa de Subastas:") say_item_vnum(vnum) say("Piedras:") say("") for i = 1, 3, 1 do if tabelle[i] > 1 then say_reward(auktions_haus.stones(tabelle[i])) else say("Ninguno") end end say("") say("Bonus:") local bonis = mysql_query("SELECT attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3 FROM player.auktionshaus WHERE name = '"..name.."' and vnum = '"..vnum.."' and preis = '"..preis.."' and verkaufer = '"..verkaufer.."'") if tonumber(bonis.attrtype0[1]) > 0 then say_reward(auktions_haus.attr_list(tonumber(bonis.attrtype0[1])).." : "..bonis.attrvalue0[1]) else say("Ninguno") end if tonumber(bonis.attrtype1[1]) > 0 then say_reward(auktions_haus.attr_list(tonumber(bonis.attrtype1[1])).." : "..bonis.attrvalue1[1]) else say("Ninguno") end if tonumber(bonis.attrtype2[1]) > 0 then say_reward(auktions_haus.attr_list(tonumber(bonis.attrtype2[1])).." : "..bonis.attrvalue2[1]) else say("Ninguno") end if tonumber(bonis.attrtype3[1]) > 0 then say_reward(auktions_haus.attr_list(tonumber(bonis.attrtype3[1])).." : "..bonis.attrvalue3[1]) else say("Ninguno") end say("¿Quieres comprar el Item?") say_reward("Cuesta: "..preis.." yang.") say("") say("") local a = select("Comprar", "Atrás") if a == 1 then if auktions_haus.get_money(pc.get_name()) > preis then tabelle = {} for i = 0, 39, 1 do table.insert(tabelle, i) end table.insert(tabelle, "Atrás") say_size(350, 375) say_title("Ranura selección Almacén:") say("Aquí se puede elegir en los artículos en el almacén") say("debería corresponder") c = select_table(tabelle) if c == table.getn(tabelle) then auktions_haus.menu() end local check = mysql_query("SELECT COUNT(*) as count FROM player.item WHERE window = 'SAFEBOX' and owner_id = '"..pc.get_player_id().."' and pos = '"..c.."';") if tonumber(check[1][1]) == 0 then mysql_query("UPDATE player.auktionshaus SET offen = '0' WHERE name = '"..name.."' and vnum = '"..vnum.."' and preis = '"..preis.."' and verkaufer = '"..verkaufer.."'") local pc_name_33 = pc.get_name() mysql_query("UPDATE player.auktionshaus SET verkauft = '"..pc_name_33.."' WHERE name = '"..name.."' and vnum = '"..vnum.."' and preis = '"..preis.."' and verkaufer = '"..verkaufer.."'") pc.change_money(-preis) mysql_query("UPDATE player.auktionshaus_benutzer SET gold = gold + "..preis.." WHERE name = '"..verkaufer.."'") mysql_query("update player.auktionshaus_benutzer set gold = gold - "..preis.." where name = '"..pc.get_name().."'") mysql_query("INSERT INTO player.item (owner_id,window,pos,count,vnum,attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, socket0, socket1, socket2) VALUES ('"..pc.get_account_id().."', 'SAFEBOX', '"..c.."', '1', '"..vnum.."', '"..bonis.attrtype0[1].."', '"..bonis.attrvalue0[1].."', '"..bonis.attrtype1[1].."', '"..bonis.attrvalue1[1].."', '"..bonis.attrtype2[1].."', '"..bonis.attrvalue2[1].."', '"..bonis.attrtype3[1].."', '"..bonis.attrvalue3[1].."', '0', '0', '0', '0', '0', '0', '"..sockets.socket1[1].."', '"..sockets.socket2[1].."', '"..sockets.socket3[1].."');") say_title("Casa de Subastas:") say("Deine neue Waffe befindet sich nun in deinem Lager.") elseif tonumber(check[1][1]) > 0 then say_title("Casa de Subastas:") say_reward("Der ausgewählte Slot ist nichtmehr frei !") if select("Atrás") == 1 then auktions_haus.menu() end end else say_title("Casa de Subastas:") say_reward("Usted no tiene suficiente dinero con usted para") say_reward("comprar el artículo") if select("Atrás") == 1 then auktions_haus.menu() end end elseif a == 2 then auktions_haus.menu() end end
  22. es cierto, troll pero si alguien te abre el cliente y te quita el if os.path.exists(f): dile adiós a tu metodo xD
  23. if pc.count_item(value, 1) say("no puedes leer una alma si tienes el item "value" en el inventario, dejalo en almacen") return
×
×
  • Crear nuevo...