<?xml version="1.0" encoding="utf-8"?><waypoints><onLoad>
local qua=0
changeProfileOption("HARVEST_DISTANCE", 40)
changeProfileOption("ANTI_KS", false)
changeProfileOption("PATH_TYPE", "wander")
changeProfileOption("WANDER_RADIUS", 0)
changeProfileOption("AUTO_TARGET", false)
changeProfileOption("USE_SLEEP_AFTER_RESUME", true)

while (true) do

    while (true) do
        if player:harvest(222222) then -- item id to collect example
            yrest(3600)
        elseif player:harvest(222222) then
            yrest(3600)
        end
       
        qua = tonumber(RoMScript("GetBagItemCount(111111);")) -- item it in bag example
        if qua == nil then
            elseif qua > 9 then
                cprintf(cli.yellow, "\ngot it " .. qua);
            break;
        end
    end
    yrest(400)
   
    RoMScript("RequestTrade('party1');") -- person whoch we want give trade (and give items at 1st bag slot, must be in party at 1st position)
    yrest(2000)
    ItemInfo = RoMScript("GetBagItemInfo(1);")
    RoMScript("PickupBagItem("..tonumber(ItemInfo)..");")
    yrest(500)
    RoMScript("ClickTradeItem(1);")
    yrest(800)
    RoMScript("AcceptTrade('charater_name_who_give_us_trade');") -- change this !
    yrest(500)
    RoMScript("AcceptTrade('i.e._2nd_char');") -- change this !
    yrest(200)



end

</onLoad></waypoints>