Posts: 13
Threads: 2
Joined: Jan 2022
Reputation:
0
I went and found most of the furnitures used to block house entrances so thought i'd share it here for anyone to use
local TRASH_IDS = { 2472, 17357, 17358, 18019, 18020, 2319, 3465, 3465, 2473, 2471, 2524, 2361, 2434, 2982, 3513, 2472, 3504, 3465 } -- Ids to destroy.
local WEAPON_ID = 3297 -- Weapon id to be used to destroy.
antifurnituretrap(WEAPON_ID, table.unpack(TRASH_IDS))
Posts: 10
Threads: 2
Joined: Dec 2019
Reputation:
0
01-22-2022, 10:28 PM
(This post was last modified: 01-22-2022, 10:36 PM by Sunflake.)
|Only Registered members can see download links. | Click here to buy subscription or here to register.
It destroys the pot if i only had that ID in the persistent. Tried on many versions but cant get it to work.
Edit: Nevermind, all worked when you uninstall the bot, shutdown all clients, install the bot and redo everything.
Posts: 2,718
Threads: 439
Joined: Jul 2018
Reputation:
73
It will only destroy the item ids that you have in the persistent.
Posts: 10
Threads: 2
Joined: Dec 2019
Reputation:
0
|Only Registered members can see download links. | Click here to buy subscription or here to register.Thanks Arkilys for your excellent support, all good now!
Posts: 13
Threads: 2
Joined: Jan 2022
Reputation:
0
Is there any simple script that just moves the furniture placed on 2 diffrent sqms to a third sqm ? dont have water near my house
Posts: 2,718
Threads: 439
Joined: Jul 2018
Reputation:
73
01-23-2022, 05:08 PM
(This post was last modified: 01-23-2022, 08:25 PM by Arkilys.)
local CHECK_LOCATIONS = {
{ X = 12345, Y = 12345, Z = 6 }, -- Location to check for trash ids.
{ X = 12344, Y = 12345, Z = 6 }, -- Location to check for trash ids.
}
local MOVE_LOCATION = { X = 12344, Y = 12345, Z = 6 } -- Location to move the trash ids.
local TRASH_IDS = {3465, 2472, 2523, 2519, 2319, 2524, 2472, 2480, 2481, 2482, 2431, 2432, 2433, 2434, 2314} -- Ids to destroy.
local tiles = gettiles()
for _, tile in ipairs(tiles) do
for __, checkLocation in ipairs(CHECK_LOCATIONS) do
if tile.posx == checkLocation.X and tile.posy == checkLocation.Y and tile.posz == checkLocation.Z then
if table.find(TRASH_IDS, tile.topitem.id) ~= nil then
moveitems(tile.topitem.id, ground(MOVE_LOCATION.X, MOVE_LOCATION.Y, MOVE_LOCATION.Z), ground(checkLocation.X, checkLocation.Y, checkLocation.Z), 100)
wait(300, 500)
end
break
end
end
end
local LOCATIONS = {
{
CHECK = { X = 12345, Y = 12345, Z = 6 }, -- Location to check for trash ids.
MOVE = { X = 12344, Y = 12345, Z = 6 }, -- Location to move trash ids if found on location above.
},
{
CHECK = { X = 12345, Y = 12346, Z = 6 }, -- Location to check for trash ids.
MOVE = { X = 12345, Y = 12347, Z = 6 }, -- Location to move trash ids if found on location above.
},
}
local TRASH_IDS = {3465, 2472, 2523, 2519, 2319, 2524, 2472, 2480, 2481, 2482, 2431, 2432, 2433, 2434, 2314} -- Ids to move away.
local tiles = gettiles()
for _, tile in ipairs(tiles) do
for __, locations in ipairs(LOCATIONS) do
if tile.posx == locations.CHECK.X and tile.posy == locations.CHECK.Y and tile.posz == locations.CHECK.Z then
if table.find(TRASH_IDS, tile.topitem.id) ~= nil then
moveitems(tile.topitem.id, ground(locations.MOVE.X, locations.MOVE.Y, locations.MOVE.Z), ground(locations.CHECK.X, locations.CHECK.Y, locations.CHECK.Z), 100)
wait(300, 500)
end
break
end
end
end
Posts: 13
Threads: 2
Joined: Jan 2022
Reputation:
0
|Only Registered members can see download links. | Click here to buy subscription or here to register.tried the second script u posted but cant get it to work for some reason, it doesnt do anything
Posts: 2,718
Threads: 439
Joined: Jul 2018
Reputation:
73
local LOCATIONS = {
{
CHECK = { X = 12345, Y = 12345, Z = 6 }, -- Location to check for trash ids.
MOVE = { X = 12344, Y = 12345, Z = 6 }, -- Location to move trash ids.
},
{
CHECK = { X = 12345, Y = 12346, Z = 6 }, -- Location to check for trash ids.
MOVE = { X = 12345, Y = 12347, Z = 6 }, -- Location to move trash ids.
},
}
local TRASH_IDS = {3465, 2472, 2523, 2519, 2319, 2524, 2472, 2480, 2481, 2482, 2431, 2432, 2433, 2434, 2314} -- Ids to destroy.
for _, locations in ipairs(LOCATIONS) do
local topItem = topitem(locations.CHECK.X, locations.CHECK.Y, locations.CHECK.Z, false)
if table.find(TRASH_IDS, topItem.id) ~= nil then
moveitems(topItem.id, ground(locations.MOVE.X, locations.MOVE.Y, locations.MOVE.Z), ground(locations.CHECK.X, locations.CHECK.Y, locations.CHECK.Z), 100)
wait(300, 500)
end
end
Posts: 10
Threads: 2
Joined: Dec 2019
Reputation:
0
Is there any possibility to add that it should only check around you? People can throw pots away from the house and bait you out.
local TRASH_IDS = { 2472, 17357, 17358, 18019, 18020, 2319, 3465, 3465, 2473, 2471, 2524, 2361, 2434, 2982, 3513, 2472, 3465, 2314, 3465, 2472, 2523, 2519, 2319, 2524, 2472, 2480, 2481, 2482, 2431, 2432, 2433, 2434, 2314 } -- Ids to destroy.
local WEAPON_ID = 3274 -- Weapon id to be used to destroy.
antifurnituretrap(WEAPON_ID, table.unpack(TRASH_IDS))
Posts: 2,718
Threads: 439
Joined: Jul 2018
Reputation:
73
01-24-2022, 12:21 AM
(This post was last modified: 01-24-2022, 12:21 AM by Arkilys.)
local TRASH_IDS = { 2472, 17357, 17358, 18019, 18020, 2319, 3465, 3465, 2473, 2471, 2524, 2361, 2434, 2982, 3513, 2472, 3465, 2314, 3465, 2472, 2523, 2519, 2319, 2524, 2472, 2480, 2481, 2482, 2431, 2432, 2433, 2434, 2314 } -- Ids to destroy.
local WEAPON_ID = 3274 -- Weapon id to be used to destroy.
local MAX_RANGE = 1 -- Maximum distance to search for trash.
antifurnituretrap(WEAPON_ID, MAX_RANGE, table.unpack(TRASH_IDS))
|