ElfDaily simplyfied

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
vo2male
Posts: 122
Joined: Mon Aug 27, 2012 6:41 am

Re: ElfDaily simplyfied

#21 Post by vo2male » Mon Aug 27, 2012 3:56 pm

Thanks Rock! i figured it out. your Fast login works like a charm!

harbifm
Posts: 135
Joined: Wed May 25, 2011 11:43 pm

Re: ElfDaily simplyfied

#22 Post by harbifm » Fri Aug 31, 2012 5:00 am

I just understood the benifit of this waypoint for and am kiking my leg for not doing it :(

just need step by step instrcution how to use it :D :D
so this what I did :
I just first created 3 accounts with 8 charcures, ocourse all as Elfs @@, let say thier names are rock , lisa, and crzayman ,and 8 charctuer with one letter added, like rocka, rockb, rockc...etc

I dawnloaded Loginxml 3.1 to interface (cheack)..did not change anything in it, also dowloaded unserfunction_loginextchar.

what I need to do first (modify the Loginxml??how, where..did not understand the guide in its thread )
where I need to put accounts names and charcter name in both loginxml and waypoint ? @@
:P

exited about this, chargest csot to mcuh in my server @@

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

Re: ElfDaily simplyfied

#23 Post by rock5 » Fri Aug 31, 2012 2:52 pm

harbifm wrote:what I need to do first (modify the Loginxml??how, where..did not understand the guide in its thread )
How about Lisas description?
http://www.solarstrike.net/phpBB3/viewt ... 974#p39974

And Lisa also gives an example of how to edit the waypoint file.
http://www.solarstrike.net/phpBB3/viewt ... 989#p39989
  • 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

harbifm
Posts: 135
Joined: Wed May 25, 2011 11:43 pm

Re: ElfDaily simplyfied

#24 Post by harbifm » Sat Sep 01, 2012 7:32 am

rock5 wrote:
harbifm wrote:what I need to do first (modify the Loginxml??how, where..did not understand the guide in its thread )
How about Lisas description?
http://www.solarstrike.net/phpBB3/viewt ... 974#p39974

And Lisa also gives an example of how to edit the waypoint file.
http://www.solarstrike.net/phpBB3/viewt ... 989#p39989
did these two steps
this what I got
Attachments
elf1.PNG

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

Re: ElfDaily simplyfied

#25 Post by rock5 » Sat Sep 01, 2012 7:44 am

That would imply that you don't have userfunction_loginnextchar.lua installed or not installed properly. All userfunctions go into the 'micromacro/scripts/rom/userfunctions/' folder. Is that where you put it?
  • 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

harbifm
Posts: 135
Joined: Wed May 25, 2011 11:43 pm

Re: ElfDaily simplyfied

#26 Post by harbifm » Sat Sep 01, 2012 8:24 am

yep
I did not put in that folder, my mistake. second question, do I have to make profiles or all charectures?

after I put the userfunction correctly in its place, this what I got
Attachments
elf2.PNG

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

Re: ElfDaily simplyfied

#27 Post by rock5 » Sat Sep 01, 2012 8:39 am

harbifm wrote:second question, do I have to make profiles or all charectures
No. If you don't specify a profile, eg. "Rom/bot profile:profilename" then it will look for a profile with the same name as the character. If no such file exists then it will look for a profile called "userdefault.xml". So if you want to use a general purpose profile when no named profile is available, copy the default.xml profile to userdefault.xml and edit it to suite your needs. I use specific profiles for my main characters and userdefault for my alts.
harbifm wrote:after I put the userfunction correctly in its place, this what I got
That might happen if you didn't setup the charlist properly or if you logged in by typing an account and password instead of clicking one of the buttons.
  • 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

harbifm
Posts: 135
Joined: Wed May 25, 2011 11:43 pm

Re: ElfDaily simplyfied

#28 Post by harbifm » Sat Sep 01, 2012 12:48 pm

rock5 wrote:
harbifm wrote:second question, do I have to make profiles or all charectures
No. If you don't specify a profile, eg. "Rom/bot profile:profilename" then it will look for a profile with the same name as the character. If no such file exists then it will look for a profile called "userdefault.xml". So if you want to use a general purpose profile when no named profile is available, copy the default.xml profile to userdefault.xml and edit it to suite your needs. I use specific profiles for my main characters and userdefault for my alts.
harbifm wrote:after I put the userfunction correctly in its place, this what I got
That might happen if you didn't setup the charlist properly or if you logged in by typing an account and password instead of clicking one of the buttons.
thanks it worked @@

User avatar
nightclaw
Posts: 123
Joined: Sun Sep 02, 2012 4:39 am

Re: ElfDaily simplyfied

#29 Post by nightclaw » Sat Sep 29, 2012 1:43 am

Edited by Toxic and I.
This does NOT include the autologin script, but anyone that updates I'd love to know how to get it working let me know please.This is an update to ElfValley. This is a shorter cleaner version that gets it done quick but you need the second one named ElfDaily so it starts the script from the beginning to get the daily manager then to get the daily you start x10. From this point on all you have to do is the ElfDaily script to do the daily everyday, for each character. :)

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
    <waypoints type="RUN">
	<!-- #  1 --><waypoint x="31954" z="3278" y="38">
		player:target_NPC("Gamunhan");
		AcceptQuestByName("Getting to Know Yourself"); yrest(waitTime);
		CompleteQuestByName("Getting to Know Yourself"); yrest(waitTime);
		AcceptQuestByName("Elven Academy"); yrest(waitTime);
	</waypoint>
	<!-- #  2 --><waypoint x="32123" z="3440" y="4">	</waypoint>
	<!-- #  3 --><waypoint x="32297" z="3266" y="28">	</waypoint>
	<!-- #  4 --><waypoint x="32313" z="3356" y="28">		
		player:target_NPC("Daily Quest Manager");
		AcceptQuestByName("Helping Others");  yrest(waitTime);
		CompleteQuestByName("Helping Others");  yrest(waitTime);
	</waypoint>
	<!-- #  5 --><waypoint x="32297" z="3266" y="28">	</waypoint>
	<!-- #  6 --><waypoint x="32123" z="3440" y="4">	</waypoint>
	<!-- #  7 --><waypoint x="31944" z="3674" y="-8">	</waypoint>
	<!-- #  8 --><waypoint x="31839" z="4193" y="36">	</waypoint>
	<!-- #  9 --><waypoint x="31921" z="4543" y="5">	</waypoint>
	<!-- #  10 --><waypoint x="31847" z="4586" y="9">	</waypoint>
	<!-- #  11 --><waypoint x="31857" z="4577" y="25">	
		player:target_NPC("Blinsik"); yrest(waitTime);
		CompleteQuestByName("Elven Academy");  yrest(waitTime);
		AcceptQuestByName("Preparations");  yrest(waitTime);
		CompleteQuestByName("Preparations");  yrest(waitTime);
		AcceptQuestByName("The Basics of Attack");  yrest(waitTime);    
	    player:target_NPC("Blinsik");
		AcceptQuestByName("The Basics of Defense");  yrest(waitTime);
	    player:target_NPC("Blinsik");
		AcceptQuestByName("Basics of Recovery");  yrest(waitTime);
		loadPaths("ElfDaily");
	</waypoint>
    <onLoad>
	  waitTime = 300;
    </onLoad>
	
</waypoints>

This one NEEDS to be named ElfDaily.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
	<!-- #  1 --><waypoint x="31847" z="4592" tag ='Main'>
			
			local dqCount, dqPerDay = RoMScript("Daily_count()");
			if 10 > dqCount then	
				queststate = getQuestStatus("Helping Them Grow");
				if queststate == "complete" then
					-- Complete quest
					player:target_NPC("Blinsik");
					sendMacro("CompleteQuest()"); yrest(2000);
					-- Accept quest
					player:target_NPC("Blinsik");
					sendMacro("AcceptQuest()"); yrest(2000);
					--__WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));	
				else
					-- Accept quest
					player:target_NPC("Blinsik");
					sendMacro("AcceptQuest()"); yrest(2000);
				end
			else
				player:logout();
			end
	</waypoint>
	<!-- #  2 --><waypoint x="31812" z="4849">	</waypoint>
	<!-- #  3 --><waypoint x="31415" z="5720" tag = "Item">
			queststate = getQuestStatus("Helping Them Grow")
			if queststate == "incomplete" then
				player:target_NPC("Cleansing Crystal");
				yrest(3000);
				__WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
			end
	</waypoint>
	<!-- #  4 --><waypoint x="31878" z="4692">	</waypoint>
	<!-- #  5 --><waypoint x="31843" z="4593">	</waypoint>
</waypoints>
Last edited by nightclaw on Sat Sep 29, 2012 3:24 am, edited 1 time in total.

User avatar
nightclaw
Posts: 123
Joined: Sun Sep 02, 2012 4:39 am

Re: ElfDaily simplyfied

#30 Post by nightclaw » Sat Sep 29, 2012 2:11 am

We keep getting an error that occurs once about every 17 characters when the bot cannot find the "cleansing crystal", so we have to stop the rombot then click it manually and then start the bot back up. The error doesn't return for awhile later either. Anyone else have this problem? Anyone have a solution? Thanks. Toxic and Night

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

Re: ElfDaily simplyfied

#31 Post by rock5 » Sat Sep 29, 2012 2:46 am

Looks like nice neat coding. Just a few comments.

1. The 'onload' usually goes at the top of the file especially when it includes user options such as 'waitTime' so users can quickly find and edit them.
2. To tell you the truth I don't even think the QuestByName functions need yrests, they really are that reliable. And because they reopen dialogs, you don't even need a yrest after target_NPC.
3. Why didn't you use the QuestByName functions in the ElfDaily file too? It would have made it more reliable.
4. With all the versions of this daily, many of them using ids instead of names, to make them multilingual, there really wasn't any reason why you couldn't have done the same.

As for the reloging options, it depends what options you want to provide. Do you want to just load the next character in the account, do you want to use the full character list option, do you want to include an option to load a different waypoint file in case users want to chain files together? They are the usual options I've added to the minigames I've worked on. You could nearly just pull out the relog function from one of those files and use it as is. Maybe I should provide template somewhere for that relog function for anyone to use in their files. Or maybe I could put it into a userfunction.
  • 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
nightclaw
Posts: 123
Joined: Sun Sep 02, 2012 4:39 am

Re: ElfDaily simplyfied

#32 Post by nightclaw » Sat Sep 29, 2012 1:39 pm

We were just trying to clean it up some. We are looking for 1 account, 8 characters, once scripts done it relogs into next character and starts script over. We also don"t have the IDs for the names nor how to get them.

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

Re: ElfDaily simplyfied

#33 Post by rock5 » Sat Sep 29, 2012 2:33 pm

If you look at the other scripts you would see the ids but normally you can get ids for npcs and quests from www.runesdatabase.com. Just find what you are looking for and the id will be in the url link.

To relog the same account, assuming you have my fastlogin installed and my loginnextchar userfunction installed (www.solarstrike.net/phpBB3/viewtopic.php?p=10350), just do

Code: Select all

ChangeChar()
waitForLoadingScreen()
yrest(3000)
loadProfile()
loadPaths("whicheveryouwanttoload")
If you want to reload he same file you can also use the variable __WPL.FileName

Code: Select all

loadPaths(__WPL.FileName)
  • 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
nightclaw
Posts: 123
Joined: Sun Sep 02, 2012 4:39 am

Re: ElfDaily simplyfied

#34 Post by nightclaw » Sat Sep 29, 2012 11:49 pm

ya dont have fastlogin or other installed could not figure it out was alot of terms on the how to that i did not under stand i am more step by step kind person :/ but thax 4 info it helps

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

Re: ElfDaily simplyfied

#35 Post by rock5 » Sun Sep 30, 2012 1:04 am

Well I don't think I can explain it any more simpler than the step by step instructions on the first post of that topic, sorry.
  • 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
nightclaw
Posts: 123
Joined: Sun Sep 02, 2012 4:39 am

Re: ElfDaily simplyfied

#36 Post by nightclaw » Tue Oct 02, 2012 4:08 am

np it my sucky ness :( thax helping though

alagoas
Posts: 2
Joined: Thu Oct 11, 2012 8:27 am

Re: ElfDaily simplyfied

#37 Post by alagoas » Thu Oct 11, 2012 9:43 am

Hello.

I'm trying to use this script but he only swap between two chars and i really don't understand why.
I have 3 accounts in the accountlogin.lua file, each one with 8 chars.

Here's my code:

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
questEndNpcID1 = 112794
questName1 = "Helping Them Grow"
function relog()
  SetCharList({
   {account=1 , chars= {}},
   {account=2 , chars= {}},
   {account=3 , chars= {}},
   })
      LoginNextChar()
      loadProfile()
      loadPaths("ElfDaily");
end
</onLoad>
 <!-- # 1 --><waypoint x="31847" z="4592" tag ="Main">
    local dqCount, dqPerDay = RoMScript("Daily_count()");
    if dqPerDay > dqCount then
       queststate = getQuestStatus(questName1);
       if queststate == "complete" then
          player:target_NPC(questEndNpcID1);
          CompleteQuestByName(questName1);
         yrest(300);
         __WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));
        else
          player:target_NPC(questEndNpcID1);
          AcceptQuestByName(questName1,questEndNpcID1);
         yrest(300);
       end
    else
relog()
    end
    </waypoint>
   <!-- #  4 --><waypoint x="31847" z="4583" y="9">   
       queststate = getQuestStatus(questName1);
       if queststate == "not accepted" then
         __WPL:setWaypointIndex(1);
      end
   </waypoint>
   <!-- #  3 --><waypoint x="31860" z="4646" y="9">   </waypoint>
   <!-- #  2 --><waypoint x="31742" z="5070" y="-11">   </waypoint>
   <!-- #  1 --><waypoint x="31416" z="5715" y="-33" tag = "Item1">   
    queststate = getQuestStatus(questName1)
    if queststate == "incomplete" then
       player:target_Object(112976,300);
       yrest(2500);
       __WPL:setWaypointIndex(__WPL:findWaypointTag("Item1"));
   end
    </waypoint>
   <!-- #  1 --><waypoint x="31416" z="5715" y="-33">   </waypoint>
   <!-- #  2 --><waypoint x="31742" z="5070" y="-11">   </waypoint>
   <!-- #  3 --><waypoint x="31860" z="4646" y="9">   </waypoint>
   <!-- #  4 --><waypoint x="31847" z="4583" y="9">   </waypoint>
 
   
</waypoints>
What i exactly do is:
- Connect into account 2 using fastlogin button.
- I choose char 1 to enter the game.
- I start the bot.

When done with the quest, he goes back to the char selection screen and enters with char 2.
He makes the quest with this chars then goes back to char selection screen, then enters the game with previous char, and does that until i stop the bot.

Here is what console tells:

Code: Select all

Chagement du trajet ElfDaily.xml
No return path with default naming ElfDaily_return.xml found.
We use the normal waypoint path ElfDaily.xml now.
Deplacement au chemin #1, (31847, 4592)
Changing to character 2 account 1.
l adresse du joueur a changÚe: 0x5144A000
Ranged skill found: MAGE_FLAME
We read the hotkey settings from your bindings.txt file C:\Users\xxxxx\Mes Doc
uments\Runes of Magic\bindings.txt instead of using the settings.xml file.
Loading profile xxxxxxx.xml
Testing 'ingamefunctions' macro. If it gets stuck here, please update the 'ingam
efunctions' by copying the 'ingamefunctions' folder from 'rom/devtools' to the g
ames 'interface/addons' folder.
MACRO Test: ok
Ranged skill found: MAGE_FLAME
Chagement du trajet ElfDaily.xml
No return path with default naming ElfDaily_return.xml found.
We use the normal waypoint path ElfDaily.xml now.
Deplacement au chemin #1, (31847, 4592)
Changing to character 3 account 1.
l adresse du joueur a changÚe: 0x51AF1400
Ranged skill found: DRUID_EARTH_ARROW
We read the hotkey settings from your bindings.txt file C:\Users\xxxxx\Mes Doc
uments\Runes of Magic\bindings.txt instead of using the settings.xml file.
Loading profile xxxxxxx.xml
Testing 'ingamefunctions' macro. If it gets stuck here, please update the 'ingam
efunctions' by copying the 'ingamefunctions' folder from 'rom/devtools' to the g
ames 'interface/addons' folder.
MACRO Test: ok
Ranged skill found: DRUID_EARTH_ARROW
Chagement du trajet ElfDaily.xml
No return path with default naming ElfDaily_return.xml found.
We use the normal waypoint path ElfDaily.xml now.
Deplacement au chemin #1, (31847, 4592)
Changing to character 3 account 1.
I tried to find a solution on forum but i didn't find anything like my problem.

alagoas
Posts: 2
Joined: Thu Oct 11, 2012 8:27 am

Re: ElfDaily simplyfied

#38 Post by alagoas » Thu Oct 11, 2012 5:16 pm

Problem solved.
In my waypoints folder, there was only one file named ElfDaily.xml, but the bot listed 2. I was probably using tha wrong one.
I really don't know where this other file came from.
I deleted everything in this folder and it solved the problem.

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

Re: ElfDaily simplyfied

#39 Post by rock5 » Fri Oct 12, 2012 12:32 am

I believe the reason you saw 2 elfdailies in the waypoint list is because of a known bug that duplicates the last item in a column in the first place of the next column. This is only a bug in the way it displays the list. It should not have any effect on the way the waypoint runs. It certainly has nothing to do with the problem you reported. More likely is it was relogging too fast and the character number that was logged in wasn't being updated before relogging, so it was logging back into the same account. If the problem reoccurs, try adding

Code: Select all

yrest(3000)
player:update()
after the LoginNextChar() command.
  • 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

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

Re: ElfDaily simplyfied

#40 Post by Hidden » Sat Oct 13, 2012 6:16 am

Code: Select all

   <!-- #  3 --><waypoint x="31412" z="5714" y="-33" tag ="Item">
        queststate = getQuestStatus("Helping Them Grow")
            if queststate == "incomplete" then
            yrest(1000);player:target_Object("Cleansing Crystal");yrest(1000);
		__WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
	end
   </waypoint>
Have noticed the code seems to hang here occasionally, about 12 characters in then randomly I will have to click it myself before it continues. Is there maybe a cleaner way of writing this part?

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests