Page 1 of 1

Need Help with make bot on Syrbal Pass

Posted: Wed Jul 03, 2013 1:41 pm
by wiedzmin97
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 :)

Re: Need Help with make bot on Syrbal Pass

Posted: Fri Jul 05, 2013 3:29 pm
by gloover
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

Posted: Sat Jul 13, 2013 7:46 am
by kuripot
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>