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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: rock5's "fastLogin Revisited"

#721 Post by rock5 » Mon Mar 31, 2014 4:53 am

  • SetRestartClientSettings(8, rom)
Should be
  • SetRestartClientSettings(8, "rom")
Although rom is probably nil so it would probably use "rom" link by default anyway.

Otherwise I can't see anything else wrong with 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

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

Re: rock5's "fastLogin Revisited"

#722 Post by ZZZZZ » Mon Mar 31, 2014 5:30 am

Unfortunately still does it with those 2 files updated :/ Just odd that it was perfectly fine until I got a new client xD Will try removing all but that addon now and see how it goes.

Still screws up with just IGF and ExtendedMacroIcons :( Will have to just get rid of it permanently i guess.

Notorious
Posts: 19
Joined: Thu Jan 02, 2014 7:46 am

Re: rock5's "fastLogin Revisited"

#723 Post by Notorious » Tue Apr 01, 2014 1:43 am

Log on character 1 works perfect, but 2-8 still doesn't work.

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

Re: rock5's "fastLogin Revisited"

#724 Post by rock5 » Tue Apr 01, 2014 2:35 am

Have you checked that the server info is correct in accountlogin.lua?
  • 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

Notorious
Posts: 19
Joined: Thu Jan 02, 2014 7:46 am

Re: rock5's "fastLogin Revisited"

#725 Post by Notorious » Tue Apr 01, 2014 3:00 am

You mean this line?

Code: Select all

Account21 = {	UserName = "",		Password = "", Server = "",	},
Yes is correct.

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

Re: rock5's "fastLogin Revisited"

#726 Post by rock5 » Tue Apr 01, 2014 4:16 am

Yes, are they filled in correctly?
  • 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

Notorious
Posts: 19
Joined: Thu Jan 02, 2014 7:46 am

Re: rock5's "fastLogin Revisited"

#727 Post by Notorious » Tue Apr 01, 2014 4:36 am

Yes

Like I said, after reset game if next char is on position 1 script works good, charcter logs to game.
But if is on position 2-8 when script try select character, game back to server selection window.

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

Re: rock5's "fastLogin Revisited"

#728 Post by rock5 » Tue Apr 01, 2014 5:39 am

Are you 100% sure? Because if I change the server so it's wrong, I can log in to a character but when I try to change character with the bot, it stop with the server selection. Exactly like what was happening to you.
Notorious wrote:after reset game if next char is on position 1 script works good
Are to talking about when the game restarts? Are you saying, if the game restarts and the character it is loading is character 1, then it works? But if the first character it loads, after a restart, is 2-8 then it 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

Notorious
Posts: 19
Joined: Thu Jan 02, 2014 7:46 am

Re: rock5's "fastLogin Revisited"

#729 Post by Notorious » Tue Apr 01, 2014 8:24 am

Are you saying, if the game restarts and the character it is loading is character 1, then it works? But if the first character it loads, after a restart, is 2-8 then it doesn't?
Yes, when script restart game and character to load is character 1 then it works. If character to load is on position 2-8 its not work.

The same problem exist with all my 5 account.
Are you 100% sure? Because if I change the server so it's wrong, I can log in to a character but when I try to change character with the bot, it stop with the server selection. Exactly like what was happening to you.
It not stop with the server selection. It log to account, server correct, but when script try select character from position 2-8 it back to server selection.

Problem exist only when script restart game, without restart change character works good. So im 100% sure that my accountlogin.lua is filled correct.

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

Re: rock5's "fastLogin Revisited"

#730 Post by rock5 » Tue Apr 01, 2014 10:30 am

Ok, that narrows down where I should look for the problem. I'll look into it tomorrow.
  • 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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: rock5's "fastLogin Revisited"

#731 Post by rock5 » Wed Apr 02, 2014 1:44 am

I was able to reproduce the error. I restarted the client every 3 relogs and went through all my alts. I got the serverlist after 13 characters. I've now added some print messages and I'll try again after the server maintenance.
  • 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

Agrozet
Posts: 23
Joined: Mon May 07, 2012 7:02 am

Re: rock5's "fastLogin Revisited"

#732 Post by Agrozet » Wed Apr 02, 2014 12:23 pm

Hi, I have an idea
My accounts:

SetCharList({
{account=1,chars={1,2,3,4,5,6}},
{account=2,chars={1,2,3,4}},
{account=3,chars={1,2}},
{account=4,chars={1,2.3}},
})

-------------------------------------------------- --------------------------
This group does: daily_1  
{account=1,chars={2,3,4,5,6}},
{account=2,chars={2,4}},

last char acc2 / 4 ends waiponts

switch:
loadpaths (daily_2)
{account = 2 chars = {1}},
{account = 3 chars = {1,2}},
{account = 4 chars = {1}}, 

switch:
loadpaths (daily_3)         
{account = 4 chars = {2,3}},  

switch:
loadpaths (daily_4)         
{account = 1, chars = {1}},                    


it is possible to implement please?

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

Re: rock5's "fastLogin Revisited"

#733 Post by rock5 » Wed Apr 02, 2014 8:06 pm

There is a function called IsLastChar() that returns true if this character is the last in the list. You can use it to switch. Example;
  • -- Daily 1:

    Code: Select all

    SetCharList({
        {account=1,chars={2,3,4,5,6}},
        {account=2,chars={2,4}},
    })
    if IsLastChar() then
        ChangeChar(1,2) -- Char 1, Acc 2 - First char in daily2 list.
        loadProfile()
        loadPaths("daily2")
    else
        LoginNextChar()
    end
  • 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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: rock5's "fastLogin Revisited"

#734 Post by rock5 » Thu Apr 03, 2014 1:22 am

@Notorious, I think I found the problem. The gameState function was sometimes reporting that it was at the character selection even though it wasn't. So it would try to click the character then press Enter. This caused the Enter to cancel the login process. As you may know, if you cancel the login, it pops up the server selection screen.

I found what I think is a better pointer. Here is a version of userfunction_login.lua using the new address. It should only work with latest official version of rom 6.0.7 as it's using a static address. Tell me if it works and I'll see about adding a pattern search for it so it will work with all versions.
Attachments
userfunction_login.lua
(10.38 KiB) Downloaded 199 times
  • 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"

#735 Post by 883Dman » Thu Apr 03, 2014 12:55 pm

I'm having a hell of a time with crashing today when it switches characters. My dailies were mostly trouble free but my secret garden is crashing 90% of the time.
Anyone see anything that might be the culprit? It worked fine before.

Code: Select all

<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">

   <!-- #  1 --><waypoint x="31953" z="3272" y="22">      player:target_NPC("Gamunhan");
      AcceptQuestByName("getting to know yourself")
      player:target_NPC("Gamunhan");
  
	 
end

   </waypoint>
   <!-- #  2 --><waypoint x="31987" z="3368" y="6">   </waypoint>
   <!-- # 3 --><waypoint x="32061" z="3391" y="5">   </waypoint>
   <!-- # 4 --><waypoint x="32212" z="3354" y="28">   </waypoint>
   <!-- # 5 --><waypoint x="32288" z="3346" y="28">      
   player:target_NPC("Daily Quest Manager");
      AcceptQuestByName()
      player:target_NPC("Daily Quest Manager");
      CompleteQuestByName()
   </waypoint>
   <!-- # 6 --><waypoint x="32264" z="3338" y="28">   </waypoint>
   <!-- # 7 --><waypoint x="32157" z="3403" y="12">   </waypoint>
   <!-- # 8 --><waypoint x="31897" z="3886" y="12">   </waypoint>
   <!-- # 9 --><waypoint x="31842" z="4150" y="32">   </waypoint>
   <!-- # 10 --><waypoint x="31847" z="4230" y="37">   </waypoint>
   <!-- # 11 --><waypoint x="31939" z="4360" y="33">   </waypoint>
   <!-- # 12 --><waypoint x="31966" z="4437" y="15">   </waypoint>
   <!-- # 13 --><waypoint x="31921" z="4517" y="6">   </waypoint>
   <!-- #  14 --><waypoint x="31847" z="4592" tag ="Main">
    player:target_NPC("Blinsik");
	 player:target_NPC("Blinsik");
         queststate = getQuestStatus("Helping them Grow");
          if queststate == "complete" then
               player:target_NPC("Blinsik");
           CompleteQuestByName("helping them grow")
   end
      
	   local dailyQuestCount, dailyQuestsPerDay= RoMScript("Daily_count()");
      if 10 == dailyQuestCount then
   if inventory:itemTotalCount(202434) > 0 then
                 inventory:useItem(202434)
   end
	end
	 if RoMScript("Daily_count()") == 10 then -- Done 10 dailies
  SetCharList({ -- example character list
     {account=5, chars= {1,2,4,5,6,7,8}}, <!-- xxx -->
	    {account=6, chars= {2,3,4,5,6,7,8}},   <!-- xxx-->
		 {account=8, chars= {2,3,4,5,6,7,8}}, <!-- xxx-->
	   {account=1, chars= {}}, <!-- xxx-->

	   
    })
		SetChannelForLogin(1)
    LoginNextChar()
	else
    AcceptQuestByName("Helping them Grow")
end
   </waypoint>
  <!-- #  2 --><waypoint x="31847" z="4600">  player:target_NPC("Blinsik");  </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_Object(112976,500);
            yrest(3000);
            __WPL:setWaypointIndex(__WPL:findWaypointTag("Item"));
         end
   </waypoint>
   <!-- #  4 --><waypoint x="31878" z="4692">   </waypoint>
   <!-- #  5 --><waypoint x="31843" z="4593"> __WPL:setWaypointIndex(__WPL:findWaypointTag("Main"));  </waypoint>
</waypoints>

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

Re: rock5's "fastLogin Revisited"

#736 Post by 883Dman » Thu Apr 03, 2014 1:11 pm

make that 100% ><

Agrozet
Posts: 23
Joined: Mon May 07, 2012 7:02 am

Re: rock5's "fastLogin Revisited"

#737 Post by Agrozet » Thu Apr 03, 2014 3:13 pm

does not load the: loadPaths("daily2")

Code: Select all

  	SetCharList({
	{account=4, chars= {2,3}},
	{account=1, chars= {2}},
    	})
           if IsLastChar() then
      	ChangeChar(2,1)  -- Char 1, Acc 2 - First char in daily2 list.
        	loadProfile()
	loadPaths("daily2")
else
	LoginNextChar()
	end
		end
Edit

I understand where I went wrong :-)

Code: Select all

SetCharList({
   	{account=4, chars= {2,3}},
          })           
        if IsLastChar() then
        	ChangeChar(2,1)		-- Char , Acc  - First char in daily2 list. 
        	loadProfile()
   	loadPaths("daily2")
else
   	LoginNextChar()
   	end
                    end
Last edited by Agrozet on Sat Apr 26, 2014 3:16 pm, edited 1 time in total.

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

Re: rock5's "fastLogin Revisited"

#738 Post by 883Dman » Thu Apr 03, 2014 4:17 pm

for crying out loud, I pasted the wrong wp. Was supposed to be a modified sg2. However, it seemed to straighten out right after I posted this (of course), so I think it was a server issue. I'm convinced ROM is deliberately lowering QOS on our server in an attempt to drive away us last few holdouts. XD I'll see how it acts tomorrow.

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

Re: rock5's "fastLogin Revisited"

#739 Post by lisa » Thu Apr 03, 2014 6:07 pm

sg4 is the place to be ;)
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
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: rock5's "fastLogin Revisited"

#740 Post by rock5 » Thu Apr 03, 2014 9:26 pm

Seeing as it was just misbehaving one day, I was going to suggest it might be a server issue.

Anyway, I have reason to believe that another issue in another topic might be caused by a yrest I added to RoMScript. It could be the cause of many currently reported issues with 772. I posted an edited version. Try it and let me know if it helps.
http://www.solarstrike.net/phpBB3/viewt ... 160#p57160
  • 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

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 3 guests