[Daily & Public Event] Extinguish More Flames

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Message
Author
Hidden
Posts: 101
Joined: Tue May 08, 2012 6:10 pm

Re: [Daily & Public Event] Extinguish More Flames

#21 Post by Hidden » Fri Jul 13, 2012 3:49 am

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

top1
Posts: 50
Joined: Mon Jan 03, 2011 4:57 pm

Re: [Daily & Public Event] Extinguish More Flames

#22 Post by top1 » Sun Jul 15, 2012 9:08 am

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>

Hidden
Posts: 101
Joined: Tue May 08, 2012 6:10 pm

Re: [Daily & Public Event] Extinguish More Flames

#23 Post by Hidden » Sun Jul 15, 2012 9:10 pm

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>

xxcheeseyxx
Posts: 5
Joined: Tue Apr 17, 2012 11:28 pm

Re: [Daily & Public Event] Extinguish More Flames

#24 Post by xxcheeseyxx » Mon Jul 16, 2012 7:00 pm

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.

Hidden
Posts: 101
Joined: Tue May 08, 2012 6:10 pm

Re: [Daily & Public Event] Extinguish More Flames

#25 Post by Hidden » Fri Jul 27, 2012 1:16 pm

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>
Attachments
EoJ_Flame.xml
v1.0
(1.54 KiB) Downloaded 367 times

Gorthax
Posts: 2
Joined: Sun Aug 05, 2012 2:10 pm

Re: [Daily & Public Event] Extinguish More Flames

#26 Post by Gorthax » Sun Aug 05, 2012 2:14 pm

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

Louis
Posts: 22
Joined: Sat Dec 17, 2011 4:52 pm

Re: [Daily & Public Event] Extinguish More Flames

#27 Post by Louis » Sat Aug 11, 2012 8:35 pm

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);
Attachments
errrorllamas.JPG

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

Re: [Daily & Public Event] Extinguish More Flames

#28 Post by rock5 » Sat Aug 11, 2012 8:48 pm

"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.
  • 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

Louis
Posts: 22
Joined: Sat Dec 17, 2011 4:52 pm

Re: [Daily & Public Event] Extinguish More Flames

#29 Post by Louis » Sat Aug 11, 2012 9:10 pm

Because of this error the game automatically closes.

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

Re: [Daily & Public Event] Extinguish More Flames

#30 Post by rock5 » Sat Aug 11, 2012 9:42 pm

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.
  • 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
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: [Daily & Public Event] Extinguish More Flames

#31 Post by lisa » Sat Aug 11, 2012 9:46 pm

looks like it crashed when trying to "harvest" something for a quest.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

Louis
Posts: 22
Joined: Sat Dec 17, 2011 4:52 pm

Re: [Daily & Public Event] Extinguish More Flames

#32 Post by Louis » Sun Aug 12, 2012 5:53 pm

the waypoint always runs well, the problem is when you increase the ping (+250 ms)
Thanks for the replies :)

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: [Daily & Public Event] Extinguish More Flames

#33 Post by Ego95 » Wed Aug 15, 2012 7:22 pm

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.
Last edited by Ego95 on Wed Aug 15, 2012 8:07 pm, edited 2 times in total.

User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: [Daily & Public Event] Extinguish More Flames

#34 Post by lisa » Wed Aug 15, 2012 7:56 pm

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
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: [Daily & Public Event] Extinguish More Flames

#35 Post by Ego95 » Wed Aug 15, 2012 8:17 pm

Eventmonitor test was successful. I chnaged something and I got it working finally. Don't know what the problem was :O

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: [Daily & Public Event] Extinguish More Flames

#36 Post by Ego95 » Sun Aug 19, 2012 6:33 am

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.

Jandrana
Posts: 187
Joined: Thu Jul 05, 2012 5:53 am

Re: [Daily & Public Event] Extinguish More Flames

#37 Post by Jandrana » Fri Aug 31, 2012 3:07 am

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?

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

Re: [Daily & Public Event] Extinguish More Flames

#38 Post by rock5 » Fri Aug 31, 2012 1:45 pm

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.
  • 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

Jandrana
Posts: 187
Joined: Thu Jul 05, 2012 5:53 am

Re: [Daily & Public Event] Extinguish More Flames

#39 Post by Jandrana » Mon Sep 03, 2012 3:36 am

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.

vo2male
Posts: 122
Joined: Mon Aug 27, 2012 6:41 am

Re: [Daily & Public Event] Extinguish More Flames

#40 Post by vo2male » Sat Sep 22, 2012 12:51 am

HI guys... a bit off topic, but what is the level requirement to do this Public events?

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests