• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Smal Fix Scrtip!

Elexonic

Well-Known Member
Joined
Jun 18, 2008
Messages
1,920
Reaction score
59
I need help in this script


function onStartup()
db.query("DELETE FROM player_depotitems, player_items, tile_items WHERE itemtype = 2345;")
return true
end

I get an error on the console. Sintax Error
That may be because it does not work?

Bye!
 
Lua:
function onStartup()
	db.query('DELETE FROM player_depotitems WHERE itemtype = 2345;')
	db.query('DELETE FROM player_items WHERE itemtype = 2345;')
	db.query('DELETE FROM tile_items WHERE itemtype = 2345;')
	return true
end
 
Thank you very much:) I works perfect, everything but the houses in the houses does not remove the item :S
 
Maybe because you're using binary map storage? Check if useHouseDataStorage in config.lua is set to true.
 
Error console :S

dibujooc.png

and the houses are not cleaned: S

CONFIC.LUA
I put it now.

useHouseDataStorage = true
 
Back
Top