View Full Version : Auto pick up items from floor
kreteno
02-21-2016, 11:51 AM
Hello, could someone make a script that will pick up items from the sqm that I am standing on? or maybe even from sqm's around me. That would be really usefull and It would make me very happy :rolleyes:
Thanks
MrTrala
02-21-2016, 05:11 PM
--[[
Free Itams
Version 1.1.0
Created by Mr Trala
]]
config = {
itemID = {16129, 3725, 3232, 3043, 8176}, -- ItemIDs to be picked up
MBP = "pannier backpack" -- Ex. "Purple Backpack", "Backpack of holding", "Bag" etc. Should have various of the same bp.
}
p = Self.Position()
Module.New('Freeitams', function(mod)
for y = -1, 1 do
for x = -1, 1 do
if table.contains(config.itemID, Map.GetTopUseItem(p.x + x, p.y + y, p.z).id) then
wait(200,500)
Map.PickupItem(p.x+x, p.y+y, p.z, Container.GetByName(config.MBP):Index(), 0)
mod:Delay(math.random(400, 500))
end
end
end
end)
kreteno
02-21-2016, 07:44 PM
Thank you very much! :)
haidars
02-29-2016, 06:11 PM
19:09 XenoScript Error:
Script: groundlooter.lua
Line #: 9
Chunk: C:?DOCUME?1?xxx?MIJNDO?1?XenoBot?Scripts??GROUND?1 .LUA
Error: '}' expected (to close '{' at line 7) near 'MBP'
This is an error with user-input and should not be reported as a bug with XenoBot.
hm am i the only one getting this? it doesnt work for me some reason
Jontor
02-29-2016, 09:51 PM
haidars
There's a missing comma on line 8
haidars
03-01-2016, 08:49 AM
ty Jontor <3
sebastian1991
03-07-2016, 09:36 AM
Does this still work?? Thnx
rokarona
04-14-2016, 03:45 PM
can some post the right code please
rokarona
04-14-2016, 04:28 PM
i used this and it works great
p = Self.Position()
Module.New('Freeitams', function(mod)
for y = -1, 1 do
for x = -1, 1 do
wait(200,500)
Map.PickupItem(p.x, p.y, p.z,"", 0)
mod:Delay(math.random(400, 500))
end
end
end)
I want to add if the bp is not complete do :))
Fatality
04-14-2016, 05:38 PM
i used this and it works great
p = Self.Position()
Module.New('Freeitams', function(mod)
for y = -1, 1 do
for x = -1, 1 do
wait(200,500)
Map.PickupItem(p.x, p.y, p.z,"", 0)
mod:Delay(math.random(400, 500))
end
end
end)
I want to add if the bp is not complete do :))
Why do you have the for loops if you dont use them?
rokarona
04-14-2016, 07:19 PM
Why do you have the for loops if you dont use them?
I gonna use them I am searching now how to see that if the item is moveable first then it will move it to the bp
I am trying to make a full auto loot pickup
very simply I will but 20 blue bps in on bp and will put it beside the loot and will start the boot so it will open the first bp and get the loot in it then when it is full the bot will go to the previous bp and open the bp in socket 2 and get the loot in it and repeat ,, D))
Parkinson
04-27-2016, 01:43 PM
haidars
There's a missing comma on line 8
Please tell me how should this code looks like with this comma. Im trying and nothing happend;/ Still got error. PM me plx or write here. Thx a lot
Jontor
04-27-2016, 06:43 PM
Please tell me how should this code looks like with this comma. Im trying and nothing happend;/ Still got error. PM me plx or write here. Thx a lot
I might code it tommorow for you, the code that guy posted isn't perfect.
He's not updating the position, waits are kinda big, it doesn't checks if there's place in backpack or not etc.
yooka
05-01-2016, 05:32 PM
--[[
Free Itams
Version 1.1.0
Created by Mr Trala
]]
config = {
itemID = {16129, 3725, 3232, 3043, 8176} -- ItemIDs to be picked up
MBP = "pannier backpack" -- Ex. "Purple Backpack", "Backpack of holding", "Bag" etc. Should have various of the same bp.
}
p = Self.Position()
Module.New('Freeitams', function(mod)
for y = -1, 1 do
for x = -1, 1 do
if table.contains(config.itemID, Map.GetTopUseItem(p.x + x, p.y + y, p.z).id) then
wait(200,500)
Map.PickupItem(p.x+x, p.y+y, p.z, Container.GetByName(config.MBP):Index(), 0)
mod:Delay(math.random(400, 500))
end
end
end
end)
how check first ...
if player can pick up item... player can stand 1sqm beside item
MrTrala
06-07-2016, 11:13 AM
This one should work a little bit better, too lazy to make a place in bp checker (I have it here somewhere tho).
No promises, I don't have a license to test it ;p.
--[[
Free Itams
Version 1.2
Created by Mr Trala
]]
config = {
itemID = {16129, 3725, 3232, 3043, 8176}, -- ItemIDs to be picked up
MBP = "pannier backpack" -- Ex. "Purple Backpack", "Backpack of holding", "Bag" etc. Should have various of the same bp.
}
function freeitams()
p = Self.Position()
for y = -1, 1 do
for x = -1, 1 do
if table.contains(config.itemID, Map.GetTopUseItem(p.x + x, p.y + y, p.z).id) then
wait(50,100)
Map.PickupItem(p.x+x, p.y+y, p.z, Container.GetByName(config.MBP):Index(), 0)
end
end
end
end
registerEventListener(TIMER_TICK, "freeitams")
Hiidx
03-20-2017, 12:20 AM
MrTrala have a way to set this script to loot items from 2-3 sqm from char instead of 1sqm?
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.