Buenas pues uso files eternia2 y el cubo de basura no funca bien dejo sysser
SYSERR: Aug 29 13:11:05 :: RunState: LUA_ERROR: [string "borrar_items"]:2: attempt to call global `split' (a nil value)
SYSERR: Aug 29 13:11:05 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start click
y la quest es esta :
quest borrar_items begin
state start begin
when login begin
cmdchat("BORRAR QID|"..q.getcurrentquestindex())
end
when button or info begin
cmdchat("BORRAR INPUT|1")
local shang = split(input(cmdchat("BORRAR SEND|")), "|")
cmdchat("BORRAR INPUT|0")
if shang[1] == "BORRAR" then
borrar_items.Borrar(tonumber(shang[2]), tonumber(shang[3]))
end
end
function Borrar(slot, vnum)
item.select_cell(slot)
local item_vnum, item_count, item_id = item.get_vnum(), item.get_count(), item.get_id()
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
end
end
Pregunta
virus34
Buenas pues uso files eternia2 y el cubo de basura no funca bien dejo sysser
SYSERR: Aug 29 13:11:05 :: RunState: LUA_ERROR: [string "borrar_items"]:2: attempt to call global `split' (a nil value)
SYSERR: Aug 29 13:11:05 :: WriteRunningStateToSyserr: LUA_ERROR: quest borrar_items.start click
y la quest es esta :
quest borrar_items begin
state start begin
when login begin
cmdchat("BORRAR QID|"..q.getcurrentquestindex())
end
when button or info begin
cmdchat("BORRAR INPUT|1")
local shang = split(input(cmdchat("BORRAR SEND|")), "|")
cmdchat("BORRAR INPUT|0")
if shang[1] == "BORRAR" then
borrar_items.Borrar(tonumber(shang[2]), tonumber(shang[3]))
end
end
function Borrar(slot, vnum)
item.select_cell(slot)
local item_vnum, item_count, item_id = item.get_vnum(), item.get_count(), item.get_id()
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
end
end
desde ya saludos!!!
Enlace para comentar
Compartir en otros sitios
5 respuestas a esta pregunta
Mensajes recomendados
Unirse a la conversación
Puedes publicar ahora y registrarte más tarde. Si tienes una cuenta, regístrate para publicar con su cuenta.