Page 3 of 5

Re: [Daily & Public Event] Extinguish More Flames

Posted: Mon Sep 24, 2012 5:49 pm
by vo2male
Hello everyone, i got my answer on my previous post.. the level requirement is level 68.

now my 2nd question is this. Im sometimes having this error:

Code: Select all

Did not find any crashed game clients.
C:/micromacro/scripts/rom/functions.lua:674: bad argument #1 to 'memory ReadByte' <<null>>
i tried to chek it on line 674 of functions.lua but i couldn't understand it. :roll:

Re: [Daily & Public Event] Extinguish More Flames

Posted: Mon Sep 24, 2012 6:09 pm
by BillDoorNZ
is the game still running when you get this error? or has it crashed?

Re: [Daily & Public Event] Extinguish More Flames

Posted: Mon Sep 24, 2012 6:28 pm
by vo2male
BillDoorNZ wrote:is the game still running when you get this error? or has it crashed?
it crashed..then comes the error


what does that line (674) really mean? what does it do?

Re: [Daily & Public Event] Extinguish More Flames

Posted: Mon Sep 24, 2012 6:58 pm
by BillDoorNZ
line 674 is trying to read some data from the game process...which - because the game has crashed - fails miserably! :)

something else caused the game to crash, and the error you are getting results from the game crashing, not incorrect code.

that line is basically waiting for the in-game macro to run and put its result data into the result macro location. You'll notice that before it reads, it writes the value 6 into it and then tells RoM to execute the macro. It then keeps reading that same location until it is no longer equal to 6 (which it won't be when the macro has run and overwritten it).

Re: [Daily & Public Event] Extinguish More Flames

Posted: Mon Sep 24, 2012 7:59 pm
by vo2male
BillDoorNZ wrote:line 674 is trying to read some data from the game process...which - because the game has crashed - fails miserably! :)

something else caused the game to crash, and the error you are getting results from the game crashing, not incorrect code.

that line is basically waiting for the in-game macro to run and put its result data into the result macro location. You'll notice that before it reads, it writes the value 6 into it and then tells RoM to execute the macro. It then keeps reading that same location until it is no longer equal to 6 (which it won't be when the macro has run and overwritten it).

Thanks for the brief info.. well i thought it has something to do with my computer process running slow =)

Re: [Daily & Public Event] Extinguish More Flames

Posted: Tue Sep 25, 2012 3:21 am
by vo2male
Hello again! i just had a weird happening on my script.. my waypoint was working very well for a few days now.i didn't change anything.but this morning i don't know but the event timer is always missing. Due to this, my bot just stands there as if waiting for the timer countdown? is this some kind of a bug? the timer is not showing on my screen..

Re: [Daily & Public Event] Extinguish More Flames

Posted: Tue Sep 25, 2012 3:49 am
by Jandrana
Due to this, my bot just stands there as if waiting for the timer countdown? is this some kind of a bug? the timer is not showing on my screen..
The timer only appears on ch 1. On Ch1 it disappears after ~2 min of inactivity if you are waiting in the zones where the quest npc is.

If you walk a bit further into the area where the militant fire elements are, the timer reappears.

I think it is a bug, but maybe runewalker did this to force ppl walking around. Maybe to make botting a bit harder. Who knows.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Tue Sep 25, 2012 7:28 pm
by vo2male
Jandrana wrote:
Due to this, my bot just stands there as if waiting for the timer countdown? is this some kind of a bug? the timer is not showing on my screen..
The timer only appears on ch 1. On Ch1 it disappears after ~2 min of inactivity if you are waiting in the zones where the quest npc is.

If you walk a bit further into the area where the militant fire elements are, the timer reappears.

I think it is a bug, but maybe runewalker did this to force ppl walking around. Maybe to make botting a bit harder. Who knows.

thanks! i read the same thing about that in this forum. The solution is just to have a waypoint tag that would bring you to snoop after each event. but i don't know how to incorporate it on my waypoint. im experimenting on it with no success yet.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Wed Sep 26, 2012 1:42 pm
by Trollencio
Excuse my ignorance xD
But what is the final version to make the event as arranged?
What is the daily missions bugs?
Thank you very much :)

Re: [Daily & Public Event] Extinguish More Flames

Posted: Wed Sep 26, 2012 7:16 pm
by vo2male
Trollencio wrote:Excuse my ignorance xD
But what is the final version to make the event as arranged?
What is the daily missions bugs?
Thank you very much :)
Hi! i think it was on the first page..


To everyone, i'd like to ask. If im going to use this wp, how can i add a waypoint that would bring me far from this are whenever i wanted to wait for the event?

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onload>
               
        YourTargetScore = 3100

   function waitForEventStart()
      repeat
         yrest(1000) -- check every second
         local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
         if Count == 2 and YourTargetScore > ScorePE then break end
      until false
   end

   function isEventFinished()
       local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
       if Count ~= 2 or ScorePE >= YourTargetScore then
         __WPL:setForcedWaypointType("RUN")
         __WPL:setWaypointIndex(__WPL:findWaypointTag("Home Base"));
      end
   end

</onload>

   <!-- #  1 --><waypoint x="-21559" z="-22931" y="588">
   player:target_NPC("Diandon");
   yrest(100);
   player:target_NPC("Diandon");
   yrest(100);
   </waypoint>
   <!-- #  2 --><waypoint x="-21636" z="-22916" y="592">   </waypoint>
   <!-- #  3 --><waypoint x="-21742" z="-23032" y="588">
    queststate = getQuestStatus("Extinguish More Flames");
    while queststate == "incomplete" do
      yrest(100);player:target_Object("Strange Flame Seedling");yrest(100);
      queststate = getQuestStatus("Extinguish More Flames");
      end
               if (isEventFinished()) then
               __WPL:setWaypointIndex(__WPL:findWaypointTag("Home Base"));
              end
      end 
   </waypoint>
   <!-- #  4 --><waypoint x="-21642" z="-22920" y="592" tag="Home Base">
       waitForEventStart()
      __WPL:setForcedWaypointType("NORMAL")           
            end
   </waypoint>
</waypoints>
i wanted to change waypoint 4 (tagged Home Base) or add another WP to somewhere far so that my timer bug will just reappear. However, i also dont wanted to include that in the loop. I dont want traveling far just to gather and deliver the quest.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Thu Sep 27, 2012 5:18 am
by nightclaw
Hidden wrote:Ok so time to share :) I take no credit for any of this Waypoints are from top1 event timers is rock5's and the mod to make it work came from the mind of BilldooorNZ all i did was mash it together.

Target score at the top will stop the bot when score is reached otherwise bot will stop when event finished. Will also have 1 to cash in at the check happens before the quest is handed in.

I have the dailynotes addon from curse so i dont have the acceptquestbyname or completetquestbyname functions either add them (can be found in earlier posts) or d/l the dailynotes addon

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onload>
               
        YourTargetScore = 3100

	function waitForEventStart()
		repeat
			yrest(1000) -- check every second
			local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
			if Count == 2 and YourTargetScore > ScorePE then break end
		until false
	end

	function isEventFinished()
		 local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
		 if Count ~= 2 or ScorePE >= YourTargetScore then
			__WPL:setForcedWaypointType("RUN")
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Home Base"));
		end
	end

</onload>

   <!-- #  1 --><waypoint x="-21559" z="-22931" y="588">
   player:target_NPC("Diandon");
   yrest(100);
   player:target_NPC("Diandon");
   yrest(100);
   </waypoint>
   <!-- #  2 --><waypoint x="-21636" z="-22916" y="592">   </waypoint>
   <!-- #  3 --><waypoint x="-21742" z="-23032" y="588">
    queststate = getQuestStatus("Extinguish More Flames");
    while queststate == "incomplete" do
      yrest(100);player:target_Object("Strange Flame Seedling");yrest(100);
      queststate = getQuestStatus("Extinguish More Flames");
      end
               if (isEventFinished()) then
               __WPL:setWaypointIndex(__WPL:findWaypointTag("Home Base"));
              end
      end 
   </waypoint>
   <!-- #  4 --><waypoint x="-21642" z="-22920" y="592" tag="Home Base">
 		waitForEventStart()
		__WPL:setForcedWaypointType("NORMAL")           
            end
   </waypoint>
</waypoints>
where does this start at so i know where to stand? please

Re: [Daily & Public Event] Extinguish More Flames

Posted: Thu Sep 27, 2012 8:53 am
by Trollencio
Did not find any crashed game clients.
Faile to compile and run Lua code for waypoint #4

I donĀ“t understand :o :o :o

Re: [Daily & Public Event] Extinguish More Flames

Posted: Thu Sep 27, 2012 9:06 am
by rock5
Too many 'end's.

There is an 'end' that doesn't end anything in waypoint 4. Also waypoint 3 looks like it has an extra 'end'.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Tue Oct 02, 2012 5:50 am
by muratiks
Hello, i have little question about to mix 2 waypoint code

1st code;

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints>

	<!-- #  1 --><waypoint x="-21533" z="-22929" y="597" type="TRAVEL">
	player:target_NPC("Diandon");
	CompleteQuestByName("Extinguish More Flames");
	yrest(500);
	player:target_NPC("Diandon");
	AcceptQuestByName("Extinguish More Flames");
	yrest(500);
	__WPL:setDirection(WPT_FORWARD);
	</waypoint>
	<!-- #  2 --><waypoint x="-21680" z="-23204" y="594" type="TRAVEL">
	queststate = getQuestStatus("Extinguish More Flames");
    if queststate == "incomplete" then		
		yrest(500);player:target_Object("Strange Flame Seedling");yrest(1000);
		queststate = getQuestStatus("Extinguish More Flames");
		if queststate == "incomplete" then
			__WPL:setDirection(WPT_FORWARD);
		else
			__WPL:setDirection(WPT_BACKWARD);
		end
	else
		__WPL:setDirection(WPT_BACKWARD);
	end
	</waypoint>
	<!-- #  3 --><waypoint x="-21739" z="-23072" y="597" type="TRAVEL">
	yrest(500);player:target_Object("Strange Flame Seedling");yrest(1000);
	__WPL:setDirection(WPT_BACKWARD);
	</waypoint>
</waypoints>
this works great for dailys and public quest but i wat to add timer from another code

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onload>
               
        YourTargetScore = 3100

	function waitForEventStart()
		repeat
			yrest(1000) -- check every second
			local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
			if Count == 2 and YourTargetScore > ScorePE then break end
		until false
	end

	function isEventFinished()
		 local namePE,messagePE,namePH,ScorePE,Count , IsScoreVisible= RoMScript("PE_GetInfo(1)")
		 if Count ~= 2 or ScorePE >= YourTargetScore then
			__WPL:setForcedWaypointType("RUN")
			__WPL:setWaypointIndex(__WPL:findWaypointTag("Home Base"));
		end
	end

</onload>

   <!-- #  1 --><waypoint x="-21559" z="-22931" y="588">
   player:target_NPC("Diandon");
   yrest(100);
   player:target_NPC("Diandon");
   yrest(100);
   </waypoint>
   <!-- #  2 --><waypoint x="-21636" z="-22916" y="592">   </waypoint>
   <!-- #  3 --><waypoint x="-21742" z="-23032" y="588">
    queststate = getQuestStatus("Extinguish More Flames");
    while queststate == "incomplete" do
      yrest(100);player:target_Object("Strange Flame Seedling");yrest(100);
      queststate = getQuestStatus("Extinguish More Flames");
      end
   </waypoint>
   <!-- #  4 --><waypoint x="-21642" z="-22920" y="592" tag="Home Base">
 		waitForEventStart()
		__WPL:setForcedWaypointType("NORMAL")           
               if (isEventFinished()) then
               __WPL:setWaypointIndex(__WPL:findWaypointTag("Home Base"));
            end
   </waypoint>
</waypoints>
2nd one waiting until public event start

i want 1st code also wait for event start

please help ty

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sat Oct 06, 2012 4:39 am
by CanceR
hello all,
how to use this WP only for daily quest or for public one, when they both have same name, in case i did not do any daily quest, but want to do them elsewhere and accept only public one?

Code: Select all

CompleteQuestByName("Extinguish More Flames");
what should be changed in brackets for QuestID to make a difference which one i want to accept?
and is there any place where i can find all quest ID's for different quests?
thanks in advance

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sat Oct 06, 2012 5:35 am
by rock5
As of revision 736 you can use an extra argument with the QuestByName functions. Eg.

Code: Select all

AcceptQuestByName("Extinguish More Flames","public");
CompleteQuestByName("Extinguish More Flames","public");
Accepted values are "public", "daily" and "normal".

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sat Oct 06, 2012 8:33 pm
by vo2male
I'm pretty tired of having this error :x

Code: Select all

We found Strange Flame Seedling and will harvest it.
We found Strange Flame Seedling and will harvest it.
Did not find any crashed game clients.  (<--- client crashed)
4:19am - C:/micromacro/scripts/rom/functions.lua:674: bad argument #1 to 'memory
ReadByte' ((null))
It only happens when im running on dual client. I'm occupying both the flames (right and left) near the Flame NPC. This error usuall occurs on the left flames where there are mobs fighting.. i'm not sure if it's my computer that is failing me or the codes im using. However, i am quite sure that the code works fine.
Anyone have any ideas aside from the post above?

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sun Oct 07, 2012 10:25 pm
by kuripot
i have 1 question.......
Extinguish More Flames has daily quest and public event... with same quest name...
how to choose only daily quest??not the public event???
because when i accept public event. it has problem in spawning of Strange Flame Seedling.
so i only want to accept the daily quest
and one more thing
how can i repeat harvest Strange Flame Seedling until the quest complete without using "tag"
i dont want to use tag because when using tag it we go back the waypoint that has tag.. and its look suspicious

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sun Oct 07, 2012 10:37 pm
by rock5
kuripot wrote:Extinguish More Flames has daily quest and public event... with same quest name...
how to choose only daily quest??not the public event???
Look at my post about 3 posts up from here.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Mon Oct 08, 2012 4:53 am
by Jandrana
It only happens when im running on dual client. I'm occupying both the flames (right and left) near the Flame NPC. This error usuall occurs on the left flames where there are mobs fighting.. i'm not sure if it's my computer that is failing me or the codes im using. However, i am quite sure that the code works fine.
It happens also to me, when running a single client. When this happened to me, another player was also trying to harvest the flame seedling. I think this is a timing issue, that the bot is trying to harvest a seedling, that has been harvested by another player already. Maybe the data in memory did change in a way that is not expected.