• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ Or lua / Delete X itens in House

milbradt

New Member
Joined
Dec 25, 2011
Messages
177
Solutions
1
Reaction score
4
there is some function or script to delete X items that are inside a house?
 
If you have in config.lua
useHouseDataStorage = true
then i imagine there is no way to find out specific item ids

but if you on the other hand have it set to false, you should be able to search in tile_items after a specific "itemtype" and remove all of your "itemtype" there.

edit

ow i misread, i have no knowledge of if there is any c++ or lua function
 
Thanks for your help.
not have this option in my config.lua
If anyone still know how I can do..
If it is difficult and time consuming to create such a function, I may be paying for it.
 
have u tried printing info like
Code:
local house = House(getTileHouseInfo(player:getPosition()))
if house then
local items = house:getItems()
for i = 1, #items do
print(items)
end
 
Back
Top