View Full Version : Dont loot "x" item if count of that item is "X"
Washand
04-05-2016, 07:06 AM
I need a easy script(i think, but i dont know how to do xd)..
For exaple:
If i loot "meats" and already got 3 meats on my bp, stop to loot meat, but if eat a meat and count is < 3 meat, loot it again.
I explain it? :v
Oscagi
04-05-2016, 07:39 AM
I need a easy script(i think, but i dont know how to do xd)..
For exaple:
If i loot "meats" and already got 3 meats on my bp, stop to loot meat, but if eat a meat and count is < 3 meat, loot it again.
I explain it? :v
Food = "Meat"
MaxFood = 3
Module.New('Dropper', function()
pos = Self.Position()
if (Self.ItemCount(Food) >= MaxFood) then
Self.DropItem(pos.x, pos.y, pos.z, Food, 1)
end
dropit:Delay(math.random(1500,3000))
end)
Its not what u said, but its usefull anyways, if u want stop looting X item u have to do a diferent xbst file.
This will drop 1 meat when u have more than MaxFood.
shadowart
04-05-2016, 07:57 AM
http://forums.xenobot.net/showthread.php?39301-shAdOwArt-s-Lua-Scripts&p=457479&viewfull=1#post457479
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.