Post by phr33k on Feb 3, 2006 17:26:12 GMT -5
Okay here is a set of 4 scripts that help out with:
Harvesting
Excavating
Logging
Mining
Now these aren't bots, you still have to be there and move the player around the map to find the H.E.L.M points, but they help make it a bit less tedious, here is the code for each situation.
Harvesting.lua
Excavating.lua
Logging.lua
Mining.lua
Basically it cycles through all the NPC's until it finds the right H.E.L.M point, Locks on, and starts trying to use the right item on it, until you get close enough.
If the FFXI.target_GetTargetDistance() function would be working correctly, this could be made even better, by not having to spam the /item "Tool" <t> until it actually does it, but until then, this is the best i can do
Enjoy.
Harvesting
Excavating
Logging
Mining
Now these aren't bots, you still have to be there and move the player around the map to find the H.E.L.M points, but they help make it a bit less tedious, here is the code for each situation.
Harvesting.lua
while true do
while string.find(FFXI.target_GetName(), "Harvesting", 1, true)==nil do
Control.control_SendString('/targetnpc')
Windower.script_Sleep(300)
end
Control.control_SendString('/lockon')
Windower.script_Sleep(500)
while FFXI.player_GetStatus()~=4 do
Control.control_SendString('/item "Sickle" <t>')
Windower.script_Sleep(750)
end
Windower.script_Sleep(1000)
end
Excavating.lua
while true do
while string.find(FFXI.target_GetName(), "Excavating", 1, true)==nil do
Control.control_SendString('/targetnpc')
Windower.script_Sleep(300)
end
Control.control_SendString('/lockon')
Windower.script_Sleep(500)
while FFXI.player_GetStatus()~=4 do
Control.control_SendString('/item "Pickaxe" <t>')
Windower.script_Sleep(750)
end
Windower.script_Sleep(1000)
end
Logging.lua
while true do
while string.find(FFXI.target_GetName(), "Logging", 1, true)==nil do
Control.control_SendString('/targetnpc')
Windower.script_Sleep(300)
end
Control.control_SendString('/lockon')
Windower.script_Sleep(500)
while FFXI.player_GetStatus()~=4 do
Control.control_SendString('/item "Hatchet" <t>')
Windower.script_Sleep(750)
end
Windower.script_Sleep(1000)
end
Mining.lua
while true do
while string.find(FFXI.target_GetName(), "Mining", 1, true)==nil do
Control.control_SendString('/targetnpc')
Windower.script_Sleep(300)
end
Control.control_SendString('/lockon')
Windower.script_Sleep(500)
while FFXI.player_GetStatus()~=4 do
Control.control_SendString('/item "Pickaxe" <t>')
Windower.script_Sleep(750)
end
Windower.script_Sleep(1000)
end
Basically it cycles through all the NPC's until it finds the right H.E.L.M point, Locks on, and starts trying to use the right item on it, until you get close enough.
If the FFXI.target_GetTargetDistance() function would be working correctly, this could be made even better, by not having to spam the /item "Tool" <t> until it actually does it, but until then, this is the best i can do
Enjoy.