PDA

View Full Version : When item X > droped.



Elizabeth
04-12-2016, 04:25 AM
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...

yompa93
04-12-2016, 08:45 AM
something like this maybe



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)

Gluben
04-13-2016, 06:00 AM
something like this maybe



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)


Hey I would need the same script, but for itemid 12724 - The script won't recognize the name of the item for me.

Gluben
04-13-2016, 07:15 AM
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.

Elizabeth
04-26-2016, 11:39 PM
something like this maybe



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)


I have 300 mana potions and scripts don't droped potions, why? :(

Oscagi
04-27-2016, 05:27 AM
I have 300 mana potions and scripts don't droped potions, why? :(



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.

Elizabeth
04-27-2016, 02:08 PM
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.

Ok, this is work, thank u brother ;)

yompa93
04-28-2016, 09:07 PM
I have 300 mana potions and scripts don't droped potions, why? :(

Did you change the mana potions to the ones you're using ?
Well, this would also work if the ID is the problem:


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)

Elizabeth
04-28-2016, 10:37 PM
Did you change the mana potions to the ones you're using ?
Well, this would also work if the ID is the problem:


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)


Yep, i was changed, but don't work.
Fortunately Oscagi helped.

Again thanks all for the desire. :)