Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Fishing (normal rod) for ArchLightOnline
- Version 1.0 -- Public Version
- Created by Mr Trala
- Instructions; Keep the backpack where you have your worms always open.
- ]]
- config = {
- Waters = {4599, 4600, 4597, 4598, 4611, 4609, 4602} , -- Ids of water to fish.
- RodID = 3483, -- Your rod ID.
- Drop = {3578} -- Just put the item ids you want to throw away
- }
- local version = '1.1a'
- function ALL()
- if Self.ItemCount(3492) >= 1 then
- FishBAIT()
- else
- wait(1000)
- alert()
- print('Out of Worms')
- end
- if Self.ItemCount(3578) >= 3 then
- Drop()
- end
- end
- function FishBAIT()
- local pos = Self.Position()
- for y = -7, 7 do
- for x = -7, 7 do
- if table.contains(config.Waters, Map.GetTopUseItem(pos.x + x, pos.y + y, pos.z).id) then
- Self.UseItemWithGround(config.RodID, pos.x + x, pos.y + y, pos.z)
- end
- end
- end
- wait(1000, 1500)
- end
- function Drop()
- local p = Self.Position()
- for _, n in pairs(config.Drop) do
- if Self.ItemCount(n) >= 1 then
- Self.DropItem(p.x, p.y, p.z, n)
- end
- end
- end
- registerEventListener(TIMER_TICK, "ALL")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement