Page 2 of 5

Re: [Daily & Public Event] Extinguish More Flames

Posted: Fri Jul 13, 2012 3:49 am
by Hidden
Nice work thank you for sharing.

I have a question, there are flames at waypoint 2 and 3. Is there some way I can just get it to go to waypoint 2 and wait for the flames to respwan? I think its a 6-7 second respawn time.
Had 2 running any they were cutting each other off so was thinking along the lines of have one go to waypoint 2 extinguish 3 flames and get the other to go to waypoint 3 and farm 3 there.

Maybe some sort of option when starting the waypoint similar to the ks stop at boss prompt eg 1 = waypoint 2 (Farm all) 2 = waypoint 3 (Farm all) 3 = alternate like it does atm.

Its a very public and popular spot on my server so thinking that stopping and waiting for the respawn will mimic other players better

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sun Jul 15, 2012 9:08 am
by top1
is it possible to make this only for the public event ONLY start on "event"
the events seem to start xx:13 xx:33 xx:53 so every 20minutes.
there is a ostime() and ostimediff() function so it should be possible to start
on xx:13 do the quest (lets say 5-10 times) return it (except the last one)
and start it next time on xx:33 ?!?


to make it clear:


my problem is I dont know how to start it on a exact (system) time, every 20 minutes!

I optimized the code so I can reach 6000points with 2 bots alone in < 8min
(each using one flame spot)

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
	<!-- #  1 --><waypoint x="-21559" z="-22931" y="588">
player:target_NPC("Diandon");
	CompleteQuestByName("L\195\182scht mehr Flammen");
	yrest(100);
	player:target_NPC("Diandon");
	AcceptQuestByName("L\195\182scht mehr Flammen");
	yrest(100);
	</waypoint>
	<!-- #  2 --><waypoint x="-21636" z="-22916" y="592">	</waypoint>
	<!-- #  3 --><waypoint x="-21742" z="-23032" y="588">
queststate = getQuestStatus("L\195\182scht mehr Flammen");
    while queststate == "incomplete" do
		yrest(100);player:target_Object("Seltsamer Flammenkeimling");yrest(100);
		queststate = getQuestStatus("L\195\182scht mehr Flammen");
		end
	</waypoint>
	<!-- #  4 --><waypoint x="-21642" z="-22920" y="592">	</waypoint>
</waypoints>

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sun Jul 15, 2012 9:10 pm
by Hidden
Thanks Top1

EOJ timer can be found here. http://www.solarstrike.net/phpBB3/viewt ... &hilit=eoj not sure if that will work for the AK EoJ tho as the messages dont seem to appear (may just be my client)

Also Change the names in your code to work with the english client :) will try it out tonight.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
   <!-- #  1 --><waypoint x="-21559" z="-22931" y="588">
player:target_NPC("Diandon");
   CompleteQuestByName("Extinguish More Flames");
   yrest(100);
   player:target_NPC("Diandon");
   AcceptQuestByName("Extinguish More Flames");
   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">   </waypoint>
</waypoints>

Re: [Daily & Public Event] Extinguish More Flames

Posted: Mon Jul 16, 2012 7:00 pm
by xxcheeseyxx
Bubi wrote:
cowbot7 wrote:the daily quest bug is...
It's not working on EU Server :cry:
Think they fixed that in Chapter 2

Doesnt seem to work on US artemis either.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Fri Jul 27, 2012 1:16 pm
by Hidden
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>

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sun Aug 05, 2012 2:14 pm
by Gorthax
here try this, i use it for the butterfly dailis, but i am getting ready to switch to these ones, and I have incorporated it into my new one.

Code: Select all

local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()"); 
     			if 10 == dailyQuestCount then
      				printf ("Done "..dailyQuestCount.." of " .. dailyQuestsPerDay ..    " Quests. STOP.");
      					id = RoMScript("GetCurrentParallelID()");
					if id == 2 then 
					RoMScript("ChangeParallelID(1)"); 
					elseif id == 1 then 
					RoMScript("ChangeParallelID(2)");
					end; 
					yrest(30000);
					sendMacro("Logout();"); yrest(1*20*1000) -- wait for next character to load
					waitForLoadingScreen()
					-- Re-initialize player
         player = CPlayer.new();
         settings.load();
         settings.loadProfile("your_profile_name_here");
         yrest (4000)
         
         loadPaths("your_WP_file_here");
the above will check to see if you have completed ten dailies; and if you have, it will switch you to ch 1, then log you off.

if you use the quick log in then once you log to character select screen, it will shoot you right back into the game on channel 2 if you have the logmein setup to do so. once logged back in, this little snippet of code will reactivate your profile and waypoint files, and start itself over :D botting at its finest ^^ tweak it to your needs and enjoy

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sat Aug 11, 2012 8:35 pm
by Louis
Hey guys my English is very bad.
I would like to make a query,
In my game I usually go with 250 ms (ping)
and when this goes to but I get the following error:


any help thank you very much!! :)




PD: My yrest is:
yrest(10);player:target_Object("Brote de llama extraña");yrest(10);

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sat Aug 11, 2012 8:48 pm
by rock5
"Argument #1" is "getProc()". getProc just returns the game that micromacro is attached to. If it returns nil then it probably means it lost communication with the game. Maybe the game crashed.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sat Aug 11, 2012 9:10 pm
by Louis
Because of this error the game automatically closes.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sat Aug 11, 2012 9:42 pm
by rock5
Or maybe you get the error because the game closed.

It's possible some code you are using is causing the game to crash. Does it always crash in the same place or at different times? If it alway crashes at the same place, copy the rest of that waypoint here for us to have a look at.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sat Aug 11, 2012 9:46 pm
by lisa
looks like it crashed when trying to "harvest" something for a quest.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sun Aug 12, 2012 5:53 pm
by Louis
the waypoint always runs well, the problem is when you increase the ping (+250 ms)
Thanks for the replies :)

Re: [Daily & Public Event] Extinguish More Flames

Posted: Wed Aug 15, 2012 7:22 pm
by Ego95
Thanks, waypoint works fine, but I don't get the event timer working :/
My char waits at the npc and if the event starts he doesn't start. So he only stands there.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Wed Aug 15, 2012 7:56 pm
by lisa
you should test the event monitor is working.

use this test I added.
http://www.solarstrike.net/phpBB3/viewt ... =27&t=2516
File comment: Tests if event monitoring is working, posts LOL in Say, posts on MM window that it is working.
eventmonitortest.xml [618 Bytes]
Downloaded 340 times

Re: [Daily & Public Event] Extinguish More Flames

Posted: Wed Aug 15, 2012 8:17 pm
by Ego95
Eventmonitor test was successful. I chnaged something and I got it working finally. Don't know what the problem was :O

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sun Aug 19, 2012 6:33 am
by Ego95
Hey botters ;)
I don't know how it's on your servers, but I don't use this script again. A few minutes ago the second person said, that I was botting. Those two times, someone said this to me, I was at the keyboard so I could whisper something back. It's well done, that the bot runs between those two fires, but if there are many people there, the bot only runs between them and doesn't get a fire. It would be better to remove that and wait at one fire.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Fri Aug 31, 2012 3:07 am
by Jandrana
I was running the "Extinguish more Flames" script several times now. It works a certain time, but sooner or later it stops harvesting the fire.

Yesterday I added some print statements and found, that the script was hanging in

Code: Select all

player:target_Object("Strange Flame Seedling")
.

I added some debug print statements to target_Object and found out, that is was looping in

Code: Select all

function CPlayer:target_Object(_objname, _waittime, _harvestall, _donotignore, evalFunc)
...
				repeat
					yrest(100);
					self:update();
					while( self.Battling ) do
						self:target(self:findEnemy(true, nil, evalTargetDefault, self.IgnoreTarget));
						self:update();
						if( self:haveTarget() ) then
							self:fight();
							interrupted = true
						end
					end
				until deltaTime(getTime(),timeStart) > _waittime and self.Casting == false
...
The problem with this event is, that the fire elementals nearby do an AOE regularly. So you are in combat, and the above code tries to find an attacking enemy and fight it. But the fire elementals attack the guards / plants. So there is no real enemy and you never leave the inner loop.

Perhaps there should be an option to ignore combat? Alternatively have a timeout check for the inner loop?

Re: [Daily & Public Event] Extinguish More Flames

Posted: Fri Aug 31, 2012 1:45 pm
by rock5
Hm.. yes. No need for an option or timeout. I'd say it should be

Code: Select all

                  if( self:haveTarget() ) then
                     self:fight();
                     interrupted = true
                  else
                     break
                  end
Because if it's in combat but nothing is found attacking it then it can immediately assume nothing is attacking it and can exit the loop.

I'll have to check for the same issue elsewhere. Example player:mount has the "break" but player:harvest doesn't.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Mon Sep 03, 2012 3:36 am
by Jandrana
Of course Rock, you proposal makes much more sense.

I changed target_Object as you proposed and now the script ran for ~20 min without any problems.

Re: [Daily & Public Event] Extinguish More Flames

Posted: Sat Sep 22, 2012 12:51 am
by vo2male
HI guys... a bit off topic, but what is the level requirement to do this Public events?