Advertisement
MrTrala

Fishing (Public V)(NormalV)

Aug 22nd, 2016
404
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.09 KB | None | 0 0
  1. --[[
  2.     Fishing (normal rod) for ArchLightOnline
  3.     Version 1.0 -- Public Version
  4.     Created by Mr Trala
  5.    
  6. Instructions; Keep the backpack where you have your worms always open.
  7. ]]
  8.  
  9. config = {
  10.     Waters = {4599, 4600, 4597, 4598, 4611, 4609, 4602} , -- Ids of water to fish.
  11.     RodID = 3483, -- Your rod ID.  
  12.     Drop = {3578} -- Just put the item ids you want to throw away
  13. }
  14.  
  15.  
  16. local version = '1.1a'
  17. function ALL()
  18.     if Self.ItemCount(3492) >= 1 then
  19.         FishBAIT()
  20.     else
  21.         wait(1000)
  22.         alert()
  23.         print('Out of Worms')
  24.     end
  25.    
  26.     if Self.ItemCount(3578) >= 3 then
  27.         Drop()
  28.     end
  29. end
  30.  
  31. function FishBAIT()
  32. local pos = Self.Position()
  33.     for y = -7, 7 do
  34.         for x = -7, 7 do
  35.             if table.contains(config.Waters, Map.GetTopUseItem(pos.x + x, pos.y + y, pos.z).id) then
  36.                 Self.UseItemWithGround(config.RodID, pos.x + x, pos.y + y, pos.z)  
  37.             end
  38.         end
  39.    end
  40.    wait(1000, 1500)
  41. end
  42.  
  43. function Drop()
  44. local p = Self.Position()
  45.     for _, n in pairs(config.Drop) do
  46.         if Self.ItemCount(n) >= 1 then
  47.             Self.DropItem(p.x, p.y, p.z, n)
  48.         end
  49.     end
  50. end
  51.  
  52. registerEventListener(TIMER_TICK, "ALL")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement