Advertisement
MrTrala

Fishing (Public V)

Aug 21st, 2016
519
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.83 KB | None | 0 0
  1. --[[
  2.     Fishing for ArchLightOnline
  3.     Version 1.3.1 -- Public Version
  4.     Created by Mr Trala
  5.  
  6. Instructions;
  7. If you have your bait in a BP be sure to always have that backpack opened so Xeno can count them.
  8. That's it! just run it and have fun.
  9.  
  10. Change Log;
  11. 1.3 -- First stable version.
  12. ]]
  13.  
  14. config = {
  15.     IDTO = 5553, -- Id of "small fish".
  16.     RodID = 9306, -- Your rod ID.  
  17. }
  18.  
  19. function ALL()
  20.     if Self.ItemCount(939) >= 1 then
  21.         FishBAIT()
  22.     else
  23.         wait(3000)
  24.         print("Out of Bait!")
  25.         alert()
  26.     end
  27. end
  28.  
  29. function FishBAIT()
  30. local pos = Self.Position()
  31.     for y = -7, 7 do
  32.         for x = -7, 7 do
  33.             if Map.GetTopUseItem(pos.x + x, pos.y + y, pos.z).id == config.IDTO then
  34.                 Self.UseItemWithGround(config.RodID, pos.x + x, pos.y + y, pos.z)  
  35.             end
  36.         end
  37.    end
  38.    wait(1000, 1500)
  39. end
  40. registerEventListener(TIMER_TICK, "ALL")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement