Advertisement
CrazySwe

AutoFisher Contest @ XB

Nov 2nd, 2012
449
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.63 KB | None | 0 0
  1. -- Made By CrazySwe
  2. local WATER_FISH = {4597, 4598, 4599, 4600, 4601, 4602}
  3. while (true) do
  4.     local pos = Self.Position()
  5.     local FishTiles = {}
  6.     for x = -7, 7 do
  7.         for y = -5, 5 do
  8.             local TileID = Map.GetTopUseItem(pos.x + x, pos.y + y, pos.z).id
  9.             if (table.contains(WATER_FISH, TileID)) then
  10.                 TilePos = {x = pos.x + x, y = pos.y + y, z = pos.z}
  11.                 table.insert(FishTiles, TilePos)
  12.             end
  13.         end
  14.     end
  15.     for _,t in ipairs(FishTiles) do
  16.         local TileID = Map.GetTopUseItem(t.x, t.y, t.z).id
  17.         repeat
  18.         Self.UseItemWithGround(3483, t.x, t.y, t.z)
  19.         wait(1000)
  20.         until(Map.GetTopUseItem(t.x, t.y, t.z).id ~= TileID)
  21.     end
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement