Log in

View Full Version : Anyone Know if have scripts for paladin that: Dont Loot if have more than "x" arrows?



pvfaria2
04-20-2016, 04:35 PM
Anyone Know if have scripts for paladin that: Dont Loot if have more than "x" arrows? (For example)
Don't Loot if have more than x spears...

shadowart
04-20-2016, 08:44 PM
Most scripts don't have that feature (I don't know of any that do, but I might be wrong). This (http://forums.xenobot.net/showthread.php?39301-shAdOwArt-s-Lua-Scripts&p=457479&viewfull=1#post457479) stand-alone lua can be configured to do what you want. In the config you'll have to put your dynamicLootList to something like this:

dynamicLootList = {
["spear"] = {bp=1, when=function() return Self.ItemCount("spear") < 2 end},
}

pvfaria2
04-20-2016, 10:27 PM
Thank You very very much!I will do a test and i will do the feedback

pvfaria2
04-20-2016, 11:28 PM
OMG, this not works!But, Thanks! +)

dynamicLootList = {
["spear"] = {bp=1, when=function() return Self.ItemCount("spear") < 2 end},
}

pvfaria2
04-21-2016, 01:34 AM
It is because i am using the trial version:This msg appear:
22:32 XenoScript Error:
Script: Dont loot more than(Pala)teste.LUA
Line #: 2
Chunk: C:?Users?pv?DOCUME?1?XenoBot?Scripts??DONTLO?4.LUA
Error: table index is nil
This is an error with user-input and should not be reported as a bug with XenoBot.

yompa93
04-22-2016, 11:04 PM
Ammo = "spear" -- The ammo you are using
LootBelowAmmo = 10 -- Looting below this amount of ammo

Module.New('LootBelowAmmo', function(module)
if Self.ItemCount(Ammo) < LootBelowAmmo then
if not Looter.IsEnabled() then
Looter.Start()
end
else
if Looter.IsEnabled() then
Looter.Stop()
end
module:Delay(500)
end
end)

shadowart
04-22-2016, 11:36 PM
It is because i am using the trial version:This msg appear:
22:32 XenoScript Error:
Script: Dont loot more than(Pala)teste.LUA
Line #: 2
Chunk: C:?Users?pv?DOCUME?1?XenoBot?Scripts??DONTLO?4.LUA
Error: table index is nil
This is an error with user-input and should not be reported as a bug with XenoBot.
You edited the file incorrectly. Post your config and I'll fix it up for you. Or tell me the name of the xbst you want to use it with, which ammo you want to use and what threshold you want for it.




Ammo = "spear" -- The ammo you are using
LootBelowAmmo = 10 -- Looting below this amount of ammo

Module.New('LootBelowAmmo', function(module)
if Self.ItemCount(Ammo) < LootBelowAmmo then
if not Looter.IsEnabled() then
Looter.Start()
end
else
if Looter.IsEnabled() then
Looter.Stop()
end
module:Delay(500)
end
end)

That is not what he's asking for.

yompa93
04-22-2016, 11:51 PM
You edited the file incorrectly. Post your config and I'll fix it up for you. Or tell me the name of the xbst you want to use it with, which ammo you want to use and what threshold you want for it.


That is not what he's asking for.

so you're saying he doesnt want to loot arrows when above x arrows? All yours then :)

shadowart
04-22-2016, 11:59 PM
There's a difference between not looting spears when you have too many spears, and not looting anything at all when you have too many spears.

yompa93
04-23-2016, 12:10 AM
There's a difference between not looting spears when you have too many spears, and not looting anything at all when you have too many spears.

I know, and because it's over my capabilities, he's all yours. I simply misunderstood him.

pvfaria2
04-26-2016, 11:52 AM
thank, very much!Yes, I have a script which disable the looter when i have x spears or arrows, for example.
I want one which i can hunt a monster who drops spears or arrows and don't loot only this!Not all looter.

Shadowart, i wanna uses ever 11 Hunting Spears.
Can put direct on left hands?