Page 43 of 46

Re: rock5's "fastLogin Revisited"

Posted: Sat Oct 25, 2014 4:57 am
by rock5
Well player:openStore returns true if the store opens, so we could use that. Try this

Code: Select all

	<!-- #  1 --><waypoint x="-10291" z="2206" y="19">
		local empty = inventory:itemTotalCount(0)
		local needed = (#names - name_index) * number_to_send - inventory:itemTotalCount(BeltName)
		repeat
			yrest(1000)
		until player:openStore(npcName)
		if needed > empty then
			store:buyItem(BeltName, empty)
		else
			store:buyItem(BeltName, needed)
		end
	</waypoint>
That will keep trying until it opens the store. Then it will buy the items.

Re: rock5's "fastLogin Revisited"

Posted: Sat Oct 25, 2014 5:03 am
by Desmond
thanks Rock5's

Re: rock5's "fastLogin Revisited"

Posted: Sun Oct 26, 2014 9:10 am
by Desmond
And if I add something such as the time code, or code waitForLoadingScreen (500000)

Code: Select all

local currchar = RoMScript("CHARACTER_SELECT.selectedIndex")
yrest(500000); -- Wait five minutes.
ChangeChar(currchar)
I think it should go back to the character selection and wait five minutes

Re: rock5's "fastLogin Revisited"

Posted: Sun Oct 26, 2014 9:55 am
by rock5
Like I said, it's not possible with the current version of fastLogin. You could shut the game down, wait 5 minutes then start a new client.

Code: Select all

	killClient()
	rest(50000)
	login(CurrentLoginChar, CurrentLoginAcc, getServerLink())
That might work. Of course you need userfunction_login userfunction. Those variables should already exist so you shouldn't need to get CHARACTER_SELECT.selectedIndex.

Re: rock5's "fastLogin Revisited"

Posted: Sun Oct 26, 2014 10:12 am
by Desmond
rock5 wrote:Like I said, it's not possible with the current version of fastLogin. You could shut the game down, wait 5 minutes then start a new client.

Code: Select all

	killClient()
	rest(50000)
	login(CurrentLoginChar, CurrentLoginAcc, getServerLink())
That might work. Of course you need userfunction_login userfunction. Those variables should already exist so you shouldn't need to get CHARACTER_SELECT.selectedIndex.
except that if nothing else is needed since I have not yet figured out with userfunction_login, well then thank you I'll try

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 2:03 am
by Hotkey
Hi, Rok5. Sorry for my bad English. I have a Problem associated with waypoints. Character runs on the desired point. Checks whether the tasks performed, and if the rejoining to the next character. But when it comes to the NPC, he does not take the quest, it does not, do not use the quest item is. In what may be the Problem? Perhaps something is not installed?But all the other waypoints are working properly.But all the other waypoints are working properly. I play RU server.
This waypoint does not work on any RU and not work EU server

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");
      CompleteQuestByName()
   </waypoint>
   <!-- #  8 --><waypoint x="31987" z="3368" y="6">   </waypoint>
   <!-- # 22 --><waypoint x="32061" z="3391" y="5">   </waypoint>
   <!-- # 23 --><waypoint x="32212" z="3354" y="28">   </waypoint>
   <!-- # 24 --><waypoint x="32288" z="3346" y="28">      player:target_NPC("Daily Quest Manager");
      AcceptQuestByName()
      player:target_NPC("Daily Quest Manager");
      CompleteQuestByName()
   </waypoint>
   <!-- # 29 --><waypoint x="32264" z="3338" y="28">   </waypoint>
   <!-- # 30 --><waypoint x="32157" z="3403" y="12">   </waypoint>
   <!-- # 31 --><waypoint x="31897" z="3886" y="12">   </waypoint>
   <!-- # 32 --><waypoint x="31842" z="4150" y="32">   </waypoint>
   <!-- # 33 --><waypoint x="31847" z="4230" y="37">   </waypoint>
   <!-- # 34 --><waypoint x="31939" z="4360" y="33">   </waypoint>
   <!-- # 35 --><waypoint x="31966" z="4437" y="15">   </waypoint>
   <!-- # 36 --><waypoint x="31921" z="4517" y="6">   </waypoint>
   <!-- #  1 --><waypoint x="31847" z="4592" tag ='Main'>
         queststate = getQuestStatus("Helping them Grow");
          if queststate == "complete" then
               player:target_NPC("Blinsik");
           CompleteQuestByName("helping them grow")
   end
         local dqCount, dqPerDay = RoMScript("Daily_count()");
     if dqCount == 10 then              
                 SetCharList({
   {account=1, chars= {}},
   {account=2, chars= {}},
   {account=3, chars= {}},
   {account=4, chars= {}},
   {account=5, chars= {}},   
})
LoginNextChar()
loadProfile()
loadPaths(__WPL.FileName);
         else
               player:target_NPC("Blinsik");
               AcceptQuestByName("helping them grow")
          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_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>

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 2:26 am
by rock5
This waypoint file is in English. Are you playing in English or Russian?

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 2:39 am
by Hotkey
I play on the Russian server, but I also tried the waypoint and there rom4u Angel City English and also Problem

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 3:15 am
by rock5
I don't know what you are doing wrong but it works fine for me. Maybe you have an old version of the QuestClass userfunction. What is printed in micromacro when it fails to accept the quest?

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 3:29 am
by Hotkey
Как только персонаж появляется, он просто подходит к NPC и никто целевой занимает всего работает на точках. Mikromakro вчера обновлены до последней версии. Все точки работают и это не. Не могу установить что-то?
I have no such folder QuestClass userfunction where to download please tell me I can not find, or do I have to try your micromacro?

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 4:21 am
by rock5
You don't have to download it. If you had it installed, and it was an old version, it might have caused problems. But if you haven't installed it then it should work fine without it. If you had it installed you would find it in "rom/userfunctions/userfunction_questlogclass.lua"

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 10:40 am
by Hotkey
I installed as you said userfunction_questlogclass.lua but all the same character in the target NPC does not accept, and even if I manually get the quest bot does not use the item daily quest.What could be the problem yesterday. I updated my micromacro maybe we should use the old version? Image

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 10:59 am
by rock5
Does that mean you also got this message?

Code: Select all

We try to find NPC Blinsk:
Sorry, we can't find NPC Blinsik.
Or is it just taking too long to open the dialog? If it's taking too long you could try waiting until the dialog is visible, eg.

Code: Select all

repeat
   player:target_NPC("Blinsik")
   yrest(500)
until RoMScript("SpeakFrame:IsVisible()")
Although I suspect it didn't find the npc because if it had, then the AcceptQuestByName function would have opened the dialog again anyway. I'm not sure why it would fail to see the npc. Maybe you should try using the ids instead, eg.

Code: Select all

player:target_NPC(112794) -- Blinsik
and

Code: Select all

player:target_NPC(112976) -- Clensing Crystal

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 11:07 am
by Hotkey
well, I have working RU waypoint with onload
but I don't know what and where to insert it to when performing 10 daily quest moved on to the next character, and when I finished the account moved to the following account. Only 5 accounts for 8 characters. Help me Rock

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<waypoints type="TRAVEL">
    <onLoad>
        -- repeat npcname=RoMScript("TEXT('Sys112794_name')"); yrest(500) until npcname -- ie. "Blinsik"
        repeat npcname="\129\171\168\173\225\168\170"; yrest(500) until npcname -- ie. "Blinsik"
        printf('NPC: %s (%d)\n',npcname,112794)
    </onLoad>
    <!-- #  1 --><waypoint x="31820" z="4597" tag="main">
      player:target_NPC(npcname);player:rest(1);

      RoMScript("CompleteQuest()"); yrest(1);
      RoMScript("AcceptQuest()"); yrest(1);
      RoMScript("AcceptQuest()"); yrest(1);

      player:target_NPC(npcname);player:rest(1);

      RoMScript("CompleteQuest()"); yrest(1);
      RoMScript("AcceptQuest()"); yrest(1);
      RoMScript("AcceptQuest()"); yrest(1);

      local d, m = RoMScript("Daily_count()");
      if (d and d >= m) then
          cprintf(cli.lightblue, "All quests are completed\n");
          player:rest(13);
          player:logout(false);
      elseif d then
          cprintf(cli.lightblue, "Completed %d dailies\n", d);
      end;
    </waypoint>
    <!-- #  2 --><waypoint x="31794" z="4637">   </waypoint>
    <!-- #  3 --><waypoint x="31809" z="4683">   </waypoint>
    <!-- #  4 --><waypoint x="31853" z="4940">   </waypoint>
    <!-- #  5 --><waypoint x="31732" z="5128">   </waypoint>
    <!-- #  6 --><waypoint x="31605" z="5353">   </waypoint>
    <!-- #  7 --><waypoint x="31487" z="5586">   </waypoint>
    <!-- #  8 --><waypoint x="31415" z="5726">   </waypoint>
    <!-- #  9 --><waypoint x="31423" z="5713">
        if(1 > inventory:getItemCount(204839)) then
            player:target_Object(112976,6000,false);
        else
            yrest (1500)
            while (1 > inventory:getItemCount(204840)) do
                player:target_Object(112976,6000,false);
            end
        end
    </waypoint>
    <!-- # 10 --><waypoint x="31438" z="5659">   </waypoint>
    <!-- # 11 --><waypoint x="31643" z="5264">   </waypoint>
    <!-- # 12 --><waypoint x="31741" z="5111">   </waypoint>
    <!-- # 13 --><waypoint x="31827" z="4846">   </waypoint>
    <!-- # 14 --><waypoint x="31795" z="4646">   </waypoint>
    <!-- # 15 --><waypoint x="31817" z="4594">   </waypoint>
</waypoints> 

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 11:23 am
by Hotkey
player:target_NPC("Blinsik")
yrest(500)
until RoMScript("SpeakFrame:IsVisible()")
opens a window ops Blinchik but does not take the quest and immediately runs to item quest but does not use it

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 12:55 pm
by rock5
Here, I added the ids for you. Try this first.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<waypoints type="TRAVEL">
   <!-- #  1 --><waypoint x="31953" z="3272" y="22">
      player:target_NPC(112793); -- "Gamunhan"
      AcceptQuestByName(422241) -- "getting to know yourself"
      player:target_NPC(112793); -- "Gamunhan"
      CompleteQuestByName()
   </waypoint>
   <!-- #  8 --><waypoint x="31987" z="3368" y="6">   </waypoint>
   <!-- # 22 --><waypoint x="32061" z="3391" y="5">   </waypoint>
   <!-- # 23 --><waypoint x="32212" z="3354" y="28">   </waypoint>
   <!-- # 24 --><waypoint x="32288" z="3346" y="28">
      player:target_NPC(112949); -- "Daily Quest Manager"
      AcceptQuestByName()
      player:target_NPC(112949); -- "Daily Quest Manager"
      CompleteQuestByName()
   </waypoint>
   <!-- # 29 --><waypoint x="32264" z="3338" y="28">   </waypoint>
   <!-- # 30 --><waypoint x="32157" z="3403" y="12">   </waypoint>
   <!-- # 31 --><waypoint x="31897" z="3886" y="12">   </waypoint>
   <!-- # 32 --><waypoint x="31842" z="4150" y="32">   </waypoint>
   <!-- # 33 --><waypoint x="31847" z="4230" y="37">   </waypoint>
   <!-- # 34 --><waypoint x="31939" z="4360" y="33">   </waypoint>
   <!-- # 35 --><waypoint x="31966" z="4437" y="15">   </waypoint>
   <!-- # 36 --><waypoint x="31921" z="4517" y="6">   </waypoint>
   <!-- #  1 --><waypoint x="31847" z="4592" tag ='Main'>
         queststate = getQuestStatus(422340); -- "Helping them Grow"
         if queststate == "complete" then
            repeat
               player:target_NPC(112794); -- "Blinsik"
               yrest(500)
            until RoMScript("SpeakFrame:IsVisible()")
            CompleteQuestByName(422340) -- "helping them grow"
         end
         local dqCount, dqPerDay = RoMScript("Daily_count()");
         if dqCount == 10 then
            SetCharList({
               {account=1, chars= {}},
               {account=2, chars= {}},
               {account=3, chars= {}},
               {account=4, chars= {}},
               {account=5, chars= {}},
            })
            LoginNextChar()
            loadProfile()
            loadPaths(__WPL.FileName);
         else
            repeat
               player:target_NPC(112794); -- "Blinsik"
               yrest(500)
            until RoMScript("SpeakFrame:IsVisible()")
            AcceptQuestByName(422340) -- "helping them grow"
         end
   </waypoint>
   <!-- #  2 --><waypoint x="31812" z="4849">   </waypoint>
   <!-- #  3 --><waypoint x="31415" z="5720" tag = "Item">
         queststate = getQuestStatus(422340) -- "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>

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 1:57 pm
by Hotkey
Thank you very much Rock. It really works like it should. You Guru, thank you!

Re: rock5's "fastLogin Revisited"

Posted: Wed Nov 05, 2014 5:01 pm
by Hotkey
Guru Rock. Do not think for insolence, and if you have this type of waypoint only to the character of the Valley of the Elves came to Varanasi and activated Magic Converter and teleport back to the Valley of the preparation.
Just as I introduce them all manually drive ... It will take a very long time. Could you help me with this please.

Re: rock5's "fastLogin Revisited"

Posted: Thu Nov 06, 2014 12:09 am
by rock5
I had a look. I have a "get magicbox" waypoint file but it's for Heffner. But it's easy enough to do so I'll make it for you.
ElfToMagicbox.xml
(4.84 KiB) Downloaded 328 times
You can add the next file to load by editing the variable at the top of the file. If you have already gotten the magic box then it wont go and get it but immediately load the next file.

Re: rock5's "fastLogin Revisited"

Posted: Thu Nov 06, 2014 4:15 am
by Hotkey
Thanks Rock it works, after activating magicbox the bot runs back to the NPC Blinsik but after that he must go to the next character ie here, but instead he runs again in Varanas

Code: Select all

SetCharList({
               {account=1, chars= {}},
               {account=2, chars= {}},
               {account=3, chars= {}},
               {account=4, chars= {}},
               {account=5, chars= {}},
            })
            LoginNextChar()
            loadProfile()
            loadPaths(__WPL.FileName);
         else
            repeat
but instead he runs again in Varanas