PDA

View Full Version : Using item from ground



Triniak
03-06-2016, 02:51 PM
Hello, Iam botting minotaur plain East and i need action to collecting juicy roots in Oramond quest to get points to task, can someone help to make action. I was tried to do this but its no working. I think its will be few lines of scrit with two action, first Map.GetTopUseItem to find trees and Self.UseItemFromGround to use it but i dont know how i should write scritp to work corectly. Sorry for my Englisz

Tom

krille09
03-06-2016, 05:43 PM
Self.UseItemFromGround(X, Y, Z)


It's not that hard, just put a stand next to it, and a one liner after that...

There are fancy scripts but cba to explain it, this above script works just fine...

Triniak
03-06-2016, 08:05 PM
So i must edit whole script, find milion of waypoints a paste this script? I need action to do this, like using fishing rod on dead water elementals. Can someone help me?

Triniak
03-07-2016, 12:44 AM
I find it!

local itemID = {21104} -- ItemID to be picked up
Module.New('lootFromGround', function(module)
if (Self.TargetID() <= 0) then
for y = -5, 5 do
for x = -7, 7 do
if table.contains(itemID, Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id) then
Cavebot.Stop()
Self.UseItemFromGround(Self.Position().x + x, Self.Position().y + y, Self.Position().z)
wait(1000)
Cavebot.Start()
module:Delay(math.random(1000))
end
end
end
end
end)