Quote Originally Posted by pvfaria2 View Post
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.

Quote Originally Posted by yompa93 View Post
Code:
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.