View Full Version : DarkstaR's Lua Scripts
DarkstaR
06-01-2012, 05:20 AM
Loot Sorter
First of all, I would like to thank @Rydan (http://forums.xenobot.net/member.php?u=582). I used his item list from his loot sorter. The main difference between my sorter and his is that mine sorts to open backpacks.
Currently, the sorter only supports sorting between blue djinn, green djinn, rashid and "other" items. Adding more sortability is as easy as specifying an item list and a backpack title. To operate the script, you must first open a brocade backpack which has your loot in it (nest backpacks inside of it). Then, open blue, green, orange and yellow backpacks. Each of these should have a few nested backpacks as well - they will be opened once their parent is full.
Here's a video of the script in action:
http://www.youtube.com/watch?v=0SqfpibDBKE
MerchantsAndItems =
{
BlueDjinn = {"Magic Light Wand", "Orb", "Wand of Cosmic Energy", "Wand of Decay", "Wand of Draconia", "Wand of Dragonbreath", "Wand of Inferno", "Wand of Starstorm", "Wand of Voodoo", "Wand of Vortex", "Angelic Axe", "Blue Robe", "Bonelord Shield", "Boots of Haste", "Broadsword", "Butcher's Axe", "Crown Armor", "Crown Helmet", "Crown Legs", "Crown Shield", "Crusader Helmet", "Dragon Lance", "Dragon Shield", "Earth Spike Sword", "Earth War Hammer", "Energy Spike Sword", "Energy War Hammer", "Fiery Spike Sword", "Fiery War Hammer", "Fire Axe", "Fire Sword", "Glorious Axe", "Guardian Shield", "Ice Rapier", "Icy Spike Sword", "Icy War Hammer", "Noble Armor", "Obsidian Lance", "Queen's Sceptre", "Royal Helmet", "Shadow Sceptre", "Spike Sword", "Thaian Sword", "War Hammer"},
GreenDjinn = {"Ancient Shield", "Black Shield", "Bonebreaker", "Dark Armor", "Dark Helmet", "Dragon Hammer", "Dreaded Cleaver", "Earth Knight Axe", "Energy Knight Axe", "Fiery Knight Axe", "Giant Sword", "Haunted Blade", "Icy Knight Axe", "Knight Armor", "Knight Axe", "Knight Legs", "Mystic Turban", "Onyx Flail", "Poison Dagger", "Scimitar", "Serpent Sword", "Skull Staff", "Strange Helmet", "Titan Axe", "Tower Shield", "Vampire Shield", "Warrior Helmet", "Hailstorm Rod", "Moonlight Rod", "Mysterious Fetish", "Necrotic Rod", "Northwind Rod", "Snakebite Rod", "Springsprout Rod", "Strange Talisman", "Terra Rod", "Underworld Rod"},
Rashid = {"Abyss Hammer", "Amber Staff", "Ancient Amulet", "Assassin Dagger", "Bandana", "Beastslayer Axe", "Beetle Necklace", "Berserker", "Blacksteel Sword", "Blessed Sceptre", "Bone Shield", "Bonelord Helmet", "Brutetamer's Staff", "Castle Shield", "Chaos Mace", "Coconut Shoes", "Composite Hornbow", "Cranial Basher", "Crocodile Boots", "Crystal Mace", "Crystal Necklace", "Crystal Ring", "Crystal Sword", "Crystalline Armor", "Daramanian Mace", "Daramanian Waraxe", "Dark Shield", "Death Ring", "Demon Shield", "Demonbone Amulet", "Demonrage Sword", "Devil Helmet", "Diamond Sceptre", "Doll", "Dragon Scale Mail", "Dragon Slayer", "Dragonbone Staff", "Dreaded Cleaver", "Earth Cranial Basher", "Earth Dragon Slayer", "Earth Heroic Axe", "Earth Mystic Blade", "Earth Relic Sword", "Earth War Axe", "Elvish Bow", "Emerald Bangle", "Energy Cranial Basher", "Energy Dragon Slayer", "Energy Heroic Axe", "Energy Mystic Blade", "Energy Relic Sword", "Energy War Axe", "Epee", "Fiery Cranial Basher", "Fiery Dragon Slayer", "Fiery Heroic Axe", "Fiery Mystic Blade", "Fiery Relic Sword", "Fiery War Axe", "Flower Dress", "Flower Wreath", "Fur Boots", "Furry Club", "Glacier Amulet", "Glacier Kilt", "Glacier Mask", "Glacier Robe", "Glacier Shoes", "Gold Ring", "Golden Armor", "Golden Legs", "Guardian Halberd", "Hammer of Wrath", "Heavy Mace", "Heavy Machete", "Heavy Trident", "Heroic Axe", "Hibiscus Dress", "Icy Cranial Basher", "Icy Dragon Slayer", "Icy Heroic Axe", "Icy Mystic Blade", "Icy Relic Sword", "Icy War Axe", "Jade Hammer", "Krimhorn Helmet", "Leaf Legs", "Leopard Armor", "Leviathan's Amulet", "Light Shovel", "Lightning Boots", "Lightning Headband", "Lightning Legs", "Lightning Pendant", "Lightning Robe", "Lunar Staff", "Magic Plate Armor", "Magma Amulet", "Magma Boots", "Magma Coat", "Magma Legs", "Magma Monocle", "Mammoth Fur Cape", "Mammoth Fur Shorts", "Mammoth Whopper", "Mastermind Shield", "Medusa Shield", "Mercenary Sword", "Mystic Blade", "Naginata", "Nightmare Blade", "Noble Axe", "Norse Shield", "Orcish Maul", "Paladin Armor", "Pirate Boots", "Pirate Hat", "Pirate Knee Breeches", "Pirate Shirt", "Pirate Voodoo Doll", "Platinum Amulet", "Ragnir Helmet", "Relic Sword", "Ring of the Sky", "Ruby Necklace", "Ruthless Axe", "Sacred Tree Amulet", "Sapphire Hammer", "Scarab Amulet", "Scarab Shield", "Shockwave Amulet", "Silver Brooch", "Silver Dagger", "Skull Helmet", "Skullcracker Armor", "Spiked Squelcher", "Steel Boots", "Swamplair Armor", "Taurus Mace", "Terra Amulet", "Terra Boots", "Terra Hood", "Terra Legs", "Terra Mantle", "The Justice Seeker", "Tortoise Shield", "Vile Axe", "Voodoo Doll", "War Axe", "War Horn", "Witch Hat", "Wyvern Fang"},
}
BackpacksToSortTo =
{
BlueDjinn = "Blue Backpack",
GreenDjinn = "Green Backpack",
Rashid = "Orange Backpack",
Others = "Yellow Backpack",
Main = "Brocade Backpack"
}
function itemMoveHelper(contFrom, fromSpot, contTo)
print("Moving from %s spot %d to %s", contFrom:Name(), fromSpot, contTo:Name())
if (contTo:ItemCount() == contTo:ItemCapacity()) then --opens the next container
local openAt = contTo:ItemCount() - 1
if (Item.isContainer(contTo:GetItemData(openAt).id)) then
contTo:UseItem(openAt, true)
wait(1500)
else
print("No more room for items in %s. Please fix the problem and restart the script.", contTo:Name())
wait(99999999)
end
end
contFrom:MoveItemToContainer(fromSpot, contTo:Index(), contTo:ItemCapacity() - 1)
end
function itemFound(nameTable, itemId)
local itemName = string.upper(Item.GetName(itemId))
for _, name in pairs(nameTable) do
if (itemName == string.upper(name)) then
return true
end
end
return false
end
local error = false
local backpacks = {}
for merchant, bpName in pairs(BackpacksToSortTo) do
backpacks[merchant] = Container.GetByName(bpName)
if (not backpacks[merchant]:isOpen()) then
error = true
print("You must open a %s as your %s backpack. Please fix the problem and restart the script.", bpName, merchant)
break
end
end
if (not error) then
repeat
while (backpacks["Main"]:ItemCount() > 0) do
local item = backpacks["Main"]:GetItemData(0)
if (Item.isContainer(item.id) and backpacks["Main"]:ItemCount() == 1) then --open next backpack of loot
backpacks["Main"]:UseItem(backpacks["Main"]:ItemCount()-1, true)
wait(1000)
break
else --move it the loot
local foundBp = backpacks["Others"]
for merchant, _ in pairs(MerchantsAndItems) do
if (itemFound(MerchantsAndItems[merchant], item.id)) then
foundBp = backpacks[merchant]
break
end
end
itemMoveHelper(backpacks["Main"], 0, foundBp)
wait(500, 900)
end
end
until (backpacks["Main"]:ItemCount() == 0)
end
DarkstaR
06-01-2012, 05:54 AM
Players Above HUD
This script will show, on the top left side of the screen, which players are 1 floor above you. I personally use it in POI Dragon Lords so I don't avalanche someone coming down the hole and I know if there's someone getting ready to run a trap on me. Not only is this script useful, but it shows dynamic allocation of HUD text objects and how to properly use them. As you can see, I only expand the array of text objects as they are needed and always re-use them: text items cannot be disposed of and shouldn't be duplicated!
local TextDisplayList = {HUD.CreateTextDisplay(25, 5, "Players Above:", 255, 120, 120)}
while (true) do
local players = {}
for index = CREATURES_LOW, CREATURES_HIGH do --find them bitches
local creature = Creature.GetFromIndex(index)
if (creature:isValid() and creature:isPlayer()) then
local pos = creature:Position()
local selfloc = Self.Position()
if (math.abs(selfloc.x - pos.x) < 7 and math.abs(selfloc.y - pos.y) < 5 and selfloc.z - 1 == pos.z) then
players[#players+1] = creature:Name()
end
end
end
while (#TextDisplayList <= #players) do --Add more text displays for player names
TextDisplayList[#TextDisplayList+1] = HUD.CreateTextDisplay(25, 5 + (12 * (#TextDisplayList)), "", 255, 120, 120)
end
for i = 1, #TextDisplayList-1 do --Show them bitches
if (i <= #players) then
TextDisplayList[i+1]:SetText(players[i])
else
TextDisplayList[i+1]:SetText("")
end
end
wait(600)
end
DarkstaR
06-01-2012, 05:54 AM
res2bro
Alastorsz
06-01-2012, 07:20 AM
:o now u gonna be an active member of this comunity too :D awesome, u kinda rox :D developer and scripter :D
Syntax
06-01-2012, 10:36 AM
why you get sticky :(
edit: nvm, muahaha.
Jakob Miller
06-01-2012, 10:51 AM
That's awesome ;)
Delejon
06-01-2012, 11:09 AM
Thank you! :)
Y2Quake
06-01-2012, 11:31 AM
Amazing, can we request? ahha
braedan13
06-01-2012, 02:11 PM
Thanks a lot ! Was needing a script for this ... Looks great
Flappy Joe
06-01-2012, 02:28 PM
I DONT CARE ABOUT LOOT SORTER MAKE BOT PR0 TY
Stusse
06-01-2012, 02:58 PM
Nice job DarkstaR! Will be exciting to see more from this!
Crown Royal
06-01-2012, 06:17 PM
This is amazing. I love you for this! Very fantastic job.!!!
tirfup
06-15-2012, 03:43 AM
Thanks fo the loot sorter sir ^_-
and i do mean it , i just sorted roughly 40ish bp's of loot... would have taken me hours..
eldera
06-15-2012, 06:01 PM
20:00 [XenoScript] loot sorter.lua: unexpected symbol near 'ď'
WTF?! Anyone can help me?
Can i put different colors of backpacks inside blupe, green or orange?
I mean
first bp blue, then golden in it, pirate and others?
mlody10666
07-12-2012, 09:26 AM
nice:)
Danny_
07-14-2012, 07:41 PM
Works like a charm!
Regards
Danny
soul4soul
07-16-2012, 03:12 PM
Anti-Push
The script works by trashing the space underneath your character with gold coins, vials, and worms.
note: This script is by darkstar. It was released by him during his live update session.
function dropItem(id, count)
local cont = Container.GetFirst()
while (cont:isOpen()) do
for spot = 0, cont:ItemCount() do
local item = cont:GetItemData(spot)
if (item.id == id) then
cont:MoveItemToGround(spot, Self.Position().x, Self.Position().y, Self.Position().z, count)
return true
end
end
cont = cont:GetNext()
end
return false
end
local last = 1
local trash = {3031, 285, 284, 283, 3492}
while (true) do
local thisone
while (thisone == last) do
thisone = math.random(1, #trash)
end
if (dropItem(trash[thisone], math.random(1, 2))) then
wait(700, 1500)
else
wait(20)
end
last = thisone
end
forumname
07-17-2012, 03:49 PM
Could you possibly tell me how i can use this script :P? i dont see a download link on it :P also id like to download that anit push script
DarkstaR
07-17-2012, 03:50 PM
Put it in a .lua file in Documents/XenoBot/Scripts.
Y2Quake
07-17-2012, 03:53 PM
Nick, could you check your inbox? Just a quick question.
forumname
07-17-2012, 03:55 PM
Whats the best way to do that? Make a copy of a current lua file i have then just rename it and select all and delete and paste the new codes to it? Apart from that i have no clue how to make a lua file.
forumname
07-17-2012, 03:57 PM
I got it to work doing that way :p thanks anways
soul4soul
07-17-2012, 04:46 PM
Whats the best way to do that? Make a copy of a current lua file i have then just rename it and select all and delete and paste the new codes to it? Apart from that i have no clue how to make a lua file.
that works. The other way is to open up notepad press file->save as->file name->"antipush.lua"->save
DarkstaR
07-18-2012, 10:20 PM
Added a new script to the front page. Shows a HUD of what players are 1 floor above you, useful for hunting with AOE runes in places like POI.
Kingdom
07-18-2012, 11:48 PM
Damn this is gonna be useful!Thanks ;)
Stusse
07-31-2012, 09:54 AM
Many thanks for the +1 x-ray! Useful for lots of things! Quick question DarkstaR , can this hud be considered for playersaround and such script, or does it only show? :)
Thanks
Y2Quake
08-01-2012, 07:07 PM
i've a question, is there anyway to start trashing just when you press x hotkey? i think there's no functions enough anyways.
Shadow Wolf
08-02-2012, 08:24 PM
DarkstaR
That's awesome man. Thanks a bunch :D
~ Shadow Wolf
Versilkes
08-02-2012, 11:02 PM
Is it possible to make a script that constantly uses a lever on x y z?
NNiklaSS
08-18-2012, 10:03 AM
Hello! Your HUD above script do it works to add a safe exori script in it or something? So it stop exori when player above or like see someone in xray? People try to jump up at stairs for get me skulled when I do exori at stairs.
Thanks~
NNiklaSS
Nikza
09-12-2012, 07:04 PM
[Request] Hi, I'd like to request a sword ring script that will equip sword ring from main backpack when I target Giant Spider and Nightstalker, is it possible to have multiple targets for such script?
(request)i was wondering if there was a loot counter hud you have or are working on
rgvkkk
01-16-2013, 11:45 PM
Not everyone here knows how to use bot fully, please explain how we can use this? Do we copy+paste it on notepad? if so how do we save it? I saved it but it doesn;t show up in my scripts
Loot Sorter
First of all, I would like to thank @Rydan (http://forums.xenobot.net/member.php?u=582). I used his item list from his loot sorter. The main difference between my sorter and his is that mine sorts to open backpacks.
Currently, the sorter only supports sorting between blue djinn, green djinn, rashid and "other" items. Adding more sortability is as easy as specifying an item list and a backpack title. To operate the script, you must first open a brocade backpack which has your loot in it (nest backpacks inside of it). Then, open blue, green, orange and yellow backpacks. Each of these should have a few nested backpacks as well - they will be opened once their parent is full.
Here's a video of the script in action:
http://www.youtube.com/watch?v=0SqfpibDBKE
MerchantsAndItems =
{
BlueDjinn = {"Magic Light Wand", "Orb", "Wand of Cosmic Energy", "Wand of Decay", "Wand of Draconia", "Wand of Dragonbreath", "Wand of Inferno", "Wand of Starstorm", "Wand of Voodoo", "Wand of Vortex", "Angelic Axe", "Blue Robe", "Bonelord Shield", "Boots of Haste", "Broadsword", "Butcher's Axe", "Crown Armor", "Crown Helmet", "Crown Legs", "Crown Shield", "Crusader Helmet", "Dragon Lance", "Dragon Shield", "Earth Spike Sword", "Earth War Hammer", "Energy Spike Sword", "Energy War Hammer", "Fiery Spike Sword", "Fiery War Hammer", "Fire Axe", "Fire Sword", "Glorious Axe", "Guardian Shield", "Ice Rapier", "Icy Spike Sword", "Icy War Hammer", "Noble Armor", "Obsidian Lance", "Queen's Sceptre", "Royal Helmet", "Shadow Sceptre", "Spike Sword", "Thaian Sword", "War Hammer"},
GreenDjinn = {"Ancient Shield", "Black Shield", "Bonebreaker", "Dark Armor", "Dark Helmet", "Dragon Hammer", "Dreaded Cleaver", "Earth Knight Axe", "Energy Knight Axe", "Fiery Knight Axe", "Giant Sword", "Haunted Blade", "Icy Knight Axe", "Knight Armor", "Knight Axe", "Knight Legs", "Mystic Turban", "Onyx Flail", "Poison Dagger", "Scimitar", "Serpent Sword", "Skull Staff", "Strange Helmet", "Titan Axe", "Tower Shield", "Vampire Shield", "Warrior Helmet", "Hailstorm Rod", "Moonlight Rod", "Mysterious Fetish", "Necrotic Rod", "Northwind Rod", "Snakebite Rod", "Springsprout Rod", "Strange Talisman", "Terra Rod", "Underworld Rod"},
Rashid = {"Abyss Hammer", "Amber Staff", "Ancient Amulet", "Assassin Dagger", "Bandana", "Beastslayer Axe", "Beetle Necklace", "Berserker", "Blacksteel Sword", "Blessed Sceptre", "Bone Shield", "Bonelord Helmet", "Brutetamer's Staff", "Castle Shield", "Chaos Mace", "Coconut Shoes", "Composite Hornbow", "Cranial Basher", "Crocodile Boots", "Crystal Mace", "Crystal Necklace", "Crystal Ring", "Crystal Sword", "Crystalline Armor", "Daramanian Mace", "Daramanian Waraxe", "Dark Shield", "Death Ring", "Demon Shield", "Demonbone Amulet", "Demonrage Sword", "Devil Helmet", "Diamond Sceptre", "Doll", "Dragon Scale Mail", "Dragon Slayer", "Dragonbone Staff", "Dreaded Cleaver", "Earth Cranial Basher", "Earth Dragon Slayer", "Earth Heroic Axe", "Earth Mystic Blade", "Earth Relic Sword", "Earth War Axe", "Elvish Bow", "Emerald Bangle", "Energy Cranial Basher", "Energy Dragon Slayer", "Energy Heroic Axe", "Energy Mystic Blade", "Energy Relic Sword", "Energy War Axe", "Epee", "Fiery Cranial Basher", "Fiery Dragon Slayer", "Fiery Heroic Axe", "Fiery Mystic Blade", "Fiery Relic Sword", "Fiery War Axe", "Flower Dress", "Flower Wreath", "Fur Boots", "Furry Club", "Glacier Amulet", "Glacier Kilt", "Glacier Mask", "Glacier Robe", "Glacier Shoes", "Gold Ring", "Golden Armor", "Golden Legs", "Guardian Halberd", "Hammer of Wrath", "Heavy Mace", "Heavy Machete", "Heavy Trident", "Heroic Axe", "Hibiscus Dress", "Icy Cranial Basher", "Icy Dragon Slayer", "Icy Heroic Axe", "Icy Mystic Blade", "Icy Relic Sword", "Icy War Axe", "Jade Hammer", "Krimhorn Helmet", "Leaf Legs", "Leopard Armor", "Leviathan's Amulet", "Light Shovel", "Lightning Boots", "Lightning Headband", "Lightning Legs", "Lightning Pendant", "Lightning Robe", "Lunar Staff", "Magic Plate Armor", "Magma Amulet", "Magma Boots", "Magma Coat", "Magma Legs", "Magma Monocle", "Mammoth Fur Cape", "Mammoth Fur Shorts", "Mammoth Whopper", "Mastermind Shield", "Medusa Shield", "Mercenary Sword", "Mystic Blade", "Naginata", "Nightmare Blade", "Noble Axe", "Norse Shield", "Orcish Maul", "Paladin Armor", "Pirate Boots", "Pirate Hat", "Pirate Knee Breeches", "Pirate Shirt", "Pirate Voodoo Doll", "Platinum Amulet", "Ragnir Helmet", "Relic Sword", "Ring of the Sky", "Ruby Necklace", "Ruthless Axe", "Sacred Tree Amulet", "Sapphire Hammer", "Scarab Amulet", "Scarab Shield", "Shockwave Amulet", "Silver Brooch", "Silver Dagger", "Skull Helmet", "Skullcracker Armor", "Spiked Squelcher", "Steel Boots", "Swamplair Armor", "Taurus Mace", "Terra Amulet", "Terra Boots", "Terra Hood", "Terra Legs", "Terra Mantle", "The Justice Seeker", "Tortoise Shield", "Vile Axe", "Voodoo Doll", "War Axe", "War Horn", "Witch Hat", "Wyvern Fang"},
}
BackpacksToSortTo =
{
BlueDjinn = "Blue Backpack",
GreenDjinn = "Green Backpack",
Rashid = "Orange Backpack",
Others = "Yellow Backpack",
Main = "Brocade Backpack"
}
function itemMoveHelper(contFrom, fromSpot, contTo)
print("Moving from %s spot %d to %s", contFrom:Name(), fromSpot, contTo:Name())
if (contTo:ItemCount() == contTo:ItemCapacity()) then --opens the next container
local openAt = contTo:ItemCount() - 1
if (Item.isContainer(contTo:GetItemData(openAt).id)) then
contTo:UseItem(openAt, true)
wait(1500)
else
print("No more room for items in %s. Please fix the problem and restart the script.", contTo:Name())
wait(99999999)
end
end
contFrom:MoveItemToContainer(fromSpot, contTo:Index(), contTo:ItemCapacity() - 1)
end
function itemFound(nameTable, itemId)
local itemName = string.upper(Item.GetName(itemId))
for _, name in pairs(nameTable) do
if (itemName == string.upper(name)) then
return true
end
end
return false
end
local error = false
local backpacks = {}
for merchant, bpName in pairs(BackpacksToSortTo) do
backpacks[merchant] = Container.GetByName(bpName)
if (not backpacks[merchant]:isOpen()) then
error = true
print("You must open a %s as your %s backpack. Please fix the problem and restart the script.", bpName, merchant)
break
end
end
if (not error) then
repeat
while (backpacks["Main"]:ItemCount() > 0) do
local item = backpacks["Main"]:GetItemData(0)
if (Item.isContainer(item.id) and backpacks["Main"]:ItemCount() == 1) then --open next backpack of loot
backpacks["Main"]:UseItem(backpacks["Main"]:ItemCount()-1, true)
wait(1000)
break
else --move it the loot
local foundBp = backpacks["Others"]
for merchant, _ in pairs(MerchantsAndItems) do
if (itemFound(MerchantsAndItems[merchant], item.id)) then
foundBp = backpacks[merchant]
break
end
end
itemMoveHelper(backpacks["Main"], 0, foundBp)
wait(500, 900)
end
end
until (backpacks["Main"]:ItemCount() == 0)
end
Jayy375
01-17-2013, 06:38 AM
Not everyone here knows how to use bot fully, please explain how we can use this? Do we copy+paste it on notepad? if so how do we save it? I saved it but it doesn;t show up in my scripts
Copy and paste in notepad, safe as .lua inside your documents/scripts folder.
Then it should be visible in your scripts!
xiaospike
01-17-2013, 07:57 AM
Not everyone here knows how to use bot fully, please explain how we can use this? Do we copy+paste it on notepad? if so how do we save it? I saved it but it doesn;t show up in my scripts
http://www.youtube.com/watch?v=nsA40smugzE
SamDaMan
01-17-2013, 08:29 AM
men, no to downlod scipt is virii !!!!!!!
saftsoppa
01-20-2013, 12:56 AM
Anti-Push
The script works by trashing the space underneath your character with gold coins, vials, and worms.
note: This script is by darkstar. It was released by him during his live update session.
function dropItem(id, count)
local cont = Container.GetFirst()
while (cont:isOpen()) do
for spot = 0, cont:ItemCount() do
local item = cont:GetItemData(spot)
if (item.id == id) then
cont:MoveItemToGround(spot, Self.Position().x, Self.Position().y, Self.Position().z, count)
return true
end
end
cont = cont:GetNext()
end
return false
end
local last = 1
local trash = {3031, 285, 284, 283, 3492}
while (true) do
local thisone
while (thisone == last) do
thisone = math.random(1, #trash)
end
if (dropItem(trash[thisone], math.random(1, 2))) then
wait(700, 1500)
else
wait(20)
end
last = thisone
end
so is there any easier way to stop it from trashing except going in to scripts and killing it?
omfgorly
02-21-2013, 01:51 AM
can anyone please attach the loot sorter into this tread so its downloadable?
martinpwnage
02-21-2013, 03:57 AM
can anyone please attach the loot sorter into this tread so its downloadable?
you can take it from the first post...
MerchantsAndItems =
{
BlueDjinn = {"Magic Light Wand", "Orb", "Wand of Cosmic Energy", "Wand of Decay", "Wand of Draconia", "Wand of Dragonbreath", "Wand of Inferno", "Wand of Starstorm", "Wand of Voodoo", "Wand of Vortex", "Angelic Axe", "Blue Robe", "Bonelord Shield", "Boots of Haste", "Broadsword", "Butcher's Axe", "Crown Armor", "Crown Helmet", "Crown Legs", "Crown Shield", "Crusader Helmet", "Dragon Lance", "Dragon Shield", "Earth Spike Sword", "Earth War Hammer", "Energy Spike Sword", "Energy War Hammer", "Fiery Spike Sword", "Fiery War Hammer", "Fire Axe", "Fire Sword", "Glorious Axe", "Guardian Shield", "Ice Rapier", "Icy Spike Sword", "Icy War Hammer", "Noble Armor", "Obsidian Lance", "Queen's Sceptre", "Royal Helmet", "Shadow Sceptre", "Spike Sword", "Thaian Sword", "War Hammer"},
GreenDjinn = {"Ancient Shield", "Black Shield", "Bonebreaker", "Dark Armor", "Dark Helmet", "Dragon Hammer", "Dreaded Cleaver", "Earth Knight Axe", "Energy Knight Axe", "Fiery Knight Axe", "Giant Sword", "Haunted Blade", "Icy Knight Axe", "Knight Armor", "Knight Axe", "Knight Legs", "Mystic Turban", "Onyx Flail", "Poison Dagger", "Scimitar", "Serpent Sword", "Skull Staff", "Strange Helmet", "Titan Axe", "Tower Shield", "Vampire Shield", "Warrior Helmet", "Hailstorm Rod", "Moonlight Rod", "Mysterious Fetish", "Necrotic Rod", "Northwind Rod", "Snakebite Rod", "Springsprout Rod", "Strange Talisman", "Terra Rod", "Underworld Rod"},
Rashid = {"Abyss Hammer", "Amber Staff", "Ancient Amulet", "Assassin Dagger", "Bandana", "Beastslayer Axe", "Beetle Necklace", "Berserker", "Blacksteel Sword", "Blessed Sceptre", "Bone Shield", "Bonelord Helmet", "Brutetamer's Staff", "Castle Shield", "Chaos Mace", "Coconut Shoes", "Composite Hornbow", "Cranial Basher", "Crocodile Boots", "Crystal Mace", "Crystal Necklace", "Crystal Ring", "Crystal Sword", "Crystalline Armor", "Daramanian Mace", "Daramanian Waraxe", "Dark Shield", "Death Ring", "Demon Shield", "Demonbone Amulet", "Demonrage Sword", "Devil Helmet", "Diamond Sceptre", "Doll", "Dragon Scale Mail", "Dragon Slayer", "Dragonbone Staff", "Dreaded Cleaver", "Earth Cranial Basher", "Earth Dragon Slayer", "Earth Heroic Axe", "Earth Mystic Blade", "Earth Relic Sword", "Earth War Axe", "Elvish Bow", "Emerald Bangle", "Energy Cranial Basher", "Energy Dragon Slayer", "Energy Heroic Axe", "Energy Mystic Blade", "Energy Relic Sword", "Energy War Axe", "Epee", "Fiery Cranial Basher", "Fiery Dragon Slayer", "Fiery Heroic Axe", "Fiery Mystic Blade", "Fiery Relic Sword", "Fiery War Axe", "Flower Dress", "Flower Wreath", "Fur Boots", "Furry Club", "Glacier Amulet", "Glacier Kilt", "Glacier Mask", "Glacier Robe", "Glacier Shoes", "Gold Ring", "Golden Armor", "Golden Legs", "Guardian Halberd", "Hammer of Wrath", "Heavy Mace", "Heavy Machete", "Heavy Trident", "Heroic Axe", "Hibiscus Dress", "Icy Cranial Basher", "Icy Dragon Slayer", "Icy Heroic Axe", "Icy Mystic Blade", "Icy Relic Sword", "Icy War Axe", "Jade Hammer", "Krimhorn Helmet", "Leaf Legs", "Leopard Armor", "Leviathan's Amulet", "Light Shovel", "Lightning Boots", "Lightning Headband", "Lightning Legs", "Lightning Pendant", "Lightning Robe", "Lunar Staff", "Magic Plate Armor", "Magma Amulet", "Magma Boots", "Magma Coat", "Magma Legs", "Magma Monocle", "Mammoth Fur Cape", "Mammoth Fur Shorts", "Mammoth Whopper", "Mastermind Shield", "Medusa Shield", "Mercenary Sword", "Mystic Blade", "Naginata", "Nightmare Blade", "Noble Axe", "Norse Shield", "Orcish Maul", "Paladin Armor", "Pirate Boots", "Pirate Hat", "Pirate Knee Breeches", "Pirate Shirt", "Pirate Voodoo Doll", "Platinum Amulet", "Ragnir Helmet", "Relic Sword", "Ring of the Sky", "Ruby Necklace", "Ruthless Axe", "Sacred Tree Amulet", "Sapphire Hammer", "Scarab Amulet", "Scarab Shield", "Shockwave Amulet", "Silver Brooch", "Silver Dagger", "Skull Helmet", "Skullcracker Armor", "Spiked Squelcher", "Steel Boots", "Swamplair Armor", "Taurus Mace", "Terra Amulet", "Terra Boots", "Terra Hood", "Terra Legs", "Terra Mantle", "The Justice Seeker", "Tortoise Shield", "Vile Axe", "Voodoo Doll", "War Axe", "War Horn", "Witch Hat", "Wyvern Fang"},
}
BackpacksToSortTo =
{
BlueDjinn = "Blue Backpack",
GreenDjinn = "Green Backpack",
Rashid = "Orange Backpack",
Others = "Yellow Backpack",
Main = "Brocade Backpack"
}
function itemMoveHelper(contFrom, fromSpot, contTo)
print("Moving from %s spot %d to %s", contFrom:Name(), fromSpot, contTo:Name())
if (contTo:ItemCount() == contTo:ItemCapacity()) then --opens the next container
local openAt = contTo:ItemCount() - 1
if (Item.isContainer(contTo:GetItemData(openAt).id)) then
contTo:UseItem(openAt, true)
wait(1500)
else
print("No more room for items in %s. Please fix the problem and restart the script.", contTo:Name())
wait(99999999)
end
end
contFrom:MoveItemToContainer(fromSpot, contTo:Index(), contTo:ItemCapacity() - 1)
end
function itemFound(nameTable, itemId)
local itemName = string.upper(Item.GetName(itemId))
for _, name in pairs(nameTable) do
if (itemName == string.upper(name)) then
return true
end
end
return false
end
local error = false
local backpacks = {}
for merchant, bpName in pairs(BackpacksToSortTo) do
backpacks[merchant] = Container.GetByName(bpName)
if (not backpacks[merchant]:isOpen()) then
error = true
print("You must open a %s as your %s backpack. Please fix the problem and restart the script.", bpName, merchant)
break
end
end
if (not error) then
repeat
while (backpacks["Main"]:ItemCount() > 0) do
local item = backpacks["Main"]:GetItemData(0)
if (Item.isContainer(item.id) and backpacks["Main"]:ItemCount() == 1) then --open next backpack of loot
backpacks["Main"]:UseItem(backpacks["Main"]:ItemCount()-1, true)
wait(1000)
break
else --move it the loot
local foundBp = backpacks["Others"]
for merchant, _ in pairs(MerchantsAndItems) do
if (itemFound(MerchantsAndItems[merchant], item.id)) then
foundBp = backpacks[merchant]
break
end
end
itemMoveHelper(backpacks["Main"], 0, foundBp)
wait(500, 900)
end
end
until (backpacks["Main"]:ItemCount() == 0)
end
omfgorly
02-21-2013, 01:35 PM
thx man, didnt work when i copied it from darkstars post but now form yours i did.
Tripkip
04-12-2013, 11:51 AM
NVM FIXED IT MYSELF :)!
malakz
04-14-2013, 08:22 PM
Loot sorter, awesome Mohaehuaehhua! :>
Danny_
04-24-2013, 08:52 AM
I love you for this script Darkstar, probably saved me an hour or two of sorting. xD
Arwen
05-08-2013, 12:34 AM
Hey Forgee I have question for u ! Is it possible to make script ' Use with item on the target ? I want to make script which can tame midnight panther :)
Gaudi Gabriev
06-28-2013, 10:19 AM
So this lines opens the next backpack when the main is empty or when the others are full?
if (contTo:ItemCount() == contTo:ItemCapacity()) then --opens the next container
local openAt = contTo:ItemCount() - 1
if (Item.isContainer(contTo:GetItemData(openAt).id)) then
contTo:UseItem(openAt, true)
wait(1500)
jo3bingham
06-29-2013, 03:15 AM
So this lines opens the next backpack when the main is empty or when the others are full?
if (contTo:ItemCount() == contTo:ItemCapacity()) then --opens the next container
local openAt = contTo:ItemCount() - 1
if (Item.isContainer(contTo:GetItemData(openAt).id)) then
contTo:UseItem(openAt, true)
wait(1500)
This opens the container in the last slot when the container is full.
Also, your name looks so familiar?
Avani
06-29-2013, 07:44 AM
This opens the container in the last slot when the container is full.
Also, your name looks so familiar?
http://en.wikipedia.org/wiki/Gourry_Gabriev
Gourry Gabriev (ガウリイ・ガブリエフ Gaurī Gaburiefu?) is a fictional character from the Japanese anime and light novels Slayers. He is the tallest of the main cast (6'1" or 182 cm,[1] which is considered quite tall by Japanese standards) and the oldest (human) of the party, muscular like an acrobat, possesses long blonde hair and blue eyes, and notorious for his poor memory
Gaudi Gabriev
06-29-2013, 09:03 AM
This opens the container in the last slot when the container is full.
Also, your name looks so familiar?
I was about to say the same. I remember you from WAY back. Old Tpforums/Tprogramming among others :P
jo3bingham
06-29-2013, 02:54 PM
I was about to say the same. I remember you from WAY back. Old Tpforums/Tprogramming among others :P
Avani, this is the answer I was looking for. :P OLD TProgramming, like 7.4~ client.
Gaudi Gabriev
06-29-2013, 09:51 PM
Avani, this is the answer I was looking for. :P OLD TProgramming, like 7.4~ client.
You, Ian, Tawakol, DarkPallys, Turkiery (can never remember his true username). We where there since the beggining of TPR. Do you remember that bot?
jo3bingham
06-30-2013, 03:59 AM
You, Ian, Tawakol, DarkPallys, Turkiery (can never remember his true username). We where there since the beggining of TPR. Do you remember that bot?
Didn't Ian make TPR? TibiaGG was the first thing I ever remember using, haha, and Candy. I think Turkiye made Tibia Suite or something like that. TP is still up, mostly just leechers and wanna-be, copy-and-paste, amateur programmers, but a few of us still check around every once in a while. http://www.tpforums.org/
Gaudi Gabriev
07-01-2013, 03:10 AM
Didn't Ian make TPR? TibiaGG was the first thing I ever remember using, haha, and Candy. I think Turkiye made Tibia Suite or something like that. TP is still up, mostly just leechers and wanna-be, copy-and-paste, amateur programmers, but a few of us still check around every once in a while. http://www.tpforums.org/
Yeah, I know. I still check it every once in a while but since I am no programer I almost never comment.
Ian did make TPR. I also started when GG started, that autofishing ruled. I remember using most of the bots that where posted in there (the good ones, ofc).
azzamcrazza
07-20-2013, 10:06 AM
Loot Sorter
First of all, I would like to thank @Rydan (http://forums.xenobot.net/member.php?u=582). I used his item list from his loot sorter. The main difference between my sorter and his is that mine sorts to open backpacks.
Currently, the sorter only supports sorting between blue djinn, green djinn, rashid and "other" items. Adding more sortability is as easy as specifying an item list and a backpack title. To operate the script, you must first open a brocade backpack which has your loot in it (nest backpacks inside of it). Then, open blue, green, orange and yellow backpacks. Each of these should have a few nested backpacks as well - they will be opened once their parent is full.
Here's a video of the script in action:
http://www.youtube.com/watch?v=0SqfpibDBKE
MerchantsAndItems =
{
BlueDjinn = {"Magic Light Wand", "Orb", "Wand of Cosmic Energy", "Wand of Decay", "Wand of Draconia", "Wand of Dragonbreath", "Wand of Inferno", "Wand of Starstorm", "Wand of Voodoo", "Wand of Vortex", "Angelic Axe", "Blue Robe", "Bonelord Shield", "Boots of Haste", "Broadsword", "Butcher's Axe", "Crown Armor", "Crown Helmet", "Crown Legs", "Crown Shield", "Crusader Helmet", "Dragon Lance", "Dragon Shield", "Earth Spike Sword", "Earth War Hammer", "Energy Spike Sword", "Energy War Hammer", "Fiery Spike Sword", "Fiery War Hammer", "Fire Axe", "Fire Sword", "Glorious Axe", "Guardian Shield", "Ice Rapier", "Icy Spike Sword", "Icy War Hammer", "Noble Armor", "Obsidian Lance", "Queen's Sceptre", "Royal Helmet", "Shadow Sceptre", "Spike Sword", "Thaian Sword", "War Hammer"},
GreenDjinn = {"Ancient Shield", "Black Shield", "Bonebreaker", "Dark Armor", "Dark Helmet", "Dragon Hammer", "Dreaded Cleaver", "Earth Knight Axe", "Energy Knight Axe", "Fiery Knight Axe", "Giant Sword", "Haunted Blade", "Icy Knight Axe", "Knight Armor", "Knight Axe", "Knight Legs", "Mystic Turban", "Onyx Flail", "Poison Dagger", "Scimitar", "Serpent Sword", "Skull Staff", "Strange Helmet", "Titan Axe", "Tower Shield", "Vampire Shield", "Warrior Helmet", "Hailstorm Rod", "Moonlight Rod", "Mysterious Fetish", "Necrotic Rod", "Northwind Rod", "Snakebite Rod", "Springsprout Rod", "Strange Talisman", "Terra Rod", "Underworld Rod"},
Rashid = {"Abyss Hammer", "Amber Staff", "Ancient Amulet", "Assassin Dagger", "Bandana", "Beastslayer Axe", "Beetle Necklace", "Berserker", "Blacksteel Sword", "Blessed Sceptre", "Bone Shield", "Bonelord Helmet", "Brutetamer's Staff", "Castle Shield", "Chaos Mace", "Coconut Shoes", "Composite Hornbow", "Cranial Basher", "Crocodile Boots", "Crystal Mace", "Crystal Necklace", "Crystal Ring", "Crystal Sword", "Crystalline Armor", "Daramanian Mace", "Daramanian Waraxe", "Dark Shield", "Death Ring", "Demon Shield", "Demonbone Amulet", "Demonrage Sword", "Devil Helmet", "Diamond Sceptre", "Doll", "Dragon Scale Mail", "Dragon Slayer", "Dragonbone Staff", "Dreaded Cleaver", "Earth Cranial Basher", "Earth Dragon Slayer", "Earth Heroic Axe", "Earth Mystic Blade", "Earth Relic Sword", "Earth War Axe", "Elvish Bow", "Emerald Bangle", "Energy Cranial Basher", "Energy Dragon Slayer", "Energy Heroic Axe", "Energy Mystic Blade", "Energy Relic Sword", "Energy War Axe", "Epee", "Fiery Cranial Basher", "Fiery Dragon Slayer", "Fiery Heroic Axe", "Fiery Mystic Blade", "Fiery Relic Sword", "Fiery War Axe", "Flower Dress", "Flower Wreath", "Fur Boots", "Furry Club", "Glacier Amulet", "Glacier Kilt", "Glacier Mask", "Glacier Robe", "Glacier Shoes", "Gold Ring", "Golden Armor", "Golden Legs", "Guardian Halberd", "Hammer of Wrath", "Heavy Mace", "Heavy Machete", "Heavy Trident", "Heroic Axe", "Hibiscus Dress", "Icy Cranial Basher", "Icy Dragon Slayer", "Icy Heroic Axe", "Icy Mystic Blade", "Icy Relic Sword", "Icy War Axe", "Jade Hammer", "Krimhorn Helmet", "Leaf Legs", "Leopard Armor", "Leviathan's Amulet", "Light Shovel", "Lightning Boots", "Lightning Headband", "Lightning Legs", "Lightning Pendant", "Lightning Robe", "Lunar Staff", "Magic Plate Armor", "Magma Amulet", "Magma Boots", "Magma Coat", "Magma Legs", "Magma Monocle", "Mammoth Fur Cape", "Mammoth Fur Shorts", "Mammoth Whopper", "Mastermind Shield", "Medusa Shield", "Mercenary Sword", "Mystic Blade", "Naginata", "Nightmare Blade", "Noble Axe", "Norse Shield", "Orcish Maul", "Paladin Armor", "Pirate Boots", "Pirate Hat", "Pirate Knee Breeches", "Pirate Shirt", "Pirate Voodoo Doll", "Platinum Amulet", "Ragnir Helmet", "Relic Sword", "Ring of the Sky", "Ruby Necklace", "Ruthless Axe", "Sacred Tree Amulet", "Sapphire Hammer", "Scarab Amulet", "Scarab Shield", "Shockwave Amulet", "Silver Brooch", "Silver Dagger", "Skull Helmet", "Skullcracker Armor", "Spiked Squelcher", "Steel Boots", "Swamplair Armor", "Taurus Mace", "Terra Amulet", "Terra Boots", "Terra Hood", "Terra Legs", "Terra Mantle", "The Justice Seeker", "Tortoise Shield", "Vile Axe", "Voodoo Doll", "War Axe", "War Horn", "Witch Hat", "Wyvern Fang"},
}
BackpacksToSortTo =
{
BlueDjinn = "Blue Backpack",
GreenDjinn = "Green Backpack",
Rashid = "Orange Backpack",
Others = "Yellow Backpack",
Main = "Brocade Backpack"
}
function itemMoveHelper(contFrom, fromSpot, contTo)
print("Moving from %s spot %d to %s", contFrom:Name(), fromSpot, contTo:Name())
if (contTo:ItemCount() == contTo:ItemCapacity()) then --opens the next container
local openAt = contTo:ItemCount() - 1
if (Item.isContainer(contTo:GetItemData(openAt).id)) then
contTo:UseItem(openAt, true)
wait(1500)
else
print("No more room for items in %s. Please fix the problem and restart the script.", contTo:Name())
wait(99999999)
end
end
contFrom:MoveItemToContainer(fromSpot, contTo:Index(), contTo:ItemCapacity() - 1)
end
function itemFound(nameTable, itemId)
local itemName = string.upper(Item.GetName(itemId))
for _, name in pairs(nameTable) do
if (itemName == string.upper(name)) then
return true
end
end
return false
end
local error = false
local backpacks = {}
for merchant, bpName in pairs(BackpacksToSortTo) do
backpacks[merchant] = Container.GetByName(bpName)
if (not backpacks[merchant]:isOpen()) then
error = true
print("You must open a %s as your %s backpack. Please fix the problem and restart the script.", bpName, merchant)
break
end
end
if (not error) then
repeat
while (backpacks["Main"]:ItemCount() > 0) do
local item = backpacks["Main"]:GetItemData(0)
if (Item.isContainer(item.id) and backpacks["Main"]:ItemCount() == 1) then --open next backpack of loot
backpacks["Main"]:UseItem(backpacks["Main"]:ItemCount()-1, true)
wait(1000)
break
else --move it the loot
local foundBp = backpacks["Others"]
for merchant, _ in pairs(MerchantsAndItems) do
if (itemFound(MerchantsAndItems[merchant], item.id)) then
foundBp = backpacks[merchant]
break
end
end
itemMoveHelper(backpacks["Main"], 0, foundBp)
wait(500, 900)
end
end
until (backpacks["Main"]:ItemCount() == 0)
end
Sweet script bro, I'm editing it for creature products, could you please tell me what to do so that it drags ALL 1-100 creature product items occupying each slot instead of one at a time =)
Xparn
10-23-2013, 01:54 PM
Really nice with the loot sorter, however i wish from the yellow backpack it could be a new loot sorterer that sorts the warzones/esrik/yasir loot as well.
tadek67
12-24-2013, 08:02 AM
hiho, How i can do to mamalize bps in this script:
elseif (labelName == "bpOpen") then
Walker.Stop()
Self.CloseContainers()
wait(900,1000)
Self.OpenMainBackpack():OpenChildren(BP_GOLD, BP_LOOT)
Walker.Start()
end
end
Ty for help
Be care
markus28
01-10-2014, 11:36 PM
Hi guys, could someone help me? how can I do to make the "loot sorter" sort the loot from the inbox? or how to set the "inbox" as "main bp"?
Thank you very much in advance,
Markus
guwno
01-15-2014, 06:17 PM
Hello
I'm having a little trouble with exori ico / hur / exori / gran script.
Basically script works fine but sometimes my knight leaves monster at red hp or simply doesn't start to attack monster with full hp and runs further.
Here is the exact script i'm using:
http://pastebin.com/YdLDtL4h
I also tried that with all monsters listed after attack = {{"monster1", "monster2"}}
and with ..... ignoreparty=true, targetList={"monster1", "monster2"}
Is there any solution to this problem ?
bosmanxd
02-07-2014, 10:46 AM
Hi, Im looking for a script that will start using stone skin amulets when attacked by PK, any chance this is possible?
maniana1
02-14-2014, 11:01 PM
yo, I need script for safe exori, I mean when character is stucked by 8 monsters (monsters are not in targeting) and noone is on screen char use Exori. Ty :3
Tytanix123
05-10-2014, 12:08 PM
Hello im looking for a script who takes everything from counter to depot. Or if someone know how to make it moving crystal coins from counter on browse field to backpack in depot/main backpack. Thanks a lot.
billneon
06-05-2014, 08:39 PM
hee i have the loot sorter but i have multiple fur backpack as main and there are mine loots, but the loot in the next bp he only take loot from 1bp and put the other in the Other side bp and then close script? help?
soxodo
07-03-2014, 06:35 AM
i have problem
beston94
07-26-2014, 07:30 PM
hee i have the loot sorter but i have multiple fur backpack as main and there are mine loots, but the loot in the next bp he only take loot from 1bp and put the other in the Other side bp and then close script? help?
I've had that problem as well.
The thing about it is that you have to set the backpacks properly. Make sure that you set your backpacks like this: Open the loot backpack that needs to be sorted. Then your next backpack should be the last one. And when your script opens that one, that one also needs to have the next backpack last.
Another thing i've noticed is that if you have a lot of backpacks which are empty, as in 1 backpack is full then 4 or 5 in the middle are empty and the 6th one is full. Then it will throw backpack into orange backpack or whatever.
All in all it is a flawless script as long as you set it up properly. Props to Darkstar. I guess making the bot wasn't enough, he just keeps on working :D
With regards,
Beston94
masteroek
10-02-2014, 05:14 PM
Someone have script for withdraw items from inbox?
Zajechany Potem
12-23-2014, 06:01 AM
Awesome Script thanks alot!
Royal Adasiek
08-12-2015, 02:34 PM
Hello :) i need script lua . Healing for 280 Royal Paladin thank you :) exura , exura san , exura gran san
Sejfa
10-14-2015, 03:36 PM
Hej guys ,i need help with casino script.To remove golds and other things wath people throw on my locker to the depot or backpack? Some1 have it ? thanks :)
dekros
11-12-2015, 05:40 PM
DarkstaR
i want to use your sort item
but how i can add new npc? to sort?
kamilqq
11-14-2015, 10:16 PM
DarkstaR
i want to use your sort item
but how i can add new npc? to sort?
Hahahah xd
Kaliki
11-15-2015, 11:28 PM
local corpses = {
[5908] = {4173, 4011, 4025, 4047, 4052, 4057, 4062, 4112, 4212, 4321, 4324, 4327, 10352, 10356, 10360, 10364, 10368}, -- Obsidian Knife
[5942] = {4097, 4137, 8738} -- Blessed Wooden Stake
}
while true do
if (Self.ItemCount(5942) >= 1) and (Self.TargetID() <= 0) then
for y = -5, 5 do
for x = -7, 7 do
if table.contains(corpses[5942], Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id) then
Walker.Stop()
Looter.Stop()
Self.UseItemWithGround(5942, Self.Position().x + x, Self.Position().y + y, Self.Position().z)
wait(1200,1600)
Walker.Start()
Looter.Start()
end
end
end
end
if (Self.ItemCount(5908) >= 1) and (Self.TargetID() <= 0) then
for y = -5, 5 do
for x = -7, 7 do
if table.contains(corpses[5908], Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id) then
Walker.Stop()
Looter.Stop()
Self.UseItemWithGround(5908, Self.Position().x + x, Self.Position().y + y, Self.Position().z)
wait(1000,1200)
Walker.Start()
Looter.Start()
end
end
end
end
end
Got problem with skinner on wait it doesnot work so i wrote that script but when i execute it whole xeno crashes why?
dragiz
11-16-2015, 08:08 PM
There is a skinner built in if u rightclick in looter u can activate it =P
local corpses = {
[5908] = {4173, 4011, 4025, 4047, 4052, 4057, 4062, 4112, 4212, 4321, 4324, 4327, 10352, 10356, 10360, 10364, 10368}, -- Obsidian Knife
[5942] = {4097, 4137, 8738} -- Blessed Wooden Stake
}
while true do
if (Self.ItemCount(5942) >= 1) and (Self.TargetID() <= 0) then
for y = -5, 5 do
for x = -7, 7 do
if table.contains(corpses[5942], Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id) then
Walker.Stop()
Looter.Stop()
Self.UseItemWithGround(5942, Self.Position().x + x, Self.Position().y + y, Self.Position().z)
wait(1200,1600)
Walker.Start()
Looter.Start()
end
end
end
end
if (Self.ItemCount(5908) >= 1) and (Self.TargetID() <= 0) then
for y = -5, 5 do
for x = -7, 7 do
if table.contains(corpses[5908], Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id) then
Walker.Stop()
Looter.Stop()
Self.UseItemWithGround(5908, Self.Position().x + x, Self.Position().y + y, Self.Position().z)
wait(1000,1200)
Walker.Start()
Looter.Start()
end
end
end
end
end
Got problem with skinner on wait it doesnot work so i wrote that script but when i execute it whole xeno crashes why?
HEllo i looking for lua script for alarm when player on screen on spawn and when it leave spawn turn off alarm.
Can someone help me?
ctn2mb
12-22-2015, 11:00 PM
So I was using the Sorter... it works for Depot Box I but it won't work for II...
12:54 You must open a Depot Box II as your Main backpack. Please fix the problem and restart the script.
its open the same way i do Depot Box I. and I works.
mariorton
01-11-2016, 07:25 AM
best lua ever :cool:
fpemadeira
01-27-2016, 10:13 PM
Hey, may u help me ?
I try to use this script but it doesn't work.
20:12 XenoScript Error:
Script: Loot Sorter.lua
Line #: 3
Chunk: C:?Users?xx?DOCUME?1?XenoBot?Scripts??LOOTSO?1.LUA
Error: unexpected symbol near 'Â'
This is an error with user-input and should not be reported as a bug with XenoBot.
Someone can help me ?
fpemadeira
01-27-2016, 10:14 PM
Hey, may u help me ?
I try to use this script but it doesn't work.
20:12 XenoScript Error:
Script: Loot Sorter.lua
Line #: 3
Chunk: C:?Users?xx?DOCUME?1?XenoBot?Scripts??LOOTSO?1.LUA
Error: unexpected symbol near 'Â'
This is an error with user-input and should not be reported as a bug with XenoBot.
Someone can help me ?
Loot Sorter
First of all, I would like to thank @Rydan (http://forums.xenobot.net/member.php?u=582). I used his item list from his loot sorter. The main difference between my sorter and his is that mine sorts to open backpacks.
Currently, the sorter only supports sorting between blue djinn, green djinn, rashid and "other" items. Adding more sortability is as easy as specifying an item list and a backpack title. To operate the script, you must first open a brocade backpack which has your loot in it (nest backpacks inside of it). Then, open blue, green, orange and yellow backpacks. Each of these should have a few nested backpacks as well - they will be opened once their parent is full.
Here's a video of the script in action:
http://www.youtube.com/watch?v=0SqfpibDBKE
MerchantsAndItems =
{
BlueDjinn = {"Magic Light Wand", "Orb", "Wand of Cosmic Energy", "Wand of Decay", "Wand of Draconia", "Wand of Dragonbreath", "Wand of Inferno", "Wand of Starstorm", "Wand of Voodoo", "Wand of Vortex", "Angelic Axe", "Blue Robe", "Bonelord Shield", "Boots of Haste", "Broadsword", "Butcher's Axe", "Crown Armor", "Crown Helmet", "Crown Legs", "Crown Shield", "Crusader Helmet", "Dragon Lance", "Dragon Shield", "Earth Spike Sword", "Earth War Hammer", "Energy Spike Sword", "Energy War Hammer", "Fiery Spike Sword", "Fiery War Hammer", "Fire Axe", "Fire Sword", "Glorious Axe", "Guardian Shield", "Ice Rapier", "Icy Spike Sword", "Icy War Hammer", "Noble Armor", "Obsidian Lance", "Queen's Sceptre", "Royal Helmet", "Shadow Sceptre", "Spike Sword", "Thaian Sword", "War Hammer"},
GreenDjinn = {"Ancient Shield", "Black Shield", "Bonebreaker", "Dark Armor", "Dark Helmet", "Dragon Hammer", "Dreaded Cleaver", "Earth Knight Axe", "Energy Knight Axe", "Fiery Knight Axe", "Giant Sword", "Haunted Blade", "Icy Knight Axe", "Knight Armor", "Knight Axe", "Knight Legs", "Mystic Turban", "Onyx Flail", "Poison Dagger", "Scimitar", "Serpent Sword", "Skull Staff", "Strange Helmet", "Titan Axe", "Tower Shield", "Vampire Shield", "Warrior Helmet", "Hailstorm Rod", "Moonlight Rod", "Mysterious Fetish", "Necrotic Rod", "Northwind Rod", "Snakebite Rod", "Springsprout Rod", "Strange Talisman", "Terra Rod", "Underworld Rod"},
Rashid = {"Abyss Hammer", "Amber Staff", "Ancient Amulet", "Assassin Dagger", "Bandana", "Beastslayer Axe", "Beetle Necklace", "Berserker", "Blacksteel Sword", "Blessed Sceptre", "Bone Shield", "Bonelord Helmet", "Brutetamer's Staff", "Castle Shield", "Chaos Mace", "Coconut Shoes", "Composite Hornbow", "Cranial Basher", "Crocodile Boots", "Crystal Mace", "Crystal Necklace", "Crystal Ring", "Crystal Sword", "Crystalline Armor", "Daramanian Mace", "Daramanian Waraxe", "Dark Shield", "Death Ring", "Demon Shield", "Demonbone Amulet", "Demonrage Sword", "Devil Helmet", "Diamond Sceptre", "Doll", "Dragon Scale Mail", "Dragon Slayer", "Dragonbone Staff", "Dreaded Cleaver", "Earth Cranial Basher", "Earth Dragon Slayer", "Earth Heroic Axe", "Earth Mystic Blade", "Earth Relic Sword", "Earth War Axe", "Elvish Bow", "Emerald Bangle", "Energy Cranial Basher", "Energy Dragon Slayer", "Energy Heroic Axe", "Energy Mystic Blade", "Energy Relic Sword", "Energy War Axe", "Epee", "Fiery Cranial Basher", "Fiery Dragon Slayer", "Fiery Heroic Axe", "Fiery Mystic Blade", "Fiery Relic Sword", "Fiery War Axe", "Flower Dress", "Flower Wreath", "Fur Boots", "Furry Club", "Glacier Amulet", "Glacier Kilt", "Glacier Mask", "Glacier Robe", "Glacier Shoes", "Gold Ring", "Golden Armor", "Golden Legs", "Guardian Halberd", "Hammer of Wrath", "Heavy Mace", "Heavy Machete", "Heavy Trident", "Heroic Axe", "Hibiscus Dress", "Icy Cranial Basher", "Icy Dragon Slayer", "Icy Heroic Axe", "Icy Mystic Blade", "Icy Relic Sword", "Icy War Axe", "Jade Hammer", "Krimhorn Helmet", "Leaf Legs", "Leopard Armor", "Leviathan's Amulet", "Light Shovel", "Lightning Boots", "Lightning Headband", "Lightning Legs", "Lightning Pendant", "Lightning Robe", "Lunar Staff", "Magic Plate Armor", "Magma Amulet", "Magma Boots", "Magma Coat", "Magma Legs", "Magma Monocle", "Mammoth Fur Cape", "Mammoth Fur Shorts", "Mammoth Whopper", "Mastermind Shield", "Medusa Shield", "Mercenary Sword", "Mystic Blade", "Naginata", "Nightmare Blade", "Noble Axe", "Norse Shield", "Orcish Maul", "Paladin Armor", "Pirate Boots", "Pirate Hat", "Pirate Knee Breeches", "Pirate Shirt", "Pirate Voodoo Doll", "Platinum Amulet", "Ragnir Helmet", "Relic Sword", "Ring of the Sky", "Ruby Necklace", "Ruthless Axe", "Sacred Tree Amulet", "Sapphire Hammer", "Scarab Amulet", "Scarab Shield", "Shockwave Amulet", "Silver Brooch", "Silver Dagger", "Skull Helmet", "Skullcracker Armor", "Spiked Squelcher", "Steel Boots", "Swamplair Armor", "Taurus Mace", "Terra Amulet", "Terra Boots", "Terra Hood", "Terra Legs", "Terra Mantle", "The Justice Seeker", "Tortoise Shield", "Vile Axe", "Voodoo Doll", "War Axe", "War Horn", "Witch Hat", "Wyvern Fang"},
}
BackpacksToSortTo =
{
BlueDjinn = "Blue Backpack",
GreenDjinn = "Green Backpack",
Rashid = "Orange Backpack",
Others = "Yellow Backpack",
Main = "Brocade Backpack"
}
function itemMoveHelper(contFrom, fromSpot, contTo)
print("Moving from %s spot %d to %s", contFrom:Name(), fromSpot, contTo:Name())
if (contTo:ItemCount() == contTo:ItemCapacity()) then --opens the next container
local openAt = contTo:ItemCount() - 1
if (Item.isContainer(contTo:GetItemData(openAt).id)) then
contTo:UseItem(openAt, true)
wait(1500)
else
print("No more room for items in %s. Please fix the problem and restart the script.", contTo:Name())
wait(99999999)
end
end
contFrom:MoveItemToContainer(fromSpot, contTo:Index(), contTo:ItemCapacity() - 1)
end
function itemFound(nameTable, itemId)
local itemName = string.upper(Item.GetName(itemId))
for _, name in pairs(nameTable) do
if (itemName == string.upper(name)) then
return true
end
end
return false
end
local error = false
local backpacks = {}
for merchant, bpName in pairs(BackpacksToSortTo) do
backpacks[merchant] = Container.GetByName(bpName)
if (not backpacks[merchant]:isOpen()) then
error = true
print("You must open a %s as your %s backpack. Please fix the problem and restart the script.", bpName, merchant)
break
end
end
if (not error) then
repeat
while (backpacks["Main"]:ItemCount() > 0) do
local item = backpacks["Main"]:GetItemData(0)
if (Item.isContainer(item.id) and backpacks["Main"]:ItemCount() == 1) then --open next backpack of loot
backpacks["Main"]:UseItem(backpacks["Main"]:ItemCount()-1, true)
wait(1000)
break
else --move it the loot
local foundBp = backpacks["Others"]
for merchant, _ in pairs(MerchantsAndItems) do
if (itemFound(MerchantsAndItems[merchant], item.id)) then
foundBp = backpacks[merchant]
break
end
end
itemMoveHelper(backpacks["Main"], 0, foundBp)
wait(500, 900)
end
end
until (backpacks["Main"]:ItemCount() == 0)
end
Hey, may u help me ?
I try to use this script but it doesn't work.
20:12 XenoScript Error:
Script: Loot Sorter.lua
Line #: 3
Chunk: C:?Users?xx?DOCUME?1?XenoBot?Scripts??LOOTSO?1.LUA
Error: unexpected symbol near 'Â'
This is an error with user-input and should not be reported as a bug with XenoBot.
Someone can help me ?
playmate
01-27-2016, 10:19 PM
Hey, may u help me ?
I try to use this script but it doesn't work.
20:12 XenoScript Error:
Script: Loot Sorter.lua
Line #: 3
Chunk: C:?Users?xx?DOCUME?1?XenoBot?Scripts??LOOTSO?1.LUA
Error: unexpected symbol near 'Â'
This is an error with user-input and should not be reported as a bug with XenoBot.
Someone can help me ?
You have edited something and it went wrong. Copy the code above and paste into the .lua again and start over with editing your backpacks. I just used this script and it works fine.
fpemadeira
01-28-2016, 02:18 AM
You have edited something and it went wrong. Copy the code above and paste into the .lua again and start over with editing your backpacks. I just used this script and it works fine.
I just copied and pasted that.
What software do u use ?
Notepad ?
Elvang
01-28-2016, 02:40 AM
This thread is 3 years old.
playmate
01-28-2016, 10:00 AM
This thread is 3 years old.
Yes, so?
The script worked for me, not for him. I'm guessing it has nothing to do with the 12 hours inbetween our tries.
gloriousdays
02-03-2016, 04:46 PM
Hello, is possible to somehow use this script using the "new" depots?
For example: I have all my loots on depot slot 5 and I want to sort them using depot slots 6,7,8,9, etc...
Let me know, thanks.
playmate
02-14-2016, 12:57 AM
Hello, is possible to somehow use this script using the "new" depots?
For example: I have all my loots on depot slot 5 and I want to sort them using depot slots 6,7,8,9, etc...
Let me know, thanks.
It has been working somewhat for me. With somewhat I mean; only from "Depot Box I".
Yewchyn
02-22-2016, 01:33 AM
19:32 XenoScript Error:
Script: Antipush.lua
Line #: 1
Chunk: C:?Users?Russell?DOCUME?1?XenoBot?Scripts??Antipus h.lua
Error: unexpected symbol near '['
This is an error with user-input and should not be reported as a bug with XenoBot.
i got error with your anti push anyone can help me fix it?
bisadzi
02-22-2016, 03:36 AM
same here,help please !:P
worfie
03-14-2016, 07:24 PM
So first I have to sort through my whole depot of crap and throw it all into a brocade bp then this script will work???
Yepp, I'm QQing now. :P
hanyweka1
05-21-2016, 10:31 PM
mmm I try
alpha90
08-20-2016, 08:42 PM
Loot Sorter
First of all, I would like to thank @Rydan (http://forums.xenobot.net/member.php?u=582). I used his item list from his loot sorter. The main difference between my sorter and his is that mine sorts to open backpacks.
Currently, the sorter only supports sorting between blue djinn, green djinn, rashid and "other" items. Adding more sortability is as easy as specifying an item list and a backpack title. To operate the script, you must first open a brocade backpack which has your loot in it (nest backpacks inside of it). Then, open blue, green, orange and yellow backpacks. Each of these should have a few nested backpacks as well - they will be opened once their parent is full.
Here's a video of the script in action:
http://www.youtube.com/watch?v=0SqfpibDBKE
MerchantsAndItems =
{
BlueDjinn = {"Magic Light Wand", "Orb", "Wand of Cosmic Energy", "Wand of Decay", "Wand of Draconia", "Wand of Dragonbreath", "Wand of Inferno", "Wand of Starstorm", "Wand of Voodoo", "Wand of Vortex", "Angelic Axe", "Blue Robe", "Bonelord Shield", "Boots of Haste", "Broadsword", "Butcher's Axe", "Crown Armor", "Crown Helmet", "Crown Legs", "Crown Shield", "Crusader Helmet", "Dragon Lance", "Dragon Shield", "Earth Spike Sword", "Earth War Hammer", "Energy Spike Sword", "Energy War Hammer", "Fiery Spike Sword", "Fiery War Hammer", "Fire Axe", "Fire Sword", "Glorious Axe", "Guardian Shield", "Ice Rapier", "Icy Spike Sword", "Icy War Hammer", "Noble Armor", "Obsidian Lance", "Queen's Sceptre", "Royal Helmet", "Shadow Sceptre", "Spike Sword", "Thaian Sword", "War Hammer"},
GreenDjinn = {"Ancient Shield", "Black Shield", "Bonebreaker", "Dark Armor", "Dark Helmet", "Dragon Hammer", "Dreaded Cleaver", "Earth Knight Axe", "Energy Knight Axe", "Fiery Knight Axe", "Giant Sword", "Haunted Blade", "Icy Knight Axe", "Knight Armor", "Knight Axe", "Knight Legs", "Mystic Turban", "Onyx Flail", "Poison Dagger", "Scimitar", "Serpent Sword", "Skull Staff", "Strange Helmet", "Titan Axe", "Tower Shield", "Vampire Shield", "Warrior Helmet", "Hailstorm Rod", "Moonlight Rod", "Mysterious Fetish", "Necrotic Rod", "Northwind Rod", "Snakebite Rod", "Springsprout Rod", "Strange Talisman", "Terra Rod", "Underworld Rod"},
Rashid = {"Abyss Hammer", "Amber Staff", "Ancient Amulet", "Assassin Dagger", "Bandana", "Beastslayer Axe", "Beetle Necklace", "Berserker", "Blacksteel Sword", "Blessed Sceptre", "Bone Shield", "Bonelord Helmet", "Brutetamer's Staff", "Castle Shield", "Chaos Mace", "Coconut Shoes", "Composite Hornbow", "Cranial Basher", "Crocodile Boots", "Crystal Mace", "Crystal Necklace", "Crystal Ring", "Crystal Sword", "Crystalline Armor", "Daramanian Mace", "Daramanian Waraxe", "Dark Shield", "Death Ring", "Demon Shield", "Demonbone Amulet", "Demonrage Sword", "Devil Helmet", "Diamond Sceptre", "Doll", "Dragon Scale Mail", "Dragon Slayer", "Dragonbone Staff", "Dreaded Cleaver", "Earth Cranial Basher", "Earth Dragon Slayer", "Earth Heroic Axe", "Earth Mystic Blade", "Earth Relic Sword", "Earth War Axe", "Elvish Bow", "Emerald Bangle", "Energy Cranial Basher", "Energy Dragon Slayer", "Energy Heroic Axe", "Energy Mystic Blade", "Energy Relic Sword", "Energy War Axe", "Epee", "Fiery Cranial Basher", "Fiery Dragon Slayer", "Fiery Heroic Axe", "Fiery Mystic Blade", "Fiery Relic Sword", "Fiery War Axe", "Flower Dress", "Flower Wreath", "Fur Boots", "Furry Club", "Glacier Amulet", "Glacier Kilt", "Glacier Mask", "Glacier Robe", "Glacier Shoes", "Gold Ring", "Golden Armor", "Golden Legs", "Guardian Halberd", "Hammer of Wrath", "Heavy Mace", "Heavy Machete", "Heavy Trident", "Heroic Axe", "Hibiscus Dress", "Icy Cranial Basher", "Icy Dragon Slayer", "Icy Heroic Axe", "Icy Mystic Blade", "Icy Relic Sword", "Icy War Axe", "Jade Hammer", "Krimhorn Helmet", "Leaf Legs", "Leopard Armor", "Leviathan's Amulet", "Light Shovel", "Lightning Boots", "Lightning Headband", "Lightning Legs", "Lightning Pendant", "Lightning Robe", "Lunar Staff", "Magic Plate Armor", "Magma Amulet", "Magma Boots", "Magma Coat", "Magma Legs", "Magma Monocle", "Mammoth Fur Cape", "Mammoth Fur Shorts", "Mammoth Whopper", "Mastermind Shield", "Medusa Shield", "Mercenary Sword", "Mystic Blade", "Naginata", "Nightmare Blade", "Noble Axe", "Norse Shield", "Orcish Maul", "Paladin Armor", "Pirate Boots", "Pirate Hat", "Pirate Knee Breeches", "Pirate Shirt", "Pirate Voodoo Doll", "Platinum Amulet", "Ragnir Helmet", "Relic Sword", "Ring of the Sky", "Ruby Necklace", "Ruthless Axe", "Sacred Tree Amulet", "Sapphire Hammer", "Scarab Amulet", "Scarab Shield", "Shockwave Amulet", "Silver Brooch", "Silver Dagger", "Skull Helmet", "Skullcracker Armor", "Spiked Squelcher", "Steel Boots", "Swamplair Armor", "Taurus Mace", "Terra Amulet", "Terra Boots", "Terra Hood", "Terra Legs", "Terra Mantle", "The Justice Seeker", "Tortoise Shield", "Vile Axe", "Voodoo Doll", "War Axe", "War Horn", "Witch Hat", "Wyvern Fang"},
}
BackpacksToSortTo =
{
BlueDjinn = "Blue Backpack",
GreenDjinn = "Green Backpack",
Rashid = "Orange Backpack",
Others = "Yellow Backpack",
Main = "Brocade Backpack"
}
function itemMoveHelper(contFrom, fromSpot, contTo)
print("Moving from %s spot %d to %s", contFrom:Name(), fromSpot, contTo:Name())
if (contTo:ItemCount() == contTo:ItemCapacity()) then --opens the next container
local openAt = contTo:ItemCount() - 1
if (Item.isContainer(contTo:GetItemData(openAt).id)) then
contTo:UseItem(openAt, true)
wait(1500)
else
print("No more room for items in %s. Please fix the problem and restart the script.", contTo:Name())
wait(99999999)
end
end
contFrom:MoveItemToContainer(fromSpot, contTo:Index(), contTo:ItemCapacity() - 1)
end
function itemFound(nameTable, itemId)
local itemName = string.upper(Item.GetName(itemId))
for _, name in pairs(nameTable) do
if (itemName == string.upper(name)) then
return true
end
end
return false
end
local error = false
local backpacks = {}
for merchant, bpName in pairs(BackpacksToSortTo) do
backpacks[merchant] = Container.GetByName(bpName)
if (not backpacks[merchant]:isOpen()) then
error = true
print("You must open a %s as your %s backpack. Please fix the problem and restart the script.", bpName, merchant)
break
end
end
if (not error) then
repeat
while (backpacks["Main"]:ItemCount() > 0) do
local item = backpacks["Main"]:GetItemData(0)
if (Item.isContainer(item.id) and backpacks["Main"]:ItemCount() == 1) then --open next backpack of loot
backpacks["Main"]:UseItem(backpacks["Main"]:ItemCount()-1, true)
wait(1000)
break
else --move it the loot
local foundBp = backpacks["Others"]
for merchant, _ in pairs(MerchantsAndItems) do
if (itemFound(MerchantsAndItems[merchant], item.id)) then
foundBp = backpacks[merchant]
break
end
end
itemMoveHelper(backpacks["Main"], 0, foundBp)
wait(500, 900)
end
end
until (backpacks["Main"]:ItemCount() == 0)
end
This script still working (with the new Tibia updates)?
Maciusb
09-09-2016, 08:49 AM
Thanks u a lot !
Snkifador
09-12-2016, 07:30 AM
First of all, thanks for an amazing script. Works as intended.
Secondly, would anyone have the loot list for Yasir? The lists on this script are name based, would it work if it were item ID instead?
Thanks!
swazi
11-21-2016, 08:32 AM
is there an actual download for this im having troubles getting it to work this way, I know its me doing something wrong can someone assist me
a1020
12-23-2016, 06:56 PM
NEED scpriter pay transfer tibia coins fast
fillzori
12-27-2016, 08:56 PM
Is there a possibility to add like asura creature products to your speed looting script?
Lastu
01-03-2017, 02:34 PM
Nice sorter :D thanks
#edit
DarkstaR
I've added some npc's that buys creature products and items to ur script, u can update ur first post if u want to.
MerchantsAndItems =
{
BlueDjinn = {"Magic Light Wand", "Orb", "Wand of Cosmic Energy", "Wand of Decay", "Wand of Draconia", "Wand of Dragonbreath", "Wand of Inferno", "Wand of Starstorm", "Wand of Voodoo", "Wand of Vortex", "Angelic Axe", "Blue Robe", "Bonelord Shield", "Boots of Haste", "Broadsword", "Butcher's Axe", "Crown Armor", "Crown Helmet", "Crown Legs", "Crown Shield", "Crusader Helmet", "Dragon Lance", "Dragon Shield", "Earth Spike Sword", "Earth War Hammer", "Energy Spike Sword", "Energy War Hammer", "Fiery Spike Sword", "Fiery War Hammer", "Fire Axe", "Fire Sword", "Glorious Axe", "Guardian Shield", "Ice Rapier", "Icy Spike Sword", "Icy War Hammer", "Noble Armor", "Obsidian Lance", "Queen's Sceptre", "Royal Helmet", "Shadow Sceptre", "Spike Sword", "Thaian Sword", "War Hammer"},
GreenDjinn = {"Ancient Shield", "Black Shield", "Bonebreaker", "Dark Armor", "Dark Helmet", "Dragon Hammer", "Dreaded Cleaver", "Earth Knight Axe", "Energy Knight Axe", "Fiery Knight Axe", "Giant Sword", "Haunted Blade", "Icy Knight Axe", "Knight Armor", "Knight Axe", "Knight Legs", "Mystic Turban", "Onyx Flail", "Poison Dagger", "Scimitar", "Serpent Sword", "Skull Staff", "Strange Helmet", "Titan Axe", "Tower Shield", "Vampire Shield", "Warrior Helmet", "Hailstorm Rod", "Moonlight Rod", "Mysterious Fetish", "Necrotic Rod", "Northwind Rod", "Snakebite Rod", "Springsprout Rod", "Strange Talisman", "Terra Rod", "Underworld Rod"},
Rashid = {"Abyss Hammer", "Amber Staff", "Ancient Amulet", "Assassin Dagger", "Bandana", "Beastslayer Axe", "Beetle Necklace", "Berserker", "Blacksteel Sword", "Blessed Sceptre", "Bone Shield", "Bonelord Helmet", "Brutetamer's Staff", "Castle Shield", "Chaos Mace", "Coconut Shoes", "Composite Hornbow", "Cranial Basher", "Crocodile Boots", "Crystal Mace", "Crystal Necklace", "Crystal Ring", "Crystal Sword", "Crystalline Armor", "Daramanian Mace", "Daramanian Waraxe", "Dark Shield", "Death Ring", "Demon Shield", "Demonbone Amulet", "Demonrage Sword", "Devil Helmet", "Diamond Sceptre", "Doll", "Dragon Scale Mail", "Dragon Slayer", "Dragonbone Staff", "Dreaded Cleaver", "Earth Cranial Basher", "Earth Dragon Slayer", "Earth Heroic Axe", "Earth Mystic Blade", "Earth Relic Sword", "Earth War Axe", "Elvish Bow", "Emerald Bangle", "Energy Cranial Basher", "Energy Dragon Slayer", "Energy Heroic Axe", "Energy Mystic Blade", "Energy Relic Sword", "Energy War Axe", "Epee", "Fiery Cranial Basher", "Fiery Dragon Slayer", "Fiery Heroic Axe", "Fiery Mystic Blade", "Fiery Relic Sword", "Fiery War Axe", "Flower Dress", "Flower Wreath", "Fur Boots", "Furry Club", "Glacier Amulet", "Glacier Kilt", "Glacier Mask", "Glacier Robe", "Glacier Shoes", "Gold Ring", "Golden Armor", "Golden Legs", "Guardian Halberd", "Hammer of Wrath", "Heavy Mace", "Heavy Machete", "Heavy Trident", "Heroic Axe", "Hibiscus Dress", "Icy Cranial Basher", "Icy Dragon Slayer", "Icy Heroic Axe", "Icy Mystic Blade", "Icy Relic Sword", "Icy War Axe", "Jade Hammer", "Krimhorn Helmet", "Leaf Legs", "Leopard Armor", "Leviathan's Amulet", "Light Shovel", "Lightning Boots", "Lightning Headband", "Lightning Legs", "Lightning Pendant", "Lightning Robe", "Lunar Staff", "Magic Plate Armor", "Magma Amulet", "Magma Boots", "Magma Coat", "Magma Legs", "Magma Monocle", "Mammoth Fur Cape", "Mammoth Fur Shorts", "Mammoth Whopper", "Mastermind Shield", "Medusa Shield", "Mercenary Sword", "Mystic Blade", "Naginata", "Nightmare Blade", "Noble Axe", "Norse Shield", "Orcish Maul", "Paladin Armor", "Pirate Boots", "Pirate Hat", "Pirate Knee Breeches", "Pirate Shirt", "Pirate Voodoo Doll", "Platinum Amulet", "Ragnir Helmet", "Relic Sword", "Ring of the Sky", "Ruby Necklace", "Ruthless Axe", "Sacred Tree Amulet", "Sapphire Hammer", "Scarab Amulet", "Scarab Shield", "Shockwave Amulet", "Silver Brooch", "Silver Dagger", "Skull Helmet", "Skullcracker Armor", "Spiked Squelcher", "Steel Boots", "Swamplair Armor", "Taurus Mace", "Terra Amulet", "Terra Boots", "Terra Hood", "Terra Legs", "Terra Mantle", "The Justice Seeker", "Tortoise Shield", "Vile Axe", "Voodoo Doll", "War Axe", "War Horn", "Witch Hat", "Wyvern Fang", "Buckle", "Helmet of the lost", "Pair of iron fists"},
Esrik = {"Spiked Iron Ball", "Broken Halberd", "Broken Slicer", "High Guard Shoulderplates", "Bone Shoulderplate", "Zaogun Shoulderplates", "Warmaster's Wristguards", "Cursed Shoulder Spikes", "Broken Draken Mail", "Draken Wristbands", "Twin Hooks", "Zaoan Halberd", "Wailing Widow's Necklace", "Zaoan Shoes", "Drachaku", "Drakinata", "Zaoan Armor", "Zaoan Legs", "Sai", "Twiceslicer", "Zaoan Sword", "Guardian Boots", "Draken Boots", "Zaoan Helmet", "Elite Draken Mail"},
Lailene = {"Ethno Coat", "Spirit Cloak", "Focus Cape", "Batwing Hat", "Jade Hat", "Zaoan Robe", "Spellweaver's Robe"},
Alexander = {"Mind Stone", "Crystal Ball", "Spellbook of Enlightenment", "Spellbook of Warding", "Spellbook of Mind Control", "Spellbook of Lost Souls"},
Fiona = {"Glob of Mercury", "Glob of Acid Slime", "Glob of Tar", "Bola", "Carrion Worm Fang", "Red Hair Dye", "Cheese Cutter", "Elven Scouting Glass", "Miraculum", "Demonic Skeletal Hand", "Mad Froth", "Elven Astral Observer", " Gauze Bandage", "Small Flask of Eyedrops", "Spooky Blue Eye", "Dragon's Tail", "Bloody Dwarven Beard", "Geomancer's Staff", "Stone Wing", "Wimp Tooth Chain", "Lost Bracers", "Bone Fetish", "Elder Bonelord Tentacle", "Basalt Figurine", "Holy Ash", "Skull Shatterer", "Dragon Priest's Wandtip", "Basalt Fetish", "Bony Tail", "Brimstone Shell", "Broken Throwing Axe", "Lost Husher's Staff", "Weaver's Wandtip", "Wyvern Talisman", "Frosty Heart", "Lost Basher's Spike", "Spellsinger's Seal", "Deeptags", "Key to the Drowned Library", "Blood Tincture in a Vial", "Fiery Heart", "Brimstone Fangs", "Giant Eye", "Wyrm Scale", "Scythe Leg", "Hellspawn Tail", "Hideous Chunk", "Sea Serpent Scale", "Humongous Chunk", "Draken Sulphur", "Blazing Bone", "Mystical Hourglass", "Demon Horn", "Luminous Orb", "Vexclaw Talon", "Some Grimeleech Wings", "Pair of Hellflayer Horns"},
Telas = {"Coal", "Sulphurous Stone", "Broken Gladiator Shield", "Ancient Stone", "Gear Crystal", "Battle Stone", "Metal Spike", "Vein of Ore", "Pulverized Ore", "Crystalline Spikes", "War Crystal", "Gear Wheel", "Piece of Hell Steel", "Shiny Stone", "Crystal Pedestal", "Piece of Hellfire Armor", "Magma Clump", "Stone Nose", "Flintstone", "Crystal of Balance", "Crystal of Focus", "Crystal of Power", "Piece of Draconian Steel"},
Malunga = {"Pig Foot", "Poison Spider Shell", "Spider Fangs", "Cobra Tongue", "Damselfly Wing", "Swampling Moss", "Fir Cone", "Damselfly Eye", "Scorpion Tail", "Pile of Grave Earth", "Centipede Leg", "Hatched Rorc Egg", "Pelvis Bone", "Rotten Piece of Cloth", "Piece of Swampling Wood", "Dowser", "Horoscope", "Piece of Scarab Shell", "Mutated Flesh", "Poisonous Slime", "Half-Digested Piece of Meat", "Venison", "Ghoul Snack", "Tooth File", "Small Pitchfork", "Deepling Scales", "Tarantula Egg", "Half-Eaten Brain", "Incantation Notes", "Lancet", "Deepling Breaktime Snack", "Thorn", "Widow's Mandibles", "Haunted Piece of Wood", "Rorc Egg", "Swarmer Antenna", "Mutated Rat Tail", "Compound Eye", "Eye of a Deepling", "Vampire's Cape Chain", "Slime Mould", "Deepling Warts", "Bonecarving Knife", "Waspoid Wing", "Boggy Dreads", "Undead Heart", "Crawler Head Plating", "Pieces of Magic Chalk", "Tail of Corruption", "Petrified Scream", "Necromantic Robe", "Lizard Essence", "Waspoid Claw", "Spitter Nose", "Hair of a Banshee", "Deepling Ridge", "Essence of a Bad Dream", "Eye of Corruption", "Piece of Dead Brain", "Deepling Claw", "Spidris Mandible", "Hellhound Slobber", "Gland", "Strand of Medusa Hair", "Yielocks", "Yielowax", "Eye of a Weeper", "Scale of Corruption", "Ghastly Dragon Head", "Cliff Strider Claw", "Winged Tail", "Demonic Finger", "Tentacle Piece"},
Irmana = {"Piece of Crocodile Leather", "Badger Fur", "Wool", "Winter Wolf Fur", "Downy Feather", "Shaggy Tail", "Warwolf Fur", "Bunch Of Troll Hair", "Silky Fur", "Earflap", "Striped Fur", "Skunk Tail", "Lion's Mane", "Rope Belt", "Gloom Wolf Fur", "Geomancer's Robe", "Ghostly Tissue", "Purple Robe", "Tattered Piece of Robe", "Dirty Turban", "Safety Pin", "Thick Fur", "Frost Giant Pelt", "Jewelled Belt", "Necromantic Robe", "Black Wool", "Werewolf Fur", "Snake Skin", "Noble Turban"},
Tothdral = {"Flask of Embalming Fluid", "Elvish Talisman", "Dark Rosary", "Witch Broom", "Book of Prayers", "Cultish Robe", "Book of Necromantic Rituals", "Black Hood", "Strange Symbol", "Cultish Mask", "Unholy Bone", "Cultish Symbol", "Broken Key Ring"}
}
BackpacksToSortTo =
{
BlueDjinn = "Blue Backpack",
GreenDjinn = "Green Backpack",
Rashid = "Orange Backpack",
Esrik = "Purple Backpack",
Lailene = "Beach Backpack",
Alexander = "Camouflage Backpack",
Fiona = "Fur Backpack",
Telas = "Golden Backpack",
Malunga = "Grey Backpack",
Irmana = "Red Backpack",
Tothdral = "Glooth Backpack",
Others = "Yellow Backpack",
Main = "Brocade Backpack"
}
function itemMoveHelper(contFrom, fromSpot, contTo)
print("Moving from %s spot %d to %s", contFrom:Name(), fromSpot, contTo:Name())
if (contTo:ItemCount() == contTo:ItemCapacity()) then --opens the next container
local openAt = contTo:ItemCount() - 1
if (Item.isContainer(contTo:GetItemData(openAt).id)) then
contTo:UseItem(openAt, true)
wait(1500)
else
print("No more room for items in %s. Please fix the problem and restart the script.", contTo:Name())
wait(99999999)
end
end
contFrom:MoveItemToContainer(fromSpot, contTo:Index(), contTo:ItemCapacity() - 1)
end
function itemFound(nameTable, itemId)
local itemName = string.upper(Item.GetName(itemId))
for _, name in pairs(nameTable) do
if (itemName == string.upper(name)) then
return true
end
end
return false
end
local error = false
local backpacks = {}
for merchant, bpName in pairs(BackpacksToSortTo) do
backpacks[merchant] = Container.GetByName(bpName)
if (not backpacks[merchant]:isOpen()) then
error = true
print("You must open a %s as your %s backpack. Please fix the problem and restart the script.", bpName, merchant)
break
end
end
if (not error) then
repeat
while (backpacks["Main"]:ItemCount() > 0) do
local item = backpacks["Main"]:GetItemData(0)
if (Item.isContainer(item.id) and backpacks["Main"]:ItemCount() == 1) then --open next backpack of loot
backpacks["Main"]:UseItem(backpacks["Main"]:ItemCount()-1, true)
wait(1000)
break
else --move it the loot
local foundBp = backpacks["Others"]
for merchant, _ in pairs(MerchantsAndItems) do
if (itemFound(MerchantsAndItems[merchant], item.id)) then
foundBp = backpacks[merchant]
break
end
end
itemMoveHelper(backpacks["Main"], 0, foundBp)
wait(500, 900)
end
end
until (backpacks["Main"]:ItemCount() == 0)
end
swirujswiniotancz123
03-14-2017, 12:04 PM
thx ;))
Thorpoxdruider
03-29-2017, 02:45 AM
Could you make a script that beeps when a player with a given name or a GM appears on the screen? The Alarms of the xenobot itself whistle with anyone and I do not want this.
behattieu
05-02-2017, 04:02 AM
how can i get all items to main backpack ( all items put in depot :S )
behattieu
05-02-2017, 05:52 AM
i can't change my main = depot box II
12:48 You must open a Depot Box II as your Main backpack. Please fix the problem and restart the script.
please help
Thorpoxdruider
06-16-2017, 12:44 AM
Hello, I'm in need of a very simple script.lua, but I do not know how to do it. I need a Elder Druid script that always throws wild growth in front of me or 2 sqm away.
Where:
Me-#-#-@
FR-#-#-@
Me = myself
FR = my friend Master Sorcerer
# = free sqm
@ = wild growth
It's simple, I hope someone gets it for me.
gusttavo
06-20-2017, 04:36 AM
Hellow Darkstar.. Can you help me?
I play an server and I need use an ring for teleport to city.
It only works equiped and I want to use this only if my character is on pz zone or use this in x xx position.
the id o item is 12670, how do i do this?
timmy1210
09-20-2017, 09:31 AM
hey, how would i b able to keep this script active so i can use it as a withdrawer for a loot seller? everytime i leave dp or close the bp teh script closes? any help would b amazing thanks!
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.