rock5's "fastLogin Revisited"

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
User avatar
Lamkefyned
Posts: 348
Joined: Thu May 23, 2013 11:38 am
Location: Spain

Re: rock5's "fastLogin Revisited"

#581 Post by Lamkefyned » Fri Nov 15, 2013 1:04 am

problem fixed
If you think something is right just because everyone else believes,you're not thinking.

User avatar
nerf
Posts: 88
Joined: Thu Jan 27, 2011 10:44 am

Re: rock5's "fastLogin Revisited"

#582 Post by nerf » Sun Nov 17, 2013 2:56 pm

rock5 wrote:It is included with XP so I have no idea why it wouldn't work. Sorry.
I found something on because my bot does not recognize the command TASKKILL

TASKKILL works if your operating system is Windows XP Professional or Windows 7, but if it's like in my case I have a Windows XP home edition TASKKILL command does not exist, the equivalent would TSKILL

I found this http://www.computerhope.com/tskill.htm


I tried modifying userfunction login does not work, but I think it should be something like,

Code: Select all

os.execute("TSKILL /A");

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

Re: rock5's "fastLogin Revisited"

#583 Post by rock5 » Sun Nov 17, 2013 10:11 pm

Good catch. You'll have to test it until you find the right format that works because you're the one with the operating system. Just "tskill /a" isn't enough because it doesn't include the pid. I don't know if the /A is necessary but if I would have to guess I'd say it should be,

Code: Select all

os.execute("TSKILL " .. pid )
Note: if you are testing the command directly from a dos box commandline, the pids you get from the taskmanager are hex numbers. You need to convert a processes id to a digital number to use with the command.

I think, though, that it's possible that if the function doesn't have a /f option (force option ) it wont work.

I would have thought there would be some official taskkill that XP Home users could download but I couldn't find anything.
  • 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
Bot_romka
Posts: 96
Joined: Tue Apr 05, 2011 2:59 am
Location: Russia

Re: rock5's "fastLogin Revisited"

#584 Post by Bot_romka » Wed Dec 11, 2013 1:18 pm

rock5 wrote:Version 3.4

Some nice changes here.
  • Fixed sometimes it asking for server.
    • Sometimes it would ask for the server if you previously canceled a log in. Now it shouldn't.
I solve this problem with sometimes shows ServerListFrame by modify serverlist.lua file.
Maybe its need for someone who used old 65 accaunt version.
Attachments
serverlist.lua
For prevent sometimes shows ServerListFrame
(7.5 KiB) Downloaded 169 times
Last edited by Bot_romka on Wed Dec 11, 2013 1:34 pm, edited 1 time in total.

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

Re: rock5's "fastLogin Revisited"

#585 Post by rock5 » Wed Dec 11, 2013 1:31 pm

But it was already fixed. Wasn't it working for you?
  • 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
Bot_romka
Posts: 96
Joined: Tue Apr 05, 2011 2:59 am
Location: Russia

Re: rock5's "fastLogin Revisited"

#586 Post by Bot_romka » Wed Dec 11, 2013 1:33 pm

rock5 wrote:But it was already fixed. Wasn't it working for you?
I used old 65 accaunts version. And its good solve for me.

Anonymous_x3
Posts: 5
Joined: Thu Dec 12, 2013 12:49 pm

Re: rock5's "fastLogin Revisited"

#587 Post by Anonymous_x3 » Thu Dec 12, 2013 6:00 pm

I installed the addons but i can't see the buttons,why?

noobbotter
Posts: 527
Joined: Fri Aug 31, 2012 1:15 pm

Re: rock5's "fastLogin Revisited"

#588 Post by noobbotter » Thu Dec 12, 2013 7:09 pm

Anonymous, did you completely exit the RoM client and restart it?

Did you make sure the files were put in the correct location inside the Runes of magic directory?

Anonymous_x3
Posts: 5
Joined: Thu Dec 12, 2013 12:49 pm

Re: rock5's "fastLogin Revisited"

#589 Post by Anonymous_x3 » Fri Dec 13, 2013 1:31 am

noobbotter wrote:Anonymous, did you completely exit the RoM client and restart it?

Did you make sure the files were put in the correct location inside the Runes of magic directory?
must the client be open while i put the file inside the directory?

Anonymous_x3
Posts: 5
Joined: Thu Dec 12, 2013 12:49 pm

Re: rock5's "fastLogin Revisited"

#590 Post by Anonymous_x3 » Fri Dec 13, 2013 1:38 am

i have done it,now it works :)

883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: rock5's "fastLogin Revisited"

#591 Post by 883Dman » Tue Dec 31, 2013 4:50 pm

I'm missing something simple I'm sure. I have the ChangeChar working great. It cycles through each character in succession. What I don;t know how to do is use the loginnexttoon and call up my character list. I run 2 instances of rom for 6 accounts to do dailies in heffner, one going to npc A and one to npc B. Some of the accounts have characters I don;t want doing that daily so I need to use the setcharlist funtion to skip over them. It would be nice if after completing one account's dailies if it would load the next account and run through the charlist. I know this is what it's designed to do but I don't know how to call the funtion to do it.

Code: Select all

<!-- #  1 --><waypoint x="-7093" z="-4147" y="172" tag="npc">	

	player:target_NPC("Hugope");
	 CompleteQuestByName("Earn a Reputation");
	local dqCount, dqPerDay = RoMScript("Daily_count()");
     if dqCount == 10 then
	 
 RoMScript("ChangeChar()") -- Log into next character
  waitForLoadingScreen();
	   loadPaths("Earn a Rep2 daily", "earn a rep_return.xml");	 
	   end
	</waypoint>
That's the meat of my wp file. I know I have to change RoMScript("ChangeChar()") to loginNextChar.

Here's my table:

Code: Select all

function SetCharList(_table)
	
		SetCharList({
			{account=1, chars= {}},
			{account=2, chars= {}},
			{account=3, chars= {3,4,5,6,7,8}},
			{account=4, chars= {1,4,5,7,8}},
			{account=7, chars= {1,3,4,5,6,7,8}},
			{account=8, chars= {2,3,4,5,6,7,8}},
			
		})
I would like one instance to run acct 1,3,4 and the other instant (which is running a slightly different wp) to load and run 2,7,8
How can I do that? Thanks.

ZZZZZ
Posts: 513
Joined: Sun Oct 21, 2012 1:42 am

Re: rock5's "fastLogin Revisited"

#592 Post by ZZZZZ » Tue Dec 31, 2013 6:05 pm

Code: Select all

  
<onLoad> 
      SetCharList({{
         {account=1, chars= {}},
         {account=3, chars= {3,4,5,6,7,8}},
         {account=4, chars= {1,4,5,7,8}},
	},
	{
         {account=2, chars= {}},
         {account=7, chars= {1,3,4,5,6,7,8}},
         {account=8, chars= {2,3,4,5,6,7,8}},
         
      }})
</onLoad>
Should be what you are after. Should go like that and you simply put LoginNextChar() in your waypoint at the desired spot.
Last edited by ZZZZZ on Tue Dec 31, 2013 6:14 pm, edited 2 times in total.

883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: rock5's "fastLogin Revisited"

#593 Post by 883Dman » Tue Dec 31, 2013 6:11 pm

Right, but where exactly does that go? In an onload or with the npc quest info in my wp? I kinda have it figured out except how/where to call the function.

883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: rock5's "fastLogin Revisited"

#594 Post by 883Dman » Tue Dec 31, 2013 6:41 pm

Crap never mind. I see it now. Sorry. Been working on another book and my brain is mushy from too much reading.

883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: rock5's "fastLogin Revisited"

#595 Post by 883Dman » Wed Jan 01, 2014 11:34 am

My characters just stood in front of the npc until rombot hit a stack overflow and terminated.

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

Re: rock5's "fastLogin Revisited"

#596 Post by rock5 » Wed Jan 01, 2014 12:35 pm

You need to put the code where the waypoint would normally end. So, for example, if you are doing dailies it ends when you turn in the last daily and before you try to accept it again. So you could do something like this at the npc (assumes variables npcname and questname are already set)

Code: Select all

player:target_NPC(npcname)
CompleteQuestByName(questname)
if RoMScript("Daily_count()") == 10 then -- Done 10 dailies
    SetCharList({ -- example character list
        {account=1, chars= {1,2,3,4,5,6,7,8}},
        {account=2, chars= {1,3,4,5,6,7}},
        {account=4, chars= {2,3,4,5,6,7,8}},
    })
    LoginNextChar()
else
    AcceptQuestByName(questname)
end
You could put the "SetCharList" command in the waypoint onload (because it only needs to be set once) but it doesn't matter.
  • 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

883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: rock5's "fastLogin Revisited"

#597 Post by 883Dman » Wed Jan 01, 2014 4:21 pm

I tried this and thought it was working but when it reached the loginnextchar it crashed with a stack overflow.

Code: Select all

	<!-- #  1 --><waypoint x="-7093" z="-4147" y="172" tag="npc">		
		
	   player:target_NPC("Hugope")
CompleteQuestByName("Earn a Rep daily")
if RoMScript("Daily_count()") == 10 then -- Done 10 dailies
    SetCharList({ -- example character list
        {account=1, chars= {1,2,3,4,5,6,7,8}},
        {account=2, chars= {1,3,4,5,6,7}},
        {account=4, chars= {2,3,4,5,6,7,8}},
    })
    LoginNextChar()
else
    AcceptQuestByName(questname)
end
	</waypoint>
I also tried this but it hangs on the first waypoint .

Code: Select all

<onload>
  SetCharList({ -- example character list
        {account=1, chars= {1,2,3,4,5,6,7,8}},
        {account=2, chars= {1,3,4,5,6,7}},
        {account=4, chars= {2,3,4,5,6,7,8}},
    })
</onload>
	<!-- #  3 --><waypoint x="-7003" z="-3925" y="165">	</waypoint>
	<!-- #  4 --><waypoint x="-7026" z="-4136" y="169">	</waypoint>
	<!-- #  1 --><waypoint x="-7093" z="-4147" y="172" tag="npc">			
	   player:target_NPC("Hugope")
CompleteQuestByName("Earn a Rep daily")
if RoMScript("Daily_count()") == 10 then -- Done 10 dailies  
    LoginNextChar()
else
    AcceptQuestByName(questname)
end
	</waypoint>
	<!-- #  2 --><waypoint x="-7042" z="-4231" y="173">	</waypoint>

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

Re: rock5's "fastLogin Revisited"

#598 Post by rock5 » Thu Jan 02, 2014 10:30 am

I tried the first example. It worked fine for me.

Hold on a second. You previously said you edited the SetCharList function.
883Dman wrote:

Code: Select all

function SetCharList(_table)
   
      SetCharList({
         {account=1, chars= {}},
         {account=2, chars= {}},
         {account=3, chars= {3,4,5,6,7,8}},
         {account=4, chars= {1,4,5,7,8}},
         {account=7, chars= {1,3,4,5,6,7,8}},
         {account=8, chars= {2,3,4,5,6,7,8}},
         
      })
I assumed you restored that when I told you the correct steps to use the userfunction. If you haven't changed this back, do so now.
  • 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

883Dman
Posts: 90
Joined: Sat Dec 08, 2012 9:25 pm

Re: rock5's "fastLogin Revisited"

#599 Post by 883Dman » Thu Jan 02, 2014 11:36 am

AH! When I saw the example table I thought I had to define the table in the .lua. It appears to be working. Haven't reached the point for it to change accounts yet but I have faith. Donation incoming!

vale46
Posts: 25
Joined: Sat Apr 23, 2011 1:22 pm

Re: rock5's "fastLogin Revisited"

#600 Post by vale46 » Thu Jan 02, 2014 11:52 am

Hey ,

I try it like the first post, works fine ! Thank you !!!

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests