Thanks to @SuNe for letting me updating his loot sorter script. This script is updated to the new 10.90 tibia update. Most of the items and new shops have been added!
If there are any items or shops missing please tell me, I will keep this script updates from now on! Any ideas please post them aswell!
This will sort out the loot in houses/ghuildhalls on the floor from a backpack with all the loot in it underneath you.
Bps should be Bp -> Bp -> Bp.
Edit the places it should drop items by change the x/y.
init start
--Loot Sorter By SuNe&Sveniyyi--
local ADDON_POS = {x = 1, y = 0}
local FARMINE_POS = {x = -1, y = 0}
local RASHID_POS = {x = 0, y = 1}
local YASIR_POS = {x = 1, y = -1}
local GREENDJINN_POS = {x = -1, y = 1}
local BLUEDJINN_POS = {x = 1, y = 1}
local JEWELRY_POS = {x = -1, y = -1}
local EDRON_POS = {x = 0, y = -1}
local GNOMISSION_POS = {x = -1, y = -2}
local ROCK_IN_A_HARD_PLACE_POS = {x = -2, y = 0}
local POTION_POS = {x = -2, y = 1}
local GRIZZLYADAMS_POS = {x = -2, y = -1}
local TAMORIL_POS = {x = 0, y = -2}
local BRENGUS_POS = {x = -2, y = -2}
local FLINT_POS = {x = 1, y = -2}
local MUGRUU_POS = {x = 2, y = 1}
local GLADIS_POS = {x = 2, y = 0}
local ALAISTAR_POS = {x = 2, y = 0}
local TELAS_POS = {x = 2, y = -2}
-- O = Char
-- Y
-- =
-- \/
-- -2 -1 0 +1 +2
-- -2 X X X X X
-- -1 X X X X X
-- 0 X X O X X
-- +1 X X X X X
-- +2 X X X X X
-- X = ->
auto(10)
-- drops items
for name, section in pairs(sections) do
for _, item in ipairs(section.items) do
while itemcount(item, '0-15') > 0 do
listas("Dropping '".. iteminfo(item).name .."', from section: '".. name .."'")
moveitems(item, ground($posx + section.position.x, $posy + section.position.y, $posz), '0-15', 100) waitping()
end
end
end
-- searches for new backpack
local foundnewbackpack = false
for i = 0, 15 do
local cont = getcontainer(i)
if cont.isopen then
for j = 1, cont.itemcount do
local info = iteminfo(cont.items[j].id)
if info.iscontainer then
listas('Opening new container...')
openitem(info.id, i)
wait(1000, 1500)
foundnewbackpack = true
break
end
end
end
end
-- if it gets here, it means it was unable to find a new backpack to open, so finish the script
if not foundnewbackpack then
auto(0)
end
Code:
Updates:
12/16/2015
V1.0: Updated script to tibia 10.90 items and vendors. (Flint, Gladys, Mugruu, Alaistar)
V1.1: Added Thelas vendor with the items he buys.
Thanks! Have fun!
Credits : sirmate, Leonardo, Lucas Terra, SuNe, Sveniyyi
12-16-2015, 12:53 PM
SuNe
Good that we have someone on the forum whom aint as lazy as me!
12-16-2015, 12:58 PM
Sveniyyi
Quote:
Originally Posted by SuNe
Good that we have someone on the forum whom aint as lazy as me!
Haha, oh well. Thanks I could update it :D! Will try to keep it update from now on!
12-16-2015, 02:58 PM
osneiver
apology this script is to grab pure loot ? Use it as you would help me to please not know much about this bot and I never used 'm new here
12-16-2015, 06:55 PM
Sveniyyi
Quote:
Originally Posted by osneiver
apology this script is to grab pure loot ? Use it as you would help me to please not know much about this bot and I never used 'm new here
This script is to sort out loot from your hunts to all selleble vendors arround tibia. Like to blue/green djinn, rashid, etc. This script can only be used in houses/guildhalls since it throws out all the loot on the floor from a backpack underneath you.
Note: Updated the script. Thelas vendor is now included, including the items he buys!
12-26-2015, 11:04 AM
Hektikyev
bro i updated all the X,Y in to the place to drop it in my guild house, but its not dropping them, i only change x y, and nothing, i get the x,y positions from cavebot exactly the places i want each vendor to drop and doesnt work, when i turn the script on, nothing happens doesnt even move doesnt open anything nothing
what can i do?
01-08-2016, 10:42 AM
klabaternik
is this possible change droping items to putting them on backpacks opened or in depot chest?
Opened backpack with all items from depot (ex bronze backpack) -> ( opened blue backpack -> blue djin , green backpack -> rashid) etc
01-10-2016, 12:02 PM
ragnir
will test today....
Edit: tested and works fine , u need quit alot of space tho recommand guildhall roof
02-18-2016, 09:29 AM
TheVillain
I got the message: "10:30:48 error in Persistent script NewPersistentScript:
["end"]:NewPersistentScript:180: 'end' expected (to close 'for' at line 166) near '<eof>'"
what does it mean and what do I have to do to fix it? :)
02-21-2016, 05:00 AM
masinhou
Quote:
Originally Posted by klabaternik
is this possible change droping items to putting them on backpacks opened or in depot chest?
Opened backpack with all items from depot (ex bronze backpack) -> ( opened blue backpack -> blue djin , green backpack -> rashid) etc