Jump to content

SergioT

Miembro
  • Contador contenido

    62
  • Ingreso

  • Última visita

Mensajes publicados por SergioT

  1. 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 ( ) then 
    syschat ( "---- Debug ----" ) 
    syschat ( "Vnum: " .. tostring ( vnum ) ) 
    syschat ( "Slot: " .. tostring ( slot ) ) 
    syschat ( "ID: " .. tostring ( item . get_id ( ) ) ) 
    syschat ( "---- End_Debug ----" ) 
    end 
    item . remove_stack ( ) 
    end }
     

  2. 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 value
    SYSERR: Jul 31 00:56:18.995739 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start click
    SYSERR: Jul 31 00:56:27.681501 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to index a number value
    SYSERR: Jul 31 00:56:27.681550 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start click
    SYSERR: Jul 31 00:56:32.672991 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to index a number value
    SYSERR: Jul 31 00:56:32.673049 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start click
    SYSERR: Jul 31 00:56:55.61512 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to index a number value
    SYSERR: Jul 31 00:56:55.61612 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start click
    SYSERR: Jul 31 00:56:59.859574 :: RunState: LUA_ERROR: locale/mexico/quest/object/state/borrar_items:3: attempt to index a number value
    SYSERR: Jul 31 00:56:59.859627 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start click

  3. 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 enter
    SYSERR: 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 enter
    SYSERR: 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 enter
    SYSERR: 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 enter
    SYSERR: 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 enter
    SYSERR: 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 enter
    SYSERR: 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

  4. Syserr?

    aparece eso 

     

     

    0728 14:46:25695 ::   File "ui.py", line 1029, in CallEvent
     
    0728 14:46:25696 ::   File "uiInventory.py", line 375, in <lambda>
     
    0728 14:46:25698 ::   File "uiInventory.py", line 508, in Borrar_Item
     
    0728 14:46:25698 :: NameError
    0728 14:46:25698 :: : 
    0728 14:46:25698 :: global name 'event' is not defined
    0728 14:46:25698 :: 
     
    0728 14:46:26231 :: Traceback (most recent call last):
     
    0728 14:46:26231 ::   File "ui.py", line 1029, in CallEvent
     
    0728 14:46:26232 ::   File "uiInventory.py", line 375, in <lambda>
     
    0728 14:46:26233 ::   File "uiInventory.py", line 508, in Borrar_Item
     
    0728 14:46:26234 :: NameError
    0728 14:46:26234 :: : 
    0728 14:46:26234 :: global name 'event' is not defined
    0728 14:46:26234 :: 

  5. 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

  6. 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.

  7. me sale este error en el syser sabran porque?

     

     

     

     
    0701 12:51:42658 ::   File "networkModule.py", line 239, in SetGamePhase
     
    0701 12:51:42660 ::   File "game.py", line 160, in __init__
     
    0701 12:51:42661 ::   File "game.py", line 2343, in __ServerCommand_Build
     
    0701 12:51:42662 :: AttributeError
    0701 12:51:42662 :: : 
    0701 12:51:42662 :: 'GameWindow' object has no attribute '_GameWindow__Habilidades'
    0701 12:51:42662 :: 

  8. 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' then 
    os.execute('cd '..path..' && touch '..file)
    end
    if 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+' end
    local f = io.open(path..'/'..file, type_)
    if type_ == 'r' then
    if 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' then
    local ltable = {}
    for i in f:lines() do table.insert(ltable, i) end
    f:close()
    return ltable[line]
    end
    elseif type_ == 'a+' or type_ == 'w' then
    if string.find(text, '__enter__') ~= 0 then
    f:write(string.gsub(text, '__enter__', '\n', string.find(text,'__enter__'))..'\n')
    else 
    f:write(text..'\n')
    end
    f:close()
    end
    end
     
     
    y la quest y al darle clic al pergamino no aparece nada no abre ninguna informacion
    y si hice la carpeta noticias los txt fecha y noticias dentro de la carpeta 
    aqui una foto
     
    Debes iniciar sesión para ver el contenido del enlace en esta publicación.
  9. 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)
  10. Que te dice el syserr

    0407 16:31:24981 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=100, itemIndex=71702) - Failed to item data
     
    0407 16:31:24982 :: CPythonPlayer::SetItemData(window_type : 1, dwSlotIndex=136, itemIndex=569) - Failed to item data
     
    0407 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 | HideKillGui
    0407 16:33:45488 :: Unknown Server Command usuario_id 1 | usuario_id
    0407 17:04:44951 :: GRANNY: r:/granny/rt/granny_file.cpp(337): Unable to read magic value
    0407 17:09:11513 :: GRANNY: r:/granny/rt/granny_file.cpp(337): Unable to read magic value
    0407 17:22:32269 :: Unknown Server Command HideKillGui | HideKillGui
    0407 17:22:32273 :: Unknown Server Command usuario_id 1 | usuario_id
     
    y en el server
     
     
     
    SYSERR: 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 1
    SYSERR: Apr  7 21:34:51 :: RunState: LUA_STATE: index 0 ref 3
    SYSERR: Apr  7 21:34:51 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letter
    SYSERR: 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 1
    SYSERR: Apr  7 21:35:02 :: RunState: LUA_STATE: index 0 ref 3
    SYSERR: Apr  7 21:35:02 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letter
    SYSERR: 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 1
    SYSERR: Apr  7 21:35:40 :: RunState: LUA_STATE: index 0 ref 3
    SYSERR: Apr  7 21:35:40 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letter
    SYSERR: 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 1
    SYSERR: Apr  7 21:36:05 :: RunState: LUA_STATE: index 0 ref 3
    SYSERR: Apr  7 21:36:05 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letter
    SYSERR: 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 1
    SYSERR: Apr  7 21:36:12 :: RunState: LUA_STATE: index 0 ref 3
    SYSERR: Apr  7 21:36:12 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letter
    SYSERR: 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 1
    SYSERR: Apr  7 21:36:48 :: RunState: LUA_STATE: index 0 ref 3
    SYSERR: Apr  7 21:36:48 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letter
    SYSERR: Apr  7 21:36:57 :: Analyze: login phase does not handle this packet! header 50
    SYSERR: Apr  7 21:36:57 :: Process: UNKNOWN HEADER: 243, LAST HEADER: 0(1), REMAIN BYTES: 4, fd: 320
    SYSERR: 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 1
    SYSERR: Apr  7 21:38:33 :: RunState: LUA_STATE: index 0 ref 3
    SYSERR: Apr  7 21:38:33 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letter
    SYSERR: 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 1
    SYSERR: Apr  7 21:39:03 :: RunState: LUA_STATE: index 0 ref 3
    SYSERR: Apr  7 21:39:03 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letter
    SYSERR: Apr  7 21:39:56 :: Process: UNKNOWN HEADER: 243, LAST HEADER: 0(0), REMAIN BYTES: 5, fd: 320
    SYSERR: Apr  7 21:39:57 :: Process: UNKNOWN HEADER: 243, LAST HEADER: 0(0), REMAIN BYTES: 14, fd: 320
    SYSERR: 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 1
    SYSERR: Apr  7 21:43:00 :: RunState: LUA_STATE: index 0 ref 3
    SYSERR: Apr  7 21:43:00 :: WriteRunningStateToSyserr: LUA_ERROR: quest cupon_coins.start letter
×
×
  • Crear nuevo...