Hello
I have problem with bot. I want to Bots pick up items from Mysterious Bag but i dont know what i must write in Waypoint file ;/
Please Help me
Need Help with make bot on Syrbal Pass
Re: Need Help with make bot on Syrbal Pass
Put this in <OnLeaveCombat> of your profile:
Code: Select all
if player:findNearestNameOrId(107217) then
player:target_Object(107217);
yrest(800)
end
Re: Need Help with make bot on Syrbal Pass
i use this
Code: Select all
<onLeaveCombat><![CDATA[
catchCavy(cavy)
if player:findNearestNameOrId("Mysterious Bag") then
local filename = getExecutionPath() .. "/logs/giftbag.log";
local file, err = io.open(filename, "a+");
if file then
file:write("Date: "..os.date().." scout")
file:close();
end
player:target_Object("Mysterious Bag")
yrest(1000)
player:target_Object("Mysterious Bag")
yrest(1000)
end
-- Repair main hand
local dura = inventory:getMainHandDurability();
printf("Main hand durability:%s\n", dura);
if ( 90 > dura ) then
inventory:useItem("Simple Repair Hammer");
RoMScript("PickupEquipmentItem(15)");
end
-- Repair off hand
local dura = inventory:getDurability(16);
printf("Off hand durability:%s\n", dura);
if ( 90 > dura ) then
inventory:useItem("Simple Repair Hammer");
RoMScript("PickupEquipmentItem(16)");
end
]]></onLeaveCombat>
Who is online
Users browsing this forum: Ahrefs [Bot] and 14 guests