PDA

View Full Version : Help me with script



ajkuja
01-31-2016, 12:28 PM
I need help with script.
Need script to used "Slime Gobbler" on "slime"

Merre
01-31-2016, 12:52 PM
local GROUND_MOULD = {12063,12061,12075,12076}

while (true) do
for x = -7, 7, 1 do
for y = -5, 5, 1 do
local item = Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z)
if (table.contains(GROUND_MOULD, item.id)) then
Self.UseItemWithGround(12077, Self.Position().x + x, Self.Position().y + y, Self.Position().z)
wait(7000,8000)
end
end
end
end

Can't remember who made it and don't know if it's still working

yaraforce
02-09-2016, 04:10 PM
local GROUND_MOULD = {12063,12061,12075,12076}

while (true) do
local item = Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z)
for x = -7, 7, 1 do
for y = -5, 5, 1 do

if (table.contains(GROUND_MOULD, item.id)) then
Self.UseItemWithGround(12077, Self.Position().x + x, Self.Position().y + y, Self.Position().z)
wait(7000,8000)
end
end
end
end

Can't remember who made it and don't know if it's still working


Error: attempt to perform arithmetic on global 'x' (a nil value)
This is an error with user-input and should not be reported as a bug with XenoBot.

Merre
02-09-2016, 04:18 PM
Edited it try it now

yaraforce
02-10-2016, 04:43 AM
Edited it try it now

ty bro