Page 1 of 1

Doing "help them grow" on alt problem.

Posted: Fri Sep 06, 2013 5:48 pm
by SweetLove
I just have a small problem. When in doing the daily "help them grow" and im finnish on the character, it log out and i get a blank screen. Then the bot stops.

When i open the bot i write rom/bot.lua profile:dailyelf path:daily.

Here´s a img of my problem: tinypic.com/view.php?pic=14szj0m&s=5

And here is the waypoint:

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
           sendMacro("Logout();"); yrest(60*1000);
player = CPlayer.new();
settings.load();
settings.loadProfile("DailyElf");
yrest (4000)
loadPaths("Daily");
         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>
Maybe i´ve forgot to add something to the waypoint, im not really sure.
I have login.xml in my runes of magic/interface folder
I have userfunction_LoginNextChar in userfunction.


Thank you.

Re: Doing "help them grow" on alt problem.

Posted: Fri Sep 06, 2013 11:30 pm
by rock5
login.xml, do you mean 'loginxml'?.

You didn't use any commands to change character, you just logoff. There are basically 2 options. You can use a command to just log into the next character in the current account or you can provide an account and character list and go through that list. Which do you want to do?

Re: Doing "help them grow" on alt problem.

Posted: Sat Sep 07, 2013 7:41 am
by SweetLove
rock5 wrote:login.xml, do you mean 'loginxml'?.

You didn't use any commands to change character, you just logoff. There are basically 2 options. You can use a command to just log into the next character in the current account or you can provide an account and character list and go through that list. Which do you want to do?
i mean loginxml.
i want the command that after the quest is done on this character it goes on to the next on the same account. Is it possible?

Re: Doing "help them grow" on alt problem.

Posted: Sat Sep 07, 2013 8:18 am
by rock5
Yes, use

Code: Select all

ChangeChar()
loadProfile("DailyElf")
yrest (4000)
loadPaths("Daily");

Re: Doing "help them grow" on alt problem.

Posted: Sat Sep 07, 2013 8:35 am
by SweetLove
rock5 wrote:Yes, use

Code: Select all

ChangeChar()
loadProfile("DailyElf")
yrest (4000)
loadPaths("Daily");
should i replase this with something in the waypont or i just ad it somewere?

Re: Doing "help them grow" on alt problem.

Posted: Sat Sep 07, 2013 9:07 am
by rock5
Replace
SweetLove wrote: sendMacro("Logout();"); yrest(60*1000);
player = CPlayer.new();
settings.load();
settings.loadProfile("DailyElf");
yrest (4000)
loadPaths("Daily");

Re: Doing "help them grow" on alt problem.

Posted: Sat Sep 07, 2013 9:35 am
by SweetLove
rock5 wrote:Replace
SweetLove wrote: sendMacro("Logout();"); yrest(60*1000);
player = CPlayer.new();
settings.load();
settings.loadProfile("DailyElf");
yrest (4000)
loadPaths("Daily");
OMG i love you so much!!!
It changed to the next character but then the bot stopped. Is there a way to continue with the same waypont on all characters?

here are the error that came:

tinypic.com/view.php?pic=110x9co&s=5

Re: Doing "help them grow" on alt problem.

Posted: Sat Sep 07, 2013 9:57 am
by rock5
I copied the loadPaths from your code. Obviously your waypoint file isn't called Daily.xml but DailyElf.xml. You can change it to

Code: Select all

loadPaths("dailyelf")
or you can change it so that it doesn't matter what the file is called.

Code: Select all

loadPaths(__WPL.FileName)
That just reloads the current file whatever it's called.

Re: Doing "help them grow" on alt problem.

Posted: Sat Sep 07, 2013 10:23 am
by SweetLove
rock5 wrote:I copied the loadPaths from your code. Obviously your waypoint file isn't called Daily.xml but DailyElf.xml. You can change it to

Code: Select all

loadPaths("dailyelf")
or you can change it so that it doesn't matter what the file is called.

Code: Select all

loadPaths(__WPL.FileName)
That just reloads the current file whatever it's called.
You my friend is a facking genius!!!
I love all the work you and the other moderators do to make this happen.
Keep up the good work, you are the best <3333333.