Code: Select all
<option name="HARVEST_DISTANCE" value="200" />
I have been playing with this for the last 2 hours
Code: Select all
local _bag = player:findNearestNameOrId("Mysterious Bag")
if _bag then
playalarm()
local _dist = distance(player.X,player.Z,_bag.X,_bag.Z)
local filename = getExecutionPath() .. "/logs/giftbag.log";
local file, err = io.open(filename, "a+");
if file then
file:write("Date: "..os.date().." ".._dist.." scout\n")
file:close();
end
player:target(_bag.Address);
player:target_Object(_bag.Id,nil,true,true)
yrest(1000)
player:target_Object(_bag.Id,nil,true,true)
yrest(1000)
end
Going with the theory people don't know about the bags or just don't see them I did this up as a WP, basically just ride around the map not worrying about killing things and if there is a bag within memory range the alarm will sound and it's coords will print on MM.
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints>
<onLoad>
while (true) do
local _bag = player:findNearestNameOrId("Mysterious Bag")
if _bag then
playalarm()
print("X=".._bag.X.." Z=".._bag.Z)
yrest(5000)
end
yrest(1000)
end
</onLoad>
</waypoints>
I did that after 4 hours of farming and not 1 bag.