Page 5 of 12
Re: Eggs
Posted: Wed Jul 07, 2010 2:10 pm
by Deset
Thank you rock5
for german:
change line 3 into
Code: Select all
queststate = getQuestStatus("Eine Einfache Aufgabe?")
Re: Eggs
Posted: Wed Jul 07, 2010 2:27 pm
by Hunger112
yes! It works thank you!
And Desert ... Marry me!

D
Re: Eggs
Posted: Wed Jul 07, 2010 2:31 pm
by Deset
it's called Deset! without R! xD
Re: Eggs
Posted: Wed Jul 07, 2010 3:06 pm
by Hunger112
Its the same!

P
Re: Eggs
Posted: Wed Jul 07, 2010 6:30 pm
by Binafus
Rock nice work on the quest stuff.
Re: Eggs
Posted: Wed Jul 07, 2010 6:59 pm
by zbynio
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
Re: Eggs
Posted: Wed Jul 07, 2010 7:31 pm
by prograx
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
Re: Eggs
Posted: Wed Jul 07, 2010 9:21 pm
by qcalex
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

Re: Eggs
Posted: Wed Jul 07, 2010 9:57 pm
by rock5
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.
Re: Eggs
Posted: Wed Jul 07, 2010 10:02 pm
by rock5
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.
Re: Eggs
Posted: Wed Jul 07, 2010 10:44 pm
by rock5
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.".
Re: Eggs
Posted: Thu Jul 08, 2010 4:08 am
by prograx
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...
Re: Eggs
Posted: Thu Jul 08, 2010 4:15 am
by Deathwing080
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
Re: Eggs
Posted: Thu Jul 08, 2010 5:19 am
by prograx
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
Re: Eggs
Posted: Thu Jul 08, 2010 5:27 am
by rock5
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
Re: Eggs
Posted: Thu Jul 08, 2010 5:35 am
by rock5
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.
Re: Eggs
Posted: Thu Jul 08, 2010 6:33 am
by somberland
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:
Re: Eggs
Posted: Thu Jul 08, 2010 11:37 am
by Bekki
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
Re: Eggs
Posted: Thu Jul 08, 2010 12:12 pm
by rock5
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.
Re: Eggs
Posted: Thu Jul 08, 2010 12:14 pm
by somberland
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