rock5's "fastLogin Revisited"
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Only post additional bot resources here. Please do not ask unrelated questions.
Re: rock5's "fastLogin Revisited"
Restore userfunction_loginnextchar.lua to original. You shouldn't ever change usesfunction files, usually.
The cot_tele now looks correct.
The cot_tele now looks correct.
- 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
Re: rock5's "fastLogin Revisited"
Wanted to use my phirius token farmers on the elven island but now get this error which the actual verson of the userfunction:
My mistake. I just noticed I downloaded the new version with 108 buttons and set up my accounts new -.-
Code: Select all
9:34pm - ...scripts/rom/userfunctions/userfunction_LoginNextChar.lua:96: bad arg
ument #1 to 'pairs' (table expected, got nil)
Last edited by Ego95 on Sat May 11, 2013 6:44 pm, edited 1 time in total.
Re: rock5's "fastLogin Revisited"
Ok thanks rock that did the trick .
Never going to touch any userfunction again .
Never going to touch any userfunction again .
Re: rock5's "fastLogin Revisited"
hi i'm trying to do one of the dailys in logar with different accounts but not working here is my script
i'm useing the dailynote addon so i will automatical take the quest and hand in the mats. But the script has errors like xlm parse and mismatch tag error
anyone can tell me what wrong
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
function relog()
SetCharList({
{account=1, chars= {1}},
{account=2, chars= {1}},
{account=3, chars= {1}},
{account=4, chars= {1}},
{account=5, chars= {3}},
{account=6, chars= {3}},
{account=7, chars= {1}},
{account=9, chars= {2}},
{account=10, chars= {1}},
})
LoginNextChar()
loadProfile()
loadPaths("__WPL.FileName");
end
</onLoad>
<!-- # 1 --><waypoint x="-626" z="-5927" y="25"> </waypoint>
<!-- # 2 --><waypoint x="-613" z="-5837" y="23"> player:target_NPC("Logar Bulletin Board");
</waypoint>
<!-- # 3 --><waypoint x="-621" z="-5903" y="25"> </waypoint>
<!-- # 4 --><waypoint x="-631" z="-5992" y="26"> player:target_NPC("Dell");
<!-- # 4 --><waypoint x="-631" z="-5992" y="26"> local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 > dqCount then relog()
end
</waypoint>
</waypoints>
anyone can tell me what wrong
Re: rock5's "fastLogin Revisited"
__WPL.FileName is a variable that holds the name of the currently loaded waypoint file. So you should use it as a variable, not a string. It should be.
Code: Select all
loadPaths(__WPL.FileName)
- 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
Re: rock5's "fastLogin Revisited"
ok i'ved changed it but still dosnt work :-
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
function relog()
SetCharList({
{account=1, chars= {1}},
{account=2, chars= {1}},
{account=3, chars= {1}},
{account=4, chars= {1}},
{account=5, chars= {3}},
{account=6, chars= {3}},
{account=7, chars= {1}},
{account=9, chars= {2}},
{account=10, chars= {1}},
})
LoginNextChar()
loadProfile()
loadPaths(__WPL.FileName);
end
</onLoad>
<!-- # 1 --><waypoint x="-626" z="-5927" y="25"> </waypoint>
<!-- # 2 --><waypoint x="-613" z="-5837" y="23"> player:target_NPC("Logar Bulletin Board");
</waypoint>
<!-- # 3 --><waypoint x="-621" z="-5903" y="25"> </waypoint>
<!-- # 4 --><waypoint x="-631" z="-5992" y="26"> player:target_NPC("Dell");
<!-- # 4 --><waypoint x="-631" z="-5992" y="26"> local dqCount, dqPerDay = RoMScript("Daily_count()");
if 10 > dqCount then relog()
end
</waypoint>
</waypoints>
Re: rock5's "fastLogin Revisited"
Code: Select all
<!-- # 4 --><waypoint x="-631" z="-5992" y="26"> player:target_NPC("Dell");
- 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
Re: rock5's "fastLogin Revisited"
ok that worked thank rock.
But i have 1 more scripte that is not working.
this one for Andor Trainig Range. the problem is that when it finishes the last wave of adds and gets the score. it will just stop and wont change to next account :-
what have i missed or did wrong?
But i have 1 more scripte that is not working.
this one for Andor Trainig Range. the problem is that when it finishes the last wave of adds and gets the score. it will just stop and wont change to next account :-
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
--=== User Options ===--
When_Finished = "charlist"
-- "end" to end script, "relog" to log next character, "charlist" to log next in 'charlist' and "waypointfilename" to load that waypointfile.
CharList = {
{account=1, chars= {1}},
{account=2, chars= {1}},
{account=3, chars= {1}},
{account=4, chars= {1}},
{account=5, chars= {3}},
{account=6, chars= {3}},
{account=7, chars= {1}},
{account=9, chars= {2}},
{account=10, chars= {1}},
}
--====================--
local kate = GetIdName(121035) --Kate Wesker
local magelly = GetIdName(120687) --Magelly Basac
--== MINIGAME ==--
repeat
player:update()
if getZoneId() ~= 355 then
local empties = inventory:itemTotalCount(0)
if 5 > empties then
-- Wait for user to make some space in inventory.
cprintf(cli.yellow,"Not much space left in inventory. Are you sure you want to continue with only %d spaces left?\n",empties)
player:sleep()
end
if 30 > inventory:itemTotalCount(203038) then
print("Not enough Phirius Token Coins.")
logentry = "Not enough Phirius Token Coins."
-- checkRelog()
return
end
if player:target_NPC(kate) then
sendMacro("ChoiceOption(1);");
yrest(1000);
waitForLoadingScreen(10)
if getZoneId() ~= 360 then
print("Failed to teleport into Ancient Treasure. Maybe you already done it today.")
logentry = "Failed to teleport into Ancient Treasure. Maybe you already done it today."
end
-- checkRelog()
end
if player:target_NPC(magelly) then
yrest(2000);
sendMacro("ChoiceOption(2);"); --Make it 1 if you want Timed arena
yrest(2000);
sendMacro("ChoiceOption(1);");
yrest(2000);
sendMacro("ChoiceOption(1);");
yrest(12000);
-- checkRelog()
-- return
end
end
repeat
yrest(10)
until player:findNearestNameOrId(106881)
print("OK event has started")
repeat
tort()
player:update()
buffed = player:getBuff(622402)
yrest(10)
until buffed.Level >= 2800 or not player:hasBuff(622402)
print("Event finished, end score was "..buffed.Level)
error("Ending script")
until false
</onLoad>
</waypoints>
Re: rock5's "fastLogin Revisited"
Notice that your previous waypoint code has a "relog" function in the onload, then at the end of the file it executes it. Your Andor waypoint file has no relog code or LoginNextChar() command.
- 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
Re: rock5's "fastLogin Revisited"
So how would you edit my scripte to make it work?
i'm still new at this sort of thing.
i'm still new at this sort of thing.
Re: rock5's "fastLogin Revisited"
Just make the relog function, same as the other file, and then call it where ever the script ends. It looks like the code used to have a "checkrelog" function because there are commented "-- checkrelog" throughout but those locations don't look right. If you put the relog command at the end of the file then you will have to get rid of the "error" command.
But, really, you should be asking the person who created the file or asking about it in it's original topic.
But, really, you should be asking the person who created the file or asking about it in it's original topic.
- 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
Re: rock5's "fastLogin Revisited"
Hi rock ive got a problem with this scripte:-
the problem is that when it goes to account 8 it logs out saying its the last character but from my listing there's still afew more to go ?
anyone know what the problem is?
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
SetCharList({
{account=1, chars= {1}},
{account=2, chars= {1}},
{account=3, chars= {1}},
{account=4, chars= {1}},
{account=5, chars= {3}},
{account=6, chars= {1}},
{account=7, chars= {1}},
{account=8, chars= {2}},
{account=9, chars= {2}},
{account=10, chars={2,3,6}},
})
</onLoad>
<!-- # 1 --><waypoint x="4873" z="-1976" y="115">takemeto("VaranasCentral");
LoginNextChar()
loadProfile()
loadPaths(__WPL.FileName); </waypoint>
</waypoints>
anyone know what the problem is?
Re: rock5's "fastLogin Revisited"
Everything looks correct. I can't see why it would stop at account 8. Has it only happened once or more than once? Does it happen all the time? Did it log in the correct character, ie. character 2, for account 8? How many times can you change character before the client crashes? Were you close to your limit?
Otherwise we will probably have to add some debug messages to figure out what is happening.
Otherwise we will probably have to add some debug messages to figure out what is happening.
- 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
Re: rock5's "fastLogin Revisited"
Happens all the time , loads account 8 and correct character does the the script and logs out and then it says last charcter and then it says auto log out?
my limite not sure becsauce it has crashed before.
my limite not sure becsauce it has crashed before.
Re: rock5's "fastLogin Revisited"
How about if you start with account 8? Does it still stop? What happens if you leave out account 8?
Here is a modified file that prints some info when changing character. Lets see if it helps.
Here is a modified file that prints some info when changing character. Lets see if it helps.
- Attachments
-
- userfunction_LoginNextChar.lua
- (7.47 KiB) Downloaded 158 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
Re: rock5's "fastLogin Revisited"
I'v made many tryouts, trying to make work the "IsLastChar" function... but hell i don't know how to do it right...
This is what i had before
What i want is, if list is not completed, relog, if it is, to change into another char and start a new waypoint...
I tried to change the "error("Bot stopped.", 0);" line, putting an "if IsLastChar" command, wich failed... i tryed changing the line without the IsLastChar, simply saying to ChangeChar, loadprofile and loadpaths, wich failed too...
Then i saw the IsLastChar should be into the function relog()... so this is what i'v made
But when last char finished, micromacro prints "Bot stopped"...
without login out or anything...
what am i doing wrong?
Thank's
This is what i had before
Code: Select all
local dqCount, dqPerDay = RoMScript("Daily_count()");
if dqPerDay == dqCount then
if doRelog then
relog()
else
error("Bot stopped.", 0);
end
I tried to change the "error("Bot stopped.", 0);" line, putting an "if IsLastChar" command, wich failed... i tryed changing the line without the IsLastChar, simply saying to ChangeChar, loadprofile and loadpaths, wich failed too...
Then i saw the IsLastChar should be into the function relog()... so this is what i'v made
Code: Select all
function relog()
SetCharList({
{account=6 , chars= {3,4,5,6,7,8}},
{account=3 , chars= {2}},
{account=4 , chars= {1}},
{account=5 , chars= {1}},
{account=2 , chars= {2}},
})
if IsLastChar() then
ChangeChar(2,3)
loadProfile()
loadPaths("Minijuegos/DaMJ")
else
LoginNextChar()
loadProfile()
loadPaths("Diarias/Diarias1");
end
end
without login out or anything...
what am i doing wrong?
Thank's
Re: rock5's "fastLogin Revisited"
"Bot stopped" only prints when "doRelog" = nil or false. Under what conditions do you change that value?
- 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
Re: rock5's "fastLogin Revisited"
I have this in the <onload>...
but if doRelog is true, why it answers nil or false?
Anyway, i'll try tomorrow to erase the "if doRelog" part and just relog()...
In that case, the "IsLastChar" should work, isn't it?
Code: Select all
doRelog = true; -- set to false, if you don't like to run multiple chars
Anyway, i'll try tomorrow to erase the "if doRelog" part and just relog()...
In that case, the "IsLastChar" should work, isn't it?
Re: rock5's "fastLogin Revisited"
I'm not sure. You could try changing the variable name to something else, just in case it's being used somewhere else.Niko wrote:but if doRelog is true, why it answers nil or false?
I can't see anything else wrong with it.Niko wrote:In that case, the "IsLastChar" should work, isn't 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
Re: rock5's "fastLogin Revisited"
I just erased the "if doRelog" part and works perfectly
Who is online
Users browsing this forum: Google [Bot] and 3 guests