Eggs

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Deset
Posts: 7
Joined: Thu May 27, 2010 3:04 pm

Re: Eggs

#81 Post by Deset » Wed Jul 07, 2010 2:10 pm

Thank you rock5 :)

for german:
change line 3 into

Code: Select all

queststate = getQuestStatus("Eine Einfache Aufgabe?")

Hunger112
Posts: 8
Joined: Wed Jul 07, 2010 9:22 am

Re: Eggs

#82 Post by Hunger112 » Wed Jul 07, 2010 2:27 pm

yes! It works thank you!

And Desert ... Marry me! :DD

Deset
Posts: 7
Joined: Thu May 27, 2010 3:04 pm

Re: Eggs

#83 Post by Deset » Wed Jul 07, 2010 2:31 pm

it's called Deset! without R! xD

Hunger112
Posts: 8
Joined: Wed Jul 07, 2010 9:22 am

Re: Eggs

#84 Post by Hunger112 » Wed Jul 07, 2010 3:06 pm

Its the same! :PP

Binafus
Posts: 23
Joined: Thu Jul 09, 2009 1:22 pm

Re: Eggs

#85 Post by Binafus » Wed Jul 07, 2010 6:30 pm

Rock nice work on the quest stuff.

zbynio
Posts: 36
Joined: Thu Feb 04, 2010 8:16 am
Location: POLAND

Re: Eggs

#86 Post by zbynio » Wed Jul 07, 2010 6:59 pm

extremeuser wrote:got 1 error twice, but doesnt come up often.

[string "...":13: attempt to compare nil with number
Hi
This error is the result of long delays on the game server and the function returns a value instead of the number [nil]

ex.

Code: Select all

dailyQuestCount, dailyQuestsPerDay = sendMacro("Daily_count();");
quests = dailyQuestsPerDay - dailyQuestCount;
Recently, very often dailyQuestsPerDay or dailyQuestCount or both = nil

Perhaps such a solution would be good? :

Code: Select all

_counter = 0;
While(true) do
    dailyQuestCount, dailyQuestsPerDay = sendMacro("Daily_count();");
    if ( dailyQuestCount ~= nil and dailyQuestsPerDay ~= nil ) then break; end;
    yrest(1000);
    _counter = _counter + 1;
    if _counter == 10 then [some action ex.:addMessage("something wrong");] _counter = 0; end;
end;
Not checked it yet

prograx
Posts: 6
Joined: Wed Jul 07, 2010 7:26 pm

Re: Eggs

#87 Post by prograx » Wed Jul 07, 2010 7:31 pm

hi
I'm quite new to this and i got no idea what thes revision 470 shuld be.
and my ingamefunction file seems to be different with the one you are working with.
guess that's all verry simpel and maybe explained in a few words.
some help would be nice

qcalex
Posts: 23
Joined: Mon Jul 05, 2010 6:20 pm

Re: Eggs

#88 Post by qcalex » Wed Jul 07, 2010 9:21 pm

is there a reason why when the bot tryed to unstick he open the chat? and btw he get stick in the middle of the lawn were he can't get stuck...

edit:ok ive use the waypoint of rock5 all day and it worked perfectly
ive restarted my computer and now the waypoint is f**k-all : he had the quest and dont stop triing to get it, he run arround and arround and arround, he get supposely stuck in the middel of the lawn! and he open the chat to write qqqqqqqqqqeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ETC...
ive deleted every thing reinstalled and still the same thing.
my friend did a brand new installation of micromacro and rombot. he took the waypoint and got the same result.
ive run the update.lua the fixadresses.bat put the ingamefunction in C:\Program Files (x86)\Runes of Magic\Interface\Addons\
the only thing i cant understand is all ive done is restart my computer before the get wrong...
i dont get error message or anything
:?: :?: :?:

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

Re: Eggs

#89 Post by rock5 » Wed Jul 07, 2010 9:57 pm

prograx wrote:hi
I'm quite new to this and i got no idea what thes revision 470 shuld be.
and my ingamefunction file seems to be different with the one you are working with.
guess that's all verry simpel and maybe explained in a few words.
some help would be nice
The revision log tells what all the changes are.

The reason ingamefunstions is different is because the getQuestStatus function has been added/updated.
  • 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

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

Re: Eggs

#90 Post by rock5 » Wed Jul 07, 2010 10:02 pm

zbynio wrote:
extremeuser wrote:got 1 error twice, but doesnt come up often.

[string "...":13: attempt to compare nil with number
Hi
This error is the result of long delays on the game server and the function returns a value instead of the number [nil]

ex.

Code: Select all

dailyQuestCount, dailyQuestsPerDay = sendMacro("Daily_count();");
quests = dailyQuestsPerDay - dailyQuestCount;
Recently, very often dailyQuestsPerDay or dailyQuestCount or both = nil

Perhaps such a solution would be good? :

Code: Select all

_counter = 0;
While(true) do
    dailyQuestCount, dailyQuestsPerDay = sendMacro("Daily_count();");
    if ( dailyQuestCount ~= nil and dailyQuestsPerDay ~= nil ) then break; end;
    yrest(1000);
    _counter = _counter + 1;
    if _counter == 10 then [some action ex.:addMessage("something wrong");] _counter = 0; end;
end;
Not checked it yet
This has been a problem of RoMScript for a while and is not relevant to this topic.

My solution was to create a function similar to your loop in my userfunctions.lua file called sureRoMScript(). I use it when I know the returned value should not return a nil value. It can't be used all the time because some functions do return nil.
  • 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

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

Re: Eggs

#91 Post by rock5 » Wed Jul 07, 2010 10:44 pm

qcalex wrote:is there a reason why when the bot tryed to unstick he open the chat? and btw he get stick in the middle of the lawn were he can't get stuck...

edit:ok ive use the waypoint of rock5 all day and it worked perfectly
ive restarted my computer and now the waypoint is f**k-all : he had the quest and dont stop triing to get it, he run arround and arround and arround, he get supposely stuck in the middel of the lawn! and he open the chat to write qqqqqqqqqqeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee ETC...
ive deleted every thing reinstalled and still the same thing.
my friend did a brand new installation of micromacro and rombot. he took the waypoint and got the same result.
ive run the update.lua the fixadresses.bat put the ingamefunction in C:\Program Files (x86)\Runes of Magic\Interface\Addons\
the only thing i cant understand is all ive done is restart my computer before the get wrong...
i dont get error message or anything
:?: :?: :?:
If your chat is opening then you're getting 'stuck' because the bot is loosing communication with the client.

As to why chat is opening, usually it is because you are pressing the CTRL key while doing something else on the computer or the key is stuck. Administrator suggests "Disable CTRL+S hotkey in-game. It's used to open up the Say chat.".
  • 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

prograx
Posts: 6
Joined: Wed Jul 07, 2010 7:26 pm

Re: Eggs

#92 Post by prograx » Thu Jul 08, 2010 4:08 am

rock5 wrote:
prograx wrote:hi
I'm quite new to this and i got no idea what thes revision 470 shuld be.
and my ingamefunction file seems to be different with the one you are working with.
guess that's all verry simpel and maybe explained in a few words.
some help would be nice
The revision log tells what all the changes are.

The reason ingamefunstions is different is because the getQuestStatus function has been added/updated.

and where do i get the revision and the updated ingamefunction?
couldnt find it with the search tool in here...

Deathwing080
Posts: 1
Joined: Thu Jul 08, 2010 4:05 am

Re: Eggs

#93 Post by Deathwing080 » Thu Jul 08, 2010 4:15 am

wanted to ask where exactly you set the distance to harvest because there have now offered on the egg run but the problem he often runs hens to where he did not even want and would therefore reduce the harvest loot distance not only knows where thank

prograx
Posts: 6
Joined: Wed Jul 07, 2010 7:26 pm

Re: Eggs

#94 Post by prograx » Thu Jul 08, 2010 5:19 am

ok,found it somehow in another forum...
now running well i hope just wondering why it sometimes gets the 2 eggs and sometimes doesnt...
will see if it still runs wen i'm back thx anways

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

Re: Eggs

#95 Post by rock5 » Thu Jul 08, 2010 5:27 am

prograx wrote:nd where do i get the revision and the updated ingamefunction?
couldnt find it with the search tool in here...
Instructions on how to keep your rombot up to date using SVN can be found here;
http://www.solarstrike.net/phpBB3/viewt ... f=21&t=163
  • 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

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

Re: Eggs

#96 Post by rock5 » Thu Jul 08, 2010 5:35 am

prograx wrote:ok,found it somehow in another forum...
now running well i hope just wondering why it sometimes gets the 2 eggs and sometimes doesnt...
will see if it still runs wen i'm back thx anways
Just timing. If you are using my script and want to try fine tuning it, the lines to change are 39, 45 and 50. They look something like;

Code: Select all

while player:target_Object(112958,1800) do
Just change the 1800 pause to try a different value. I'm using 1700 at the moment. Seems to work better.
  • 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

somberland
Posts: 18
Joined: Sat Jul 03, 2010 3:11 pm

Re: Eggs

#97 Post by somberland » Thu Jul 08, 2010 6:33 am

rock5 wrote:I just commited revision 470. This includes new quest status functions, new target_Object function, and target_NPC and merchant now use memory addresses.

Because some of the changes may cause some of your "eggs" scripts not to work properly, I've attached my 'Eggs' script which makes use of the new functions.

I'll update the romwiki soon.

Enjoy.

ps. Don't forget to copy the new ingamefunctions folder to your rom addons folder.
This works awesome, big thanks to you!
Ok after some Runing-Time I get the following Error:
Attachments
349 - ScreenShot - 08.07.2010.jpg

Bekki
Posts: 8
Joined: Thu Mar 11, 2010 11:36 am

Re: Eggs

#98 Post by Bekki » Thu Jul 08, 2010 11:37 am

do some1 know why my bot dont loot "gold eggs"? only normal ones..

and one script from here works good, but it dont solve the quest
macro says only ACCEPT QUEST ACCEPT Quest.

Any help? thx

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="3981" z="3110" tag="Main">
		queststate = getQuestStatus("Eine einfache Aufgabe?")
		if queststate == "complete" then
			-- Complete quest
			player:target_NPC("Jenna Miller");
			sendMacro("CompleteQuest()"); yrest(2000);
			-- Accept quest
			player:target_NPC("Jenna Miller");
			sendMacro("AcceptQuest()"); yrest(2000);
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Detail"));	
		elseif queststate == "incomplete" then
			-- Collect eggs
			if 1 > inventory:getItemCount(204789) then -- Get more feed
				__WPL:setWaypointIndex(__WPL:findWaypointTag("Get Feed"));	
			else
				if player:target_Object(112955,8000) then
					__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"))
				else
					__WPL:setWaypointIndex(__WPL:findWaypointTag("Get Eggs"))
				end
			end
		else
			-- Accept quest
			player:target_NPC("Jenna Miller");
			sendMacro("AcceptQuest()"); yrest(2000);
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	
		end
	</waypoint>
	<!-- #  2 --><waypoint x="3940" z="3055" tag="Get Feed">	</waypoint>
	<!-- #  4 --><waypoint x="3937" z="2978">
	player:target_Object(112956,7000,true)
	</waypoint>
	<!-- #  5 --><waypoint x="3935" z="3051">__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	</waypoint>
	<!-- #  6 --><waypoint x="3928" z="3185" tag="Get Eggs">	</waypoint>
	<!-- #  8 --><waypoint x="3929" z="3261">
		changeProfileOption("HARVEST_DISTANCE", 40)
		while player:target_Object(112955,8500) do -- Check for hens
			while player:target_Object(112958,1800) do
				sendMacro("UseSkill(1,1)") yrest(40)
				sendMacro("UseSkill(1,1)") yrest(40)
				sendMacro("UseSkill(1,1)") yrest(4000)
			end
		end
		while player:target_Object(112958,1800) do -- Check for any missed eggs
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(3000)
		end
		while player:target_Object(114931,1800) do
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(3000)
		end
		changeProfileOption("HARVEST_DISTANCE", 75)
	</waypoint>
	<!-- #  9 --><waypoint x="3926" z="3198">__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	</waypoint>
</waypoints>
Its dont solve Quests.

With other Waypointfile i only take eggs (but it dont loot gold-eggs). I want a File only for completing Quest.

thx

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

Re: Eggs

#99 Post by rock5 » Thu Jul 08, 2010 12:12 pm

Bekki wrote:do some1 know why my bot dont loot "gold eggs"? only normal ones..

and one script from here works good, but it dont solve the quest
macro says only ACCEPT QUEST ACCEPT Quest.

Any help? thx

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>
	<!-- #  1 --><waypoint x="3981" z="3110" tag="Main">
		queststate = getQuestStatus("Eine einfache Aufgabe?")
		if queststate == "complete" then
			-- Complete quest
			player:target_NPC("Jenna Miller");
			sendMacro("CompleteQuest()"); yrest(2000);
			-- Accept quest
			player:target_NPC("Jenna Miller");
			sendMacro("AcceptQuest()"); yrest(2000);
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Detail"));	
		elseif queststate == "incomplete" then
			-- Collect eggs
			if 1 > inventory:getItemCount(204789) then -- Get more feed
				__WPL:setWaypointIndex(__WPL:findWaypointTag("Get Feed"));	
			else
				if player:target_Object(112955,8000) then
					__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"))
				else
					__WPL:setWaypointIndex(__WPL:findWaypointTag("Get Eggs"))
				end
			end
		else
			-- Accept quest
			player:target_NPC("Jenna Miller");
			sendMacro("AcceptQuest()"); yrest(2000);
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	
		end
	</waypoint>
	<!-- #  2 --><waypoint x="3940" z="3055" tag="Get Feed">	</waypoint>
	<!-- #  4 --><waypoint x="3937" z="2978">
	player:target_Object(112956,7000,true)
	</waypoint>
	<!-- #  5 --><waypoint x="3935" z="3051">__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	</waypoint>
	<!-- #  6 --><waypoint x="3928" z="3185" tag="Get Eggs">	</waypoint>
	<!-- #  8 --><waypoint x="3929" z="3261">
		changeProfileOption("HARVEST_DISTANCE", 40)
		while player:target_Object(112955,8500) do -- Check for hens
			while player:target_Object(112958,1800) do
				sendMacro("UseSkill(1,1)") yrest(40)
				sendMacro("UseSkill(1,1)") yrest(40)
				sendMacro("UseSkill(1,1)") yrest(4000)
			end
		end
		while player:target_Object(112958,1800) do -- Check for any missed eggs
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(3000)
		end
		while player:target_Object(114931,1800) do
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(40)
			sendMacro("UseSkill(1,1)") yrest(3000)
		end
		changeProfileOption("HARVEST_DISTANCE", 75)
	</waypoint>
	<!-- #  9 --><waypoint x="3926" z="3198">__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	</waypoint>
</waypoints>
Its dont solve Quests.

With other Waypointfile i only take eggs (but it dont loot gold-eggs). I want a File only for completing Quest.

thx
There are 2 possible reasons why it doesn't accept the quest.
1. The quest name is different than in you language. If the quest name isn't "Eine einfache Aufgabe?" then change it.
2. You didn't install or update the ingamefunctions. If not then copy the ingamefunctions folder to the games addon folder.
  • 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

somberland
Posts: 18
Joined: Sat Jul 03, 2010 3:11 pm

Re: Eggs

#100 Post by somberland » Thu Jul 08, 2010 12:14 pm

If u take the waypoint-file from rock5 and add the RoM-Addon (copy the Folder "ingamefunktions" to ur RoM-Addon dir) it works great.

For the ingamefunctions u need to updatet ur Bot: http://www.solarstrike.net/phpBB3/viewt ... f=21&t=163

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests