maniek11
01-24-2016, 01:23 PM
Hello
I search script to catch mount ...
For ex. Off walker and targeting and use giant shrimp on crustacea gigantica, someone have it?
Jontor
01-24-2016, 05:38 PM
Didn't test it, should work
local mountItem = "giant shrimp"
local mountName = "crustacea gigantica"
function findItem(item)
for i = 0, 16 do
if (getContainerOpen(i)) then
for spot = 0, i:ItemCount() - 1 do
local data = i:GetItemData(spot).id
if (data == Item.GetID(mountItem)) then
return i, spot
end
end
end
end
return nil
end
while true do
for n, c in Creature.iMonsters() do
if (string.lower(n) == string.lower(mountName)) then
local amount = Self.ItemCount(mountItem)
Cavebot.Stop()
while (amount == Self.ItemCount(mountItem) and c:isOnScreen()) do
local container, spot = findItem(mountItem)
if (not container or not spot) then
return
end
container:UseItemWithCreature(spot, c:ID())
end
Cavebot.Start()
end
end
wait(1000)
end
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.