for german:
change line 3 into
Code: Select all
queststate = getQuestStatus("Eine Einfache Aufgabe?")
Code: Select all
queststate = getQuestStatus("Eine Einfache Aufgabe?")
Hiextremeuser wrote:got 1 error twice, but doesnt come up often.
[string "...":13: attempt to compare nil with number
Code: Select all
dailyQuestCount, dailyQuestsPerDay = sendMacro("Daily_count();");
quests = dailyQuestsPerDay - dailyQuestCount;
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;
The revision log tells what all the changes are.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
This has been a problem of RoMScript for a while and is not relevant to this topic.zbynio wrote:Hiextremeuser wrote:got 1 error twice, but doesnt come up often.
[string "...":13: attempt to compare nil with number
This error is the result of long delays on the game server and the function returns a value instead of the number [nil]
ex.Recently, very often dailyQuestsPerDay or dailyQuestCount or both = nilCode: Select all
dailyQuestCount, dailyQuestsPerDay = sendMacro("Daily_count();"); quests = dailyQuestsPerDay - dailyQuestCount;
Perhaps such a solution would be good? :Not checked it yetCode: 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;
If your chat is opening then you're getting 'stuck' because the bot is loosing communication with the client.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
rock5 wrote:The revision log tells what all the changes are.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 reason ingamefunstions is different is because the getQuestStatus function has been added/updated.
Instructions on how to keep your rombot up to date using SVN can be found here;prograx wrote:nd where do i get the revision and the updated ingamefunction?
couldnt find it with the search tool in here...
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;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
Code: Select all
while player:target_Object(112958,1800) do
This works awesome, big thanks to you!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.
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>
There are 2 possible reasons why it doesn't accept the quest.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
Its dont solve Quests.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>
With other Waypointfile i only take eggs (but it dont loot gold-eggs). I want a File only for completing Quest.
thx
Users browsing this forum: Ahrefs [Bot], Google [Bot] and 2 guests