Hello my friend, i need one script.
* When item on ID (238) or name (mana potions) is more than 300+ my bot drop 1 each.
This is impossible?
Please healp...
Hello my friend, i need one script.
* When item on ID (238) or name (mana potions) is more than 300+ my bot drop 1 each.
This is impossible?
Please healp...
something like this maybe
Code:Manas = "Mana Potion" DropManasAbove = 300 AmountToDrop = 1 Module.New('DropPots', function(module) if Self.ItemCount(Item.GetID(Manas)) > DropManasAbove then Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, Manas, AmountToDrop) end module:Delay(1000,1500) end)
lua code:
local idlist = "12724" -- id of item to drop
Module.New("drop", function()
Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, idlist)
wait(5000)
end)
This should work, just change the id to the empty manas you want to drop and it will try to drop them every 5 seconds. Not only if you have above 300 though.
lua code:
ManaID = 238 -- 238 = GMP
DropManasAbove = 300
AmountToDrop = 1
Module.New('DropPots', function(module)
if Self.ItemCount(ManaID) > DropManasAbove then
Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, ManaID, AmountToDrop)
end
module:Delay(1000,1500)
end)
Try this, I just changed Mana = 'Name', for the ID and maybe the problem was on Self.DoopItem() u had the name of mana and not the id, but im not sure.
Did you change the mana potions to the ones you're using ?
Well, this would also work if the ID is the problem:
Code:Manas = "Great Mana Potion" ManaID = Item.GetID(Manas) DropManasAbove = 90 AmountToDrop = 1 Module.New('DropPots', function(module) if Self.ItemCount(ManaID) > DropManasAbove then Self.DropItem(Self.Position().x,Self.Position().y,Self.Position().z, ManaID, AmountToDrop) end module:Delay(1000,1500) end)
Last edited by yompa93; 04-28-2016 at 09:26 PM.