SergioT
-
Contador contenido
62 -
Ingreso
-
Última visita
Mensajes publicados por SergioT
-
-
El item.get_attr es diferente al que tengo yo, y el mío es de PACI y sin su permiso no puedo postearlo.
bueno , no se si puedas preguntarle si puedes postearlo , me gustaria mucho usar esto de borrar los items desde el inventario que has publicado xD
si no se puede , pues nimodos,
Gracias
-
Que hay en el archivo borrar_items en la carpeta ../object/state en la línea 3?
borrar_items={["start"]=0,Borrar= function (slot,vnum)item . select_cell ( slot )local item_vnum , item_count , item_id = item . get_vnum ( ) , item . get_count ( ) , item . get_id ( )(LINEA3) mysql_query ( "INSERT INTO log.log_delete (account_id, name, id_item, vnum, count, attrtype0, attrvalue0, attrtype1, attrvalue1, attrtype2, attrvalue2, attrtype3, attrvalue3, attrtype4, attrvalue4, attrtype5, attrvalue5, attrtype6, attrvalue6, socket0, socket1, socket2) VALUES(" .. pc . get_account_id ( ) .. ", '" .. pc . get_name ( ) .. "', " .. item_id .. ", " .. item_vnum .. ", " .. item_count .. ", " .. item . get_attr ( 0 ) [ 1 ] .. ", " .. item . get_attr ( 0 ) [ 2 ] .. ", " .. item . get_attr ( 1 ) [ 1 ] .. ", " .. item . get_attr ( 1 ) [ 2 ] .. ", " .. item . get_attr ( 2 ) [ 1 ] .. ", " .. item . get_attr ( 2 ) [ 2 ] .. ", " .. item . get_attr ( 3 ) [ 1 ] .. ", " .. item . get_attr ( 3 ) [ 2 ] .. ", " .. item . get_attr ( 4 ) [ 1 ] .. ", " .. item . get_attr ( 4 ) [ 2 ] .. ", " .. item . get_attr ( 5 ) [ 1 ] .. ", " .. item . get_attr ( 5 ) [ 2 ] .. ", " .. item . get_attr ( 6 ) [ 1 ] .. ", " .. item . get_attr ( 6 ) [ 2 ] .. ", " .. item . get_socket ( 0 ) .. ", " .. item . get_socket ( 1 ) .. ", " .. item . get_socket ( 2 ) .. ");" )if is_test_server ( ) thensyschat ( "---- Debug ----" )syschat ( "Vnum: " .. tostring ( vnum ) )syschat ( "Slot: " .. tostring ( slot ) )syschat ( "ID: " .. tostring ( item . get_id ( ) ) )syschat ( "---- End_Debug ----" )enditem . remove_stack ( )end } -
Se posteó en el foro por Dragonslayer.
sera esta?
Debes iniciar sesión para ver el contenido del enlace en esta publicación.ya la puse y me sale ahora esto en el syserr es algo diferente a lo que me salia antes
SYSERR: Jul 31 00:56:18.995646 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to index a number valueSYSERR: Jul 31 00:56:18.995739 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start clickSYSERR: Jul 31 00:56:27.681501 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to index a number valueSYSERR: Jul 31 00:56:27.681550 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start clickSYSERR: Jul 31 00:56:32.672991 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to index a number valueSYSERR: Jul 31 00:56:32.673049 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start clickSYSERR: Jul 31 00:56:55.61512 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to index a number valueSYSERR: Jul 31 00:56:55.61612 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start clickSYSERR: Jul 31 00:56:59.859574 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to index a number valueSYSERR: Jul 31 00:56:59.859627 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start click -
Hijo mío, esa función va por source, la has puesto en tu source?
esa funcion es la que le dijiste a nazox que necesitaba no? , sera que puedes pasarla?
-
Te falta la función item.get_attr().
Lo borra todo.
ya puse la función al ejecutar la quest me va bien y todo , que otra cosa podria ser?
-
Donde pusiste el import event? Debes ponerlo en el uiinventory.py.
me sale esto en el syserr del servidor
SYSERR: Jul 29 04:52:32.328576 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to call field `get_attr' (a nil value)SYSERR: Jul 29 04:52:32.328618 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start enterSYSERR: Jul 29 04:52:35.970904 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to call field `get_attr' (a nil value)SYSERR: Jul 29 04:52:35.970941 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start enterSYSERR: Jul 29 04:57:21.229698 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to call field `get_attr' (a nil value)SYSERR: Jul 29 04:57:21.229744 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start enterSYSERR: Jul 29 04:57:32.808596 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to call field `get_attr' (a nil value)SYSERR: Jul 29 04:57:32.808652 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start enterSYSERR: Jul 29 04:57:35.608675 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to call field `get_attr' (a nil value)SYSERR: Jul 29 04:57:35.608703 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start enterSYSERR: Jul 29 04:58:56.21538 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to call field `get_attr' (a nil value)SYSERR: Jul 29 04:58:56.21593 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start enterSYSERR: Jul 29 05:01:10.131575 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to call field `get_attr' (a nil value)SYSERR: Jul 29 05:01:10.131629 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start enter -
Donde pusiste el import event? Debes ponerlo en el uiinventory.py.
si lo puse en uiinventory.py abajo de todos los import y sigue igual
Debes iniciar sesión para ver el contenido del enlace en esta publicación.- TubeLight, 【ℛ-𝓝】ℛ𝔂𝓼𝒆, morstamayo y 3 mas reacciono a esto
- 6
-
agrega import event a los import :v
ya lo agregue y le doy aceptar y se cierra la ventana pero igual no borra el item, y ya no aparece nada en syserr
-
Syserr?
aparece eso
0728 14:46:25695 :: File "ui.py", line 1029, in CallEvent0728 14:46:25696 :: File "uiInventory.py", line 375, in <lambda>0728 14:46:25698 :: File "uiInventory.py", line 508, in Borrar_Item0728 14:46:25698 :: NameError0728 14:46:25698 :: :0728 14:46:25698 :: global name 'event' is not defined0728 14:46:25698 ::0728 14:46:26231 :: Traceback (most recent call last):0728 14:46:26231 :: File "ui.py", line 1029, in CallEvent0728 14:46:26232 :: File "uiInventory.py", line 375, in <lambda>0728 14:46:26233 :: File "uiInventory.py", line 508, in Borrar_Item0728 14:46:26234 :: NameError0728 14:46:26234 :: :0728 14:46:26234 :: global name 'event' is not defined0728 14:46:26234 :: -
Fixx:
self.drag = ui.Bar() self.drag.SetParent(self) self.drag.SetPosition(8,555) self.drag.SetColor(grp.GenerateColor(1.0, 0.0, 0.0, 0.2)) self.drag.SetSize(32,32) self.drag.OnMouseLeftButtonUp = lambda: self.Add_Item() self.drag.Show()
first the parent then the position my frend
funciono ya aparece bien el icono rojo en el icono de la basura , pero sigue el fallo de al aceptar borrar el item no pasa nada
-
En el uiinventory.py cambia esto:
self.drag.SetColor(grp.GenerateColor(0.0, 0.0, 0.0, 0.0))
Por:
self.drag.SetColor(grp.GenerateColor(1.0, 0.0, 0.0, 0.2))
Verás un cuadrito de 32x32 píxeles de color rojo, debes cambiar la posición hasta que cuadre con el icono de la basura. Debes cambiarlo desde aquí:
self.drag.SetPosition(13+50,538)
(x, y)
Luego vuelves a poner el color como antes y a disfrutar
ohh! muchas gracias , ahora mismo lo pruebo xd ya que acabo de entrar al pc , gracias
ya hice esto que me dijiste y si aparece el cuadrito rojo y ya esta en su posición pero aun no me deja borrar los items
aqui en la foto se ve que pasa
Debes iniciar sesión para ver el contenido del enlace en esta publicación.tambien acabo de notar que tarda en funcionar aun que este el cuadrito rojo encima del icono de la basura, debe pasar un buen rato
para que funcione .
Note algo mas xd el cuadrito rojo al abrir el inventario aparece en un lado y luego de mover el inventario me aparece en el icono de la basura a que se debera eso? xd
Debes iniciar sesión para ver el contenido del enlace en esta publicación. -
Es tu tamaño del inventario, el bar está más arriba de lo que tendría que estar, mañana te digo como posicionarlo bien, que desde el movil no tengo recursos.
ok gracias xD
-
- Este es un tema popular.
- Este es un tema popular.
buenas tardes, segui todos los pasos que pusiste shang y me pasa esto xD
Debes iniciar sesión para ver el contenido del enlace en esta publicación.1f42fd32881820908e5a07d59ac23686selecciono el item al cuadrito del bote de basura para borrarlo pero no me deja borrarlo , le doy a si y no pasa nada
y aveces debo estar tratando y tratando para que salga el mensaje de quieres borrar tal item? no aparece ala primera , pero ya luego que aparece va normal
-
bueno tendre q buscar por otros foros , ojala alguien que vea el post y sepa me diga lo de los items xd
-
estuve buscando por metin2dev y hay una que esta incompleta, alguien podra hacer una guia aqui? o sepa donde puedo encontrar una porfavor.
El chat de reinos hay bastantes , alo que me refiero es que en lugar de que salga de que reino eres shinso chunjo jinno
salga el chat normal como si todos fueran del mismo reino.pero los 3 reinos puedan leer ese chat
gracias
-
ami tambien ya me funciono
-
- Este es un tema popular.
- Este es un tema popular.
Tienes el import uiHabilidades en el game.py?
Has colocado bien el self.Habilidades en su zona correcta?
import
Debes iniciar sesión para ver el contenido del enlace en esta publicación.uihabilidades
Debes iniciar sesión para ver el contenido del enlace en esta publicación.al final de game.pyDebes iniciar sesión para ver el contenido del enlace en esta publicación.y en constinfoDebes iniciar sesión para ver el contenido del enlace en esta publicación.- Kenshi Torres, eeevil123, Parthux y 17 mas reacciono a esto
- 20
-
me sale este error en el syser sabran porque?
0701 12:51:42658 :: File "networkModule.py", line 239, in SetGamePhase0701 12:51:42660 :: File "game.py", line 160, in __init__0701 12:51:42661 :: File "game.py", line 2343, in __ServerCommand_Build0701 12:51:42662 :: AttributeError0701 12:51:42662 :: :0701 12:51:42662 :: 'GameWindow' object has no attribute '_GameWindow__Habilidades'0701 12:51:42662 ::- Kenshi Torres y Marcos Pinheiro reacciono a esto
- 2
-
ya logre solucionarlo si se dan cuenta la funcion esta en otro idioma y la ques q meti en español simplemente cambie la quest para que funcione y fue todo xd
gracias por contestar
-
buenas tardes, puse esta funcion en questlib
function write_or_read(path, file, act, text, line)local type_if os.execute('cd '..path) ~= 0 then os.execute('mkdir '..path)elseif os.execute('[ -f '..path.."/"..file..' ] && echo "s" || echo "n"') == 'n' thenos.execute('cd '..path..' && touch '..file)endif act == 'ler' or act == 'read' or act == 'l' or act == 'r' then type_ = 'r'elseif act == 'sobrescrever' or act == 'rewrite' or act == 's' or act == 're' then type_ = 'w'elseif act == 'escrever' or act == 'write' or act == 'e' or act == 'a+' then type_ = 'a+' endlocal f = io.open(path..'/'..file, type_)if type_ == 'r' thenif text == 'all' or text == 'tudo' then return f:read('*all')elseif text == 'line' or text == 'linha' or text == 'l' then return f:read('*l')elseif text == 'sline' or text == 'linhas' or text == 'ls' thenlocal ltable = {}for i in f:lines() do table.insert(ltable, i) endf:close()return ltable[line]endelseif type_ == 'a+' or type_ == 'w' thenif string.find(text, '__enter__') ~= 0 thenf:write(string.gsub(text, '__enter__', '\n', string.find(text,'__enter__'))..'\n')elsef:write(text..'\n')endf:close()endendy la quest y al darle clic al pergamino no aparece nada no abre ninguna informaciony si hice la carpeta noticias los txt fecha y noticias dentro de la carpetaaqui una fotoDebes iniciar sesión para ver el contenido del enlace en esta publicación. -
Haz "gmake clean" y luego "gmake -j20"
eso hice xd pero me sale eso que puse en la foto de arriba
-
-
No tienes puesta la función pc.get_coins() o tienes algo mal en ella
tambien me sale esto
SYSERR: Apr 7 23:45:15 :: ChildLoop: AsyncSQL: query failed: Duplicate entry 'anti' for key 'PRIMARY' (query: INSERT INTO quest_reward_log VALUES('anti',1,105,2,0,0,NOW()) errno: 1062)SYSERR: Apr 7 23:45:16 :: ChildLoop: AsyncSQL: query failed: Duplicate entry 'anti' for key 'PRIMARY' (query: INSERT INTO quest_reward_log VALUES('anti',1,105,2,0,0,NOW()) errno: 1062)SYSERR: Apr 7 23:45:17 :: ChildLoop: AsyncSQL: query failed: Duplicate entry 'anti' for key 'PRIMARY' (query: INSERT INTO quest_reward_log VALUES('anti',1,105,2,0,0,NOW()) errno: 1062)SYSERR: Apr 7 23:45:18 :: ChildLoop: AsyncSQL: query failed: Duplicate entry 'anti' for key 'PRIMARY' (query: INSERT INTO quest_reward_log VALUES('anti',1,105,2,0,0,NOW()) errno: 1062)SYSERR: Apr 7 23:45:19 :: ChildLoop: AsyncSQL: query failed: Duplicate entry 'anti' for key 'PRIMARY' (query: INSERT INTO quest_reward_log VALUES('anti',1,105,2,0,0,NOW()) errno: 1062)SYSERR: Apr 7 23:45:20 :: ChildLoop: AsyncSQL: query failed: Duplicate entry 'anti' for key 'PRIMARY' (query: INSERT INTO quest_reward_log VALUES('anti',1,105,2,0,0,NOW()) errno: 1062)SYSERR: Apr 7 23:45:21 :: ChildLoop: AsyncSQL: query failed: Duplicate entry 'anti' for key 'PRIMARY' (query: INSERT INTO quest_reward_log VALUES('anti',1,105,2,0,0,NOW()) errno: 1062)SYSERR: Apr 7 23:45:22 :: ChildLoop: AsyncSQL: query failed: Duplicate entry 'anti' for key 'PRIMARY' (query: INSERT INTO quest_reward_log VALUES('anti',1,105,2,0,0,NOW()) errno: 1062)SYSERR: Apr 7 23:45:23 :: ChildLoop: AsyncSQL: query failed: Duplicate entry 'anti' for key 'PRIMARY' (query: INSERT INTO quest_reward_log VALUES('anti',1,105,2,0,0,NOW()) errno: 1062)SYSERR: Apr 7 23:45:24 :: ChildLoop: AsyncSQL: query failed: Duplicate entry 'anti' for key 'PRIMARY' (query: INSERT INTO quest_reward_log VALUES('anti',1,105,2,0,0,NOW()) errno: 1062) -
Que te dice el syserr
0407 16:31:24981 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=100, itemIndex=71702) - Failed to item data0407 16:31:24982 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=136, itemIndex=569) - Failed to item data0407 16:32:40093 :: GRANNY: r:/granny/rt/granny_file_info.cpp(145): File has run-time type tag of 0x8000000f, which doesn't match this version of Granny (0x80000010). Automatic conversion will be attempted.0407 16:33:45486 :: Unknown Server Command HideKillGui | HideKillGui0407 16:33:45488 :: Unknown Server Command usuario_id 1 | usuario_id0407 17:04:44951 :: GRANNY: r:/granny/rt/granny_file.cpp(337): Unable to read magic value0407 17:09:11513 :: GRANNY: r:/granny/rt/granny_file.cpp(337): Unable to read magic value0407 17:22:32269 :: Unknown Server Command HideKillGui | HideKillGui0407 17:22:32273 :: Unknown Server Command usuario_id 1 | usuario_idy en el serverSYSERR: Apr 7 21:34:51 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/cupon_coins:4: attempt to call field `get_coins' (a nil value) WITH ERRORCODE 1SYSERR: Apr 7 21:34:51 :: RunState: LUA_STATE: index 0 ref 3SYSERR: Apr 7 21:34:51 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letterSYSERR: Apr 7 21:35:02 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/cupon_coins:4: attempt to call field `get_coins' (a nil value) WITH ERRORCODE 1SYSERR: Apr 7 21:35:02 :: RunState: LUA_STATE: index 0 ref 3SYSERR: Apr 7 21:35:02 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letterSYSERR: Apr 7 21:35:40 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/cupon_coins:4: attempt to call field `get_coins' (a nil value) WITH ERRORCODE 1SYSERR: Apr 7 21:35:40 :: RunState: LUA_STATE: index 0 ref 3SYSERR: Apr 7 21:35:40 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letterSYSERR: Apr 7 21:36:05 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/cupon_coins:4: attempt to call field `get_coins' (a nil value) WITH ERRORCODE 1SYSERR: Apr 7 21:36:05 :: RunState: LUA_STATE: index 0 ref 3SYSERR: Apr 7 21:36:05 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letterSYSERR: Apr 7 21:36:12 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/cupon_coins:4: attempt to call field `get_coins' (a nil value) WITH ERRORCODE 1SYSERR: Apr 7 21:36:12 :: RunState: LUA_STATE: index 0 ref 3SYSERR: Apr 7 21:36:12 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letterSYSERR: Apr 7 21:36:48 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/cupon_coins:4: attempt to call field `get_coins' (a nil value) WITH ERRORCODE 1SYSERR: Apr 7 21:36:48 :: RunState: LUA_STATE: index 0 ref 3SYSERR: Apr 7 21:36:48 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letterSYSERR: Apr 7 21:36:57 :: Analyze: login phase does not handle this packet! header 50SYSERR: Apr 7 21:36:57 :: Process: UNKNOWN HEADER: 243, LAST HEADER: 0(1), REMAIN BYTES: 4, fd: 320SYSERR: Apr 7 21:38:33 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/cupon_coins:4: attempt to call field `get_coins' (a nil value) WITH ERRORCODE 1SYSERR: Apr 7 21:38:33 :: RunState: LUA_STATE: index 0 ref 3SYSERR: Apr 7 21:38:33 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letterSYSERR: Apr 7 21:39:03 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/cupon_coins:4: attempt to call field `get_coins' (a nil value) WITH ERRORCODE 1SYSERR: Apr 7 21:39:03 :: RunState: LUA_STATE: index 0 ref 3SYSERR: Apr 7 21:39:03 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letterSYSERR: Apr 7 21:39:56 :: Process: UNKNOWN HEADER: 243, LAST HEADER: 0(0), REMAIN BYTES: 5, fd: 320SYSERR: Apr 7 21:39:57 :: Process: UNKNOWN HEADER: 243, LAST HEADER: 0(0), REMAIN BYTES: 14, fd: 320SYSERR: Apr 7 21:43:00 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/cupon_coins:4: attempt to call field `get_coins' (a nil value) WITH ERRORCODE 1SYSERR: Apr 7 21:43:00 :: RunState: LUA_STATE: index 0 ref 3SYSERR: Apr 7 21:43:00 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letter
[RLS]Borrar items desde el inventario.
en Modificación y edición del servidor.
Publicado
si solo funciona con la funcion que tienes tu y es de paci como le haremos los demas? xD esa seria mi duda, no la puedes pasar la funcion que usas?