Pooman
06-19-2016, 12:36 AM
Hello. I'm looking for ice fishing script. I know someone made it while ago, but I cannot find it anymore. I am not a scripter, so please if you have spare time help me. Thank you.
Pooman
06-20-2016, 12:50 AM
Allright I never programed before, so you can call me noob and I won't deny. But I would like to close this thread succesfully. So while I was searching forum for clues I found post which send me back to my computer folder to find documentary. Where i found this:
function Self.UsePick(x, y, z, openhole)
openhole = openhole or false
local openholeids = {394}
local closedholeids = {351, 352, 353, 354, 355, 372}
local itemid = false
for _, id in ipairs({3456, 9594, 9596, 9598}) do
if (Self.ItemCount(id) > 0) then
itemid = id
break
end
end
if (itemid) then
if (openhole) then
while (Self.ItemCount(itemid) > 0 and not table.contains(openholeids, Map.GetTopUseItem(x, y, z).id) and table.contains(closedholeids, Map.GetTopUseItem(x, y, z).id)) do
Self.UseItemWithGround(itemid, x, y, z)
wait(1000, 1500)
end
if (table.contains(openholeids, Map.GetTopUseItem(x, y, z).id)) then
return true
end
else
Self.UseItemWithGround(itemid, x, y, z)
wait(1000, 1500)
return true
end
end
return false
end
Now, as I told you I'm not a scripter, but I guess this is what would have to come first in script right?
1. Picking hole
2. Using fisinh rod on a hole
3. Keep using till (what? cap changes = fish cought?)
But here comes my bigger question, at the beginning of the funcion we declare x,y,z coordinates, and it is cool, but I rather would like to have my lua script neutral for all coordinates. So I set up my walker, script find hole, stops walker, use pick, use fishing rod, start walker. Is it possible, and if not, where can I find coordinates?
Thank you for your help, and sory for nazi grammar
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.