PDA

View Full Version : Water elemental fishing script



nevader
11-19-2015, 03:17 PM
Hello, i need script that fish dead water elementals. Thanks.

shadowart
11-19-2015, 04:56 PM
Turn on the built-in skinner (under the looter). It will fish Water Elementals.

Foulwerp
11-20-2015, 01:44 PM
Does it fish ones you did not kill? For some reason I wrote this and I don't know why, I updated it a little. First one waits to fish unfishable ones, second one just fishes ones that are fishable as it sees them.

Module.New("Water Elemental Fisher", function()
Count = 0
for i = -7, 7 do
for j = -5, 5 do
p = Self.Position()
x = p.x + i
y = p.y + j
z = p.z
if Map.IsTileWalkable(x, y, z) then
if Map.GetTopUseItem(x, y, z).id == 4037 then
if Walker.IsEnabled() then
Walker.Stop()
end
Count = Count + 1
elseif Map.GetTopUseItem(x, y, z).id == 9582 then
Self.UseItemWithGround(3483, x, y, z)
wait(500 + Self.Ping())
end
end
end
end
if not Walker.IsEnabled() and Count == 0 then
Walker.Start()
end
end)

Module.New('Water Elemental Fisher', function()
for i = -7, 7 do
for j = -5, 5 do
p = Self.Position()
x = p.x + i
y = p.y + j
z = p.z
if Map.IsTileWalkable(x, y, z) then
if Map.GetTopUseItem(x, y, z).id == 9582 then
Self.UseItemWithGround(3483, x, y, z)
wait(500 + Self.Ping())
end
end
end
end
end)

shadowart
11-20-2015, 11:15 PM
Does it fish ones you did not kill? For some reason I wrote this and I don't know why, I updated it a little. First one waits to fish unfishable ones, second one just fishes ones that are fishable as it sees them.

Module.New("Water Elemental Fisher", function()
Count = 0
for i = -7, 7 do
for j = -5, 5 do
p = Self.Position()
x = p.x + i
y = p.y + j
z = p.z
if Map.IsTileWalkable(x, y, z) then
if Map.GetTopUseItem(x, y, z).id == 4037 then
if Walker.IsEnabled() then
Walker.Stop()
end
Count = Count + 1
elseif Map.GetTopUseItem(x, y, z).id == 9582 then
Self.UseItemWithGround(3483, x, y, z)
wait(500 + Self.Ping())
end
end
end
end
if not Walker.IsEnabled() and Count == 0 then
Walker.Start()
end
end)

Module.New('Water Elemental Fisher', function()
for i = -7, 7 do
for j = -5, 5 do
p = Self.Position()
x = p.x + i
y = p.y + j
z = p.z
if Map.IsTileWalkable(x, y, z) then
if Map.GetTopUseItem(x, y, z).id == 9582 then
Self.UseItemWithGround(3483, x, y, z)
wait(500 + Self.Ping())
end
end
end
end
end)
I'm not sure, but I suspect that the built in one won't fish other people's corpses so there may be some advantage in running a lua script.