PDA

View Full Version : Obsidian knife script



l4z
12-11-2015, 04:06 PM
Like in title.

local corpses = {
[5908] = {4173, 4011, 4025, 4047, 4052, 4057, 4062, 4112, 4212, 4321, 4324, 4327, 10352, 10356, 10360, 10364, 10368}, -- Obsidian Knife
[5942] = {4097, 4137} -- obsidian knife
}

Module.New('skinner or duster', function(module)
if (Self.ItemCount(5942) >= 1) and (Self.TargetID() <= 0) then
for y = -5, 5 do
for x = -7, 7 do
if table.contains(corpses[5942], Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id) then
Walker.Stop()
Looter.Stop()
Self.UseItemWithGround(5942, Self.Position().x + x, Self.Position().y + y, Self.Position().z)
module:Delay(1400)
Walker.Start()
Looter.Start()
end
end
end
end
if (Self.ItemCount(5908) >= 1) and (Self.TargetID() <= 0) then
for y = -5, 5 do
for x = -7, 7 do
if table.contains(corpses[5908], Map.GetTopUseItem(Self.Position().x + x, Self.Position().y + y, Self.Position().z).id) then
Walker.Stop()
Looter.Stop()
Self.UseItemWithGround(5908, Self.Position().x + x, Self.Position().y + y, Self.Position().z)
module:Delay(1400)
Walker.Start()
Looter.Start()
end
end
end
end
end)

This script is not working propery. Can someone help?

arthurviolence
12-11-2015, 11:17 PM
We currently have a skinner in the looter, is it bugged in some way to generate the need for a skinner script?

l4z
12-12-2015, 10:40 AM
Oh didnt know. Thanks arthurviolence.

sequeladass
12-28-2015, 06:33 PM
sorry didnt understand
is the script above working?

Jeffersonruiz
05-03-2016, 08:11 AM
As adding a label to that function? to run alone with a label, I hope your answer thanks!

Pat
06-03-2017, 05:37 AM
Thanks - I can't get the bot function to work properly. When set to passive it tries and fails to skin instantly. When I set it to wait it doesn't wait long enough...