PDA

View Full Version : Help with autofishing script lua.



donlimpio
02-20-2016, 11:08 AM
Hello.
Can someone help with autofishing script lua. ?
Now i use this one:


Module.New('Auto Fisher', function(module)
if (Self.Cap() > 35 and Self.ItemCount("worm") >= 0) then
for a=-7,7 do
p=Self.Position()
for b=-5,5 do
if(table.isStrIn({4597,4598,4599,4600,4601,4602},g etTileUseID(p.x+a,p.y+b,p.z).id))then
selfUseItemWithGround(3483,p.x+a,p.y+b,p.z)
module: Delay(1500)
end
end
end
end
end)

Сan somebody write or change the script so that he began fishing when free Cap > 35(for example), and fished up until the Cap is reduced to 10(for example). Problem with a script that is written on top of that he begins to fish when Cap more than 35, but he fishes until Cap will not end, and sometimes fish remains under the character.

p.s I use trial version now and cant use "Tools".

donlimpio
02-20-2016, 04:33 PM
up !!!!!

blah88
02-21-2016, 02:57 PM
Module.New('Auto Fisher', function(module)
if (Self.Cap() > 10 and Self.ItemCount("worm") >= 1) then
for a=-7,7 do
p=Self.Position()
for b=-5,5 do
if (Self.Cap() > 35) then
if(table.isStrIn({4597,4598,4599,4600,4601,4602},g etTileUseID(p.x+a,p.y+b,p.z).id))then
selfUseItemWithGround(3483,p.x+a,p.y+b,p.z)
module:Delay(100)
end
end
end
end
end
end)

Questarn
06-17-2017, 08:21 PM
Module.New('Auto Fisher', function(module)
if (Self.Cap() > 10 and Self.ItemCount("worm") >= 1) then
for a=-7,7 do
p=Self.Position()
for b=-5,5 do
if (Self.Cap() > 35) then
if(table.isStrIn({4597,4598,4599,4600,4601,4602},g etTileUseID(p.x+a,p.y+b,p.z).id))then
selfUseItemWithGround(3483,p.x+a,p.y+b,p.z)
module:Delay(100)
end
end
end
end
end
end)


THanks, works perfectly ;)