Page 30 of 46

Re: rock5's "fastLogin Revisited"

Posted: Fri Nov 15, 2013 1:04 am
by Lamkefyned
problem fixed

Re: rock5's "fastLogin Revisited"

Posted: Sun Nov 17, 2013 2:56 pm
by nerf
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");

Re: rock5's "fastLogin Revisited"

Posted: Sun Nov 17, 2013 10:11 pm
by rock5
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.

Re: rock5's "fastLogin Revisited"

Posted: Wed Dec 11, 2013 1:18 pm
by Bot_romka
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.

Re: rock5's "fastLogin Revisited"

Posted: Wed Dec 11, 2013 1:31 pm
by rock5
But it was already fixed. Wasn't it working for you?

Re: rock5's "fastLogin Revisited"

Posted: Wed Dec 11, 2013 1:33 pm
by Bot_romka
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.

Re: rock5's "fastLogin Revisited"

Posted: Thu Dec 12, 2013 6:00 pm
by Anonymous_x3
I installed the addons but i can't see the buttons,why?

Re: rock5's "fastLogin Revisited"

Posted: Thu Dec 12, 2013 7:09 pm
by noobbotter
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?

Re: rock5's "fastLogin Revisited"

Posted: Fri Dec 13, 2013 1:31 am
by Anonymous_x3
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?

Re: rock5's "fastLogin Revisited"

Posted: Fri Dec 13, 2013 1:38 am
by Anonymous_x3
i have done it,now it works :)

Re: rock5's "fastLogin Revisited"

Posted: Tue Dec 31, 2013 4:50 pm
by 883Dman
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.

Re: rock5's "fastLogin Revisited"

Posted: Tue Dec 31, 2013 6:05 pm
by ZZZZZ

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.

Re: rock5's "fastLogin Revisited"

Posted: Tue Dec 31, 2013 6:11 pm
by 883Dman
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.

Re: rock5's "fastLogin Revisited"

Posted: Tue Dec 31, 2013 6:41 pm
by 883Dman
Crap never mind. I see it now. Sorry. Been working on another book and my brain is mushy from too much reading.

Re: rock5's "fastLogin Revisited"

Posted: Wed Jan 01, 2014 11:34 am
by 883Dman
My characters just stood in front of the npc until rombot hit a stack overflow and terminated.

Re: rock5's "fastLogin Revisited"

Posted: Wed Jan 01, 2014 12:35 pm
by rock5
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.

Re: rock5's "fastLogin Revisited"

Posted: Wed Jan 01, 2014 4:21 pm
by 883Dman
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>

Re: rock5's "fastLogin Revisited"

Posted: Thu Jan 02, 2014 10:30 am
by rock5
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.

Re: rock5's "fastLogin Revisited"

Posted: Thu Jan 02, 2014 11:36 am
by 883Dman
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!

Re: rock5's "fastLogin Revisited"

Posted: Thu Jan 02, 2014 11:52 am
by vale46
Hey ,

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