ressources guild

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Post Reply
Message
Author
lolau51
Posts: 31
Joined: Wed Oct 05, 2011 4:40 am

ressources guild

#1 Post by lolau51 » Thu Apr 14, 2016 12:47 am

Hail.
I'm looking for macro to extrac ressources from ''unknow ressources''.
I have a ingame macro to do 3 ressources but for 6, 9, 12... I do spam m'y keybord.

I needs to do thas 1k or more.

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: ressources guild

#2 Post by noobbotter » Thu Apr 14, 2016 7:31 am

Is that where you click the unknown resource to "use" it and it disappears the resource you get from it goes into your bag?

I quickly threw this together so it might do what you need. One thing you'll need to do is make sure the line "local itemchoice = "Unknown Resource"" has the correct item name. I can't remember if "Unknown Resource" is correct or not.



Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
	local itemchoice = "Unknown Resource"
	
	
	function useItem(myitem)
		repeat
			if inventory:itemTotalCount(myitem) > 0 then
				inventory:useItem(myitem);
				inventory:update()
			end
			yrest(300)
		until inventory:itemTotalCount(myitem) == 0 or inventory:itemTotalCount(0) == 0
	end
	
	useItem(itemchoice)
	error("Completed")
</onLoad>
</waypoints>
That will run until you have no more of the item, or you have no more backpack space.

lolau51
Posts: 31
Joined: Wed Oct 05, 2011 4:40 am

Re: ressources guild

#3 Post by lolau51 » Thu Apr 14, 2016 9:17 am

Work very well !
and using "auto guild donate" addon ;-) backpack gone empty quickly !

Ressources name :
"Unknown Wood VI"
"Unknown Ore VII"
"Unknown Agricultural Products VI"


If :
"Lumber Yard" level VI
"Forge" level VII
"Field" level VI

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: ressources guild

#4 Post by noobbotter » Thu Apr 14, 2016 10:35 am

I've updated it to do all 3 of the resources you specified:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
	
	function useItem()
		local resourceTable = {
			"Unknown Wood VI",
			"Unknown Ore VII",
			"Unknown Agricultural Products VI",
		}
	
		for k,v in pairs(resourceTable) do
			repeat
				if inventory:itemTotalCount(v) > 0 then
					inventory:useItem(v);
					inventory:update()
				end
				yrest(300)
			until inventory:itemTotalCount(v) == 0 or inventory:itemTotalCount(0) == 0
		end
	end
	
	useItem()
	error("Completed")
</onLoad>
</waypoints>

lolau51
Posts: 31
Joined: Wed Oct 05, 2011 4:40 am

Re: ressources guild

#5 Post by lolau51 » Thu Apr 14, 2016 12:06 pm

Thanks !

Post Reply

Who is online

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