Log in

View Full Version : Drop Gold if Cap below X



Mageq
05-04-2016, 08:19 PM
Hey, maybe someone needs a simple script to drop gold if cap is below a certain amount so here it is:



local MinCap = 300 -- Mininum cap


Module.New(" Drop gold", function(module)
if (Self.ItemCount(3031) > 100) and (Self.Cap() < MinCap) then
Self.DropItem(Self.Position().x, Self.Position().y, Self.Position().z, 3031)
module:Delay(1000)
end
end)

juras333
05-08-2016, 07:30 AM
thanks bro!

felipe93
05-24-2016, 06:02 AM
i put this in lua ??

Mageq
05-24-2016, 08:01 AM
I would help you, but you are not a monthly subscriber :)

felipe93
07-06-2016, 10:17 AM
working

callumbagshaw
07-06-2016, 03:09 PM
This allows you to change the item ID of the dropped item easily (it might not be just gold, it could be heavy but cheap items, like plate armors or war hammers for example.)



local MinCap = 300 -- Mininum cap
local itemID = 3031 -- Gold itemID is 3031, but this scrip can drop any item


Module.New("Drop items", function(module)
if (Self.Cap() < MinCap) then
Self.DropItem(Self.Position().x, Self.Position().y, Self.Position().z, itemID)
module:Delay(1000)
end
end)