Need Help with make bot on Syrbal Pass

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
wiedzmin97
Posts: 44
Joined: Wed Jul 03, 2013 1:37 pm

Need Help with make bot on Syrbal Pass

#1 Post by wiedzmin97 » Wed Jul 03, 2013 1:41 pm

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 :)

User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Re: Need Help with make bot on Syrbal Pass

#2 Post by gloover » Fri Jul 05, 2013 3:29 pm

Put this in <OnLeaveCombat> of your profile:

Code: Select all

if player:findNearestNameOrId(107217) then
	player:target_Object(107217);
	yrest(800)
end

kuripot
Posts: 493
Joined: Mon Nov 07, 2011 9:14 pm

Re: Need Help with make bot on Syrbal Pass

#3 Post by kuripot » Sat Jul 13, 2013 7:46 am

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>

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 14 guests