Here I will be sharing some longer lua scripts.
LUA SCRIPTS
Printable View
Here I will be sharing some longer lua scripts.
LUA SCRIPTS
My standard HUD that displays exp rate and profits. No configuration is required and rings, soft boots and amulets counts towards waste.
The script will generate a config file in the Documents/Xenobot/Configs folder which can be used to change the value of items.
If your scripts are doing backpack resets its best if those are done in the presence of either a npc, a depot chest or a training statue. However, if your backpacks are full when you're doing it I should be able to ignore it anyway in most cases.
A speed looter that also optionally opens corpses next to you. You can set a minimum value and a minimum value/oz ratio and the script will automatically loot all items that exceed either of those values. Of course there's also an explicit loot list for items that have no NPC price, but it should not have to be very long at all.
The corpse opener works significantly better when you stand still so all in all it's much more useful for Knights. Of course you can run the script with the corpse opener disabled as well.
Finally, the corpse opener may not work on most OTs and it has problems with corpses that fall on top of ladders and rope spots.
This script dynamically changes your lootlist depending on cirumstance. It can, for example, be used to loot gold only over certain capacities.
You will need to supply the xbst with the original loot-list in the config. There is short-hand notation for expressing that you want an item to be looted only over a certain capacity and a more general notation for describing any circumstance.
One limitation is that conditionally looted items cannot be deposited by the built-in Deposit Items waypoint.
Hello shadowart.
I found one of your scripts that I wanted to use and have a question about some of the editable settings.
What would be or what I should select for the "local TmpFile =" ?
http://forums.xenobot.net/showthread...re-items-first
http://webcache.googleusercontent.co...&ct=clnk&gl=jp
Thanks
Do not touch anything after:
lua code:
-------------------------------------
---------- END OF SETTINGS ----------
-------------------------------------
Thanks for the reply.
So for example (I'm using one of your old ice witch temple script):
lua code:
local TmpFile = "../Tmp_"..Self.Name():gsub(" ", "_")
local xbst = "[Mage] Ice Witch Temple"
local RaresList = {"spider silk", "knight armor"}
local Timeout = 10 -- After how many seconds do we switch back to loot-last if we fail to loot the rare?
The first line, where the "local TmpFile =" is located. Should I edit something or no?
Thanks again...
That script is not from this thread. It is old and outdated and should not be used. Since Binary the built in looter now has an option for looting only rares first - that is what you should use.
The problem I'm facing is that most of the profit comes from the Spider Silks which has a value of 100 gold so it keeps ignoring it.
Thanks
Just change the HUD settings, you can add some other values if you need like spider silk ;)
Attachment 12986
Updated DynamicLooting to be compatible with the new looting modes from Binary. I also changed the script to use a separate config file so that you can use it with many characters simultaneously.
I love ur HUD man :)
However after ss is crashing :<
Would you be so kind and add some kind of auto screenshooter right before ss, so after relog I can still check my profit/loot before ss?
If it is possible ofc.
THX!
@shadowart would you be able to create a magic level trainer script? Like taking GMP from a backpack below you to put in main inventory and drop empty flasks as well. The rest can be done with xenobot itself.
Tomorrow morning I will try to catch error with HUD, sorry It takes so long I just didnt have time to bot lately :)
Fixed an issue in the HUD with rings sometimes getting counted a second time as they expired.
11:22 XenoScript Error:
Script: shAdOwHUD.lua
Line #: 454
Chunk: C:?Users?Bollo?DOCUME?1?XenoBot?Scripts??SHADOW?1. LUA
Error: attempt to perform arithmetic on field '?' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot.
Crashes randomly after a while.
#453 elseif count < 0 and not IsSupply(id) then
#454 totalNewCount = totalNewCount + (Item.isStackable(id) and 1 or new[id])
Any ideas?
Yo ive been using ur hud for a few weeks allready and without any problems, rlly nice work man, however i do have one question :p
when im on a pally and i hunt with spears it works fine but if i hunt with arrows the hud doesnt count each arrow as waste .. Could u help me fix this please? thx alot :)
True exp is nice on mages :D
here i got an interesting flaw on my druid
Attachment 13006
And nope these stones are not in the looter or even in my bp :p
(doing stone golems and mammoths on a 34 druid)
That's interesting. This bunch of prefixes that I got from an old speed looter are used to identify decayed corpses: "the", "demonic", "dead", "slain", "dissolved", "remains", "elemental". However, it turns out that for stone golems we also need the "split" prefix. So what happened in your case was that you missed looting a corpse, and then the next time you came back to it it had decayed and since "split" wasnt in the prefix list it couldnt tell that it was a corpse and counted the corpse items as if they had been in a backpack, then you walked away and the small stones disappeared so it added them to the waste list.
I've fixed the stone golem issue now.
Edit: I also removed the OT version. The script will now automatically detect if you're on an OT and adapt accordingly, so you don't have to bother with two files if you play both OTs and regular tibia.
it works perfect now thx man :)
This script logs and optionally replies to messages, both local and private. It can also play an alarm when you receive a message. It filters out low level gold sellers and checks for npcs and large number of players to avoid replying to or alarming for messages that likely weren't meant for you. However, the npc counter doesn't work on OTs.
Also, I managed to overwrite my ammunition fix for the HUD so if you downloaded it late yesterday or early today you might have gotten the old version. But now the right version is uploaded again.
Is it possible to make screen shooter at character lvl up?
Thx :)
Does the speed looter open bodies that are under other bodies?
Really like the auto-looter. Simple to setup and so good. The only problem i have with it is that when you loot gold it loot it very slow. It doesnt take the whole stack, it loots like 10-30 in one stack for every 100 if you know what i mean.
Edit: Not that big of a deal, just putting it out there
Getting this error... Any idea?
22:12 XenoScript Error:
Script: shAdOwHUD.lua
Line #: 454
Chunk: ...sers?CARLOS?1?DOCUME?1?XenoBot?Scripts??SHADOW? 1.LUA
Error: attempt to perform arithmetic on field '?' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot.