Use of harvest

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
vegasmike
Posts: 8
Joined: Mon Jul 30, 2012 12:22 pm

Use of harvest

#1 Post by vegasmike » Mon Jul 30, 2012 12:51 pm

I apologize if this was covered elsewhere but I was unable to find anything on this in any threads that seemed even slightly relevant. I am having a problem with player:harvest(). For some objects, it works; for others, it does not.

Here is a line from my WP file

Code: Select all

<!-- # 13 --><waypoint x="-26189" z="34159" y="-144">player:target_Object(118914);player:harvest(118914, nil, true, true);</waypoint>
When I walk to the waypoints, I get a confirmation of the item name in MM as being found and that it will be harvested. However, the item never harvests and the quest never updates.

Using the harvest command in other quests, specifically ones in which the object being used is a caged prisoner, works just fine as applied but does not here. Any help would be appreciated.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Use of harvest

#2 Post by rock5 » Mon Jul 30, 2012 1:52 pm

player:harvest doesn't have that many options and should only really be used when collecting resources such as wood, herbs and ore. player:target_Object is for collecting objects. That's the function that has all the options for dealing with differerent types of objects.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

vegasmike
Posts: 8
Joined: Mon Jul 30, 2012 12:22 pm

Re: Use of harvest

#3 Post by vegasmike » Mon Jul 30, 2012 2:27 pm

rock5 wrote:player:harvest doesn't have that many options and should only really be used when collecting resources such as wood, herbs and ore. player:target_Object is for collecting objects. That's the function that has all the options for dealing with differerent types of objects.
After having excluded the player:harvest() function, I still have the same issue. MM says it recognizes the item by name and will harvest but it does not harvest the quest items from the node. Here is what I did:

Code: Select all

	<!-- # 13 --><waypoint x="-26189" z="34159" y="-144">player:target_Object(118914, nil, true, true);</waypoint>

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Use of harvest

#4 Post by rock5 » Tue Jul 31, 2012 12:50 am

Is it posible it's the wrong id? There is a quest item in Xaviera that has 2 ids, one is for the object you see and one is for the object you click. People usually have trouble botting it because they try to click the wrong id. When you click the Wildbery, does it disappear or does it just become unclickable but still visible?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

vegasmike
Posts: 8
Joined: Mon Jul 30, 2012 12:22 pm

Re: Use of harvest

#5 Post by vegasmike » Tue Jul 31, 2012 10:23 am

rock5 wrote:Is it posible it's the wrong id?
It is certainly possible. I am very new at this. I got the ID by using getid. Are there better ways to go about getting the numbers?
rock5 wrote:When you click the Wildbery, does it disappear or does it just become unclickable but still visible?
Once MM shows that the item has been found and will be harvested, if the command to player:target_object() is resent immediately, MM gives a message for no harvestables available. However, on this second command, the cog never disappears from the screen which makes it seem as if the node is still available for harvest. The Wildberry never actually disappears.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Use of harvest

#6 Post by rock5 » Tue Jul 31, 2012 1:31 pm

Here is a little waypoint file I just wrote. Stand near a Wildberry and run it. It should print info on all objects within a radius of 50 from the player. If there is a second id printed with the same coords as the wildberry then that is probably the id you should be targeting.
Attachments
printobj.xml
(499 Bytes) Downloaded 199 times
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

vegasmike
Posts: 8
Joined: Mon Jul 30, 2012 12:22 pm

Re: Use of harvest

#7 Post by vegasmike » Tue Jul 31, 2012 3:53 pm

rock5 wrote:Here is a little waypoint file I just wrote. Stand near a Wildberry and run it. It should print info on all objects within a radius of 50 from the player. If there is a second id printed with the same coords as the wildberry then that is probably the id you should be targeting.
I ran the WP and it didn't bring up any other names.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Use of harvest

#8 Post by rock5 » Wed Aug 01, 2012 8:58 am

vegasmike wrote:I ran the WP and it didn't bring up any other names.
So it didn't print anything at all in green?
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

vegasmike
Posts: 8
Joined: Mon Jul 30, 2012 12:22 pm

Re: Use of harvest

#9 Post by vegasmike » Wed Aug 01, 2012 9:52 am

rock5 wrote:
vegasmike wrote:I ran the WP and it didn't bring up any other names.
So it didn't print anything at all in green?
There are just the "Tergothen Wildberry"s from the area. The WP didn't yield any object IDs for me to compare but the names are the same as the quest as well as the tooltip.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Use of harvest

#10 Post by rock5 » Wed Aug 01, 2012 11:11 am

Seeing as the item doesn't disappear, I was sure there was going to be more ids, either 2 objects with the same name but 2 ids or an unnamed object with a different id. I'm not sure what else to suggest.
  • Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
  • I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
  • How to: copy and paste in micromacro
    ________________________
    Quote:
    • “They say hard work never hurt anybody, but I figure, why take the chance.”
          • Ronald Reagan

abron1
Posts: 162
Joined: Wed Feb 22, 2012 12:43 am

Re: Use of harvest

#11 Post by abron1 » Thu Apr 04, 2013 4:33 pm

I was trying to use this code to get the id of the Mysterious bag in Merdhin Tundra but it didn't print any id's

Code: Select all

GM detection started
Dist: 27,       Name: Mysterious Bag,   X: 2200.00,     Z: -9395.00
Dist: 26,       Name: Sugon Highland Reindeer,  X: 2200.63,     Z: -9395.67
Dist: 20,       Name: Mrbigshot,        X: 2236.05,     Z: -9391.15
Did not find any crashed game clients.
2:27pm - [string "..."]:14: End of file.
because I crash when I get bags there but no other zone I was wondering if the ids where different

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: Use of harvest

#12 Post by lisa » Thu Apr 04, 2013 7:45 pm

if you want info of a nearby object you can have a userfunction like this.

Code: Select all

function kk(_arg1)
	local objectList = CObjectList();
	objectList:update();
	local objSize = objectList:size()
	for i = 0,objSize do
		obj = objectList:getObject(i);
		if string.find(obj.Name,_arg1) then
			table.print(obj)
		end
	end
end
then just start up commandline and use

Code: Select all

kk("Mysterious")
It is case sensative but you don't need the entire name.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

skatje008
Posts: 1
Joined: Mon Jun 10, 2013 10:08 am

Re: Use of harvest

#13 Post by skatje008 » Mon Jun 10, 2013 10:12 am

<onLeaveCombat><![CDATA[
if player:findNearestNameOrId("Mysterious Bag") then
player:target_Object("Mysterious Bag")
yrest(500) -- If not enough time to pick up bag, increase it.
player:target_Object("Mysterious Bag")
yrest(500)
end
catchCavy("cavy")
-- Additional Lua code to execute after killing an enemy
]]></onLeaveCombat>

worked fine by me, only problem i had that after a couple bag loots somtimes 10 sometimes 5, so random the game crashes...
it loots, it crashes,, very strange.

McGuffin
Posts: 46
Joined: Sat Mar 16, 2013 6:14 am

Re: Use of harvest

#14 Post by McGuffin » Mon Jun 10, 2013 12:03 pm

skatje008 wrote: worked fine by me, only problem i had that after a couple bag loots somtimes 10 sometimes 5, so random the game crashes...
it loots, it crashes,, very strange.
Try using this in <onLeaveCombat>

Code: Select all

    if player:findNearestNameOrId("Mysterious Bag") then
        player:target_Object("Mysterious Bag")
        yrest(1000) -- If not enough time to pick up bag, increase it.
    end

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest