fastAutoCharacterCreate = true; -- set to false or true
fastLoginCharCreateWaitTime = 0.5;
local time_remaining = fastLoginCharCreateWaitTime;
function CharacterSelect_OnUpdate(this, elapsedTime)
if ( CHARACTER_SELECT_ROTATION_START_X ) then
local x = GetCursorPos();
local diff = (x - CHARACTER_SELECT_ROTATION_START_X) * CHARACTER_ROTATION_CONSTANT;
CHARACTER_SELECT_ROTATION_START_X = x;
SetCharacterSelectFacing(GetCharacterSelectFacing() - diff);
end
if (fastLoginAutoEnter and ( not fastLoginLoggedIn )) or (fastLoginLoggedIn and DoRelog) then -- rv edited
if fastLoginRegSel then
CHARACTERSELECT_REGION_SELECTED = fastLoginRegSel;
end
CharacterSelect_EnterWorld();
end
if (fastAutoCharacterCreate) then
time_remaining = time_remaining - elapsedTime;
if (time_remaining > 0) then
return
end
time_remaining = fastLoginCharCreateWaitTime;
local fastLoginNumChars = GetNumCharacters();
if ( fastLoginNumChars < MAX_CHARACTERS_DISPLAYED ) then
CharacterSelect_SelectCharacter(CharacterSelectCreateButton:GetID())
CharacterCreate_Default()
CharacterCreate_Okay()
CharacterList_Update()
end
end
end
Need help with a bug create extra characters after re-entering the account.
All file were not working and removed.
Last edited by Bot_romka on Mon Dec 01, 2014 4:21 pm, edited 2 times in total.
Note: This wont be compatible with future versions of my fastlogin (loginxml). And, if I ever get around to finishing my new version, it will have an auto generate characters option. But it could be a while so this file could be useful until then.
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.
I tested many variant and I'm sure full automatic char create without bugs will not be able to create. I added function for manual start auto create character (Shift-Click on "Create" button) and unlock all 10 chars for select and create.
The second archive interface_Login_texture for those who want to redraw the frame character selection.
Interesting I just realized, I do run one account addon creates characters but when run a second account it doesn't make it bad, but when I close the game and run the following accountaddon creates..
fix: not working baseScript() and fastLoginAutoEnter
add: skip dialog character recover, fastLoginCharacterSelectDelete, fastLoginCharacterSelectRecover, CustomStartAutoGenerateCharacters, many Tooltip, new user options and even something...
p.s. function AutoGenerateCharacters not work properly...
How to bind the button to automatically add-click "Delete"?
Можешь использовать loginScript("CharacterSelect_Delete()") для удаления персонажей, не обязательно кликать мышкой. Просто в онлоад добавь эту функцию с её переменными из новой версии userfunction_login.lua Я щас разрабатываю как использовать авто-удаление в аддоне автологине но из-за жуткого бага с определением что окно персонажей загрузилось не могу это использовать. Вот моя версия http://www.solarstrike.net/phpBB3/viewt ... 903#p60903 для аддона автологина что выложил в паблик выше.
The output looks a bit confusing. Are you saying that every time it changes character you want it to print out the whole list of characters and where you are up to? Or are you saying you want it to just print 3 of 4 etc?
One thing you have to realize, there is no way for the userfunction (or even loginxml) to know how many characters there are in all the listed accounts. So at this point, I don't even think we could add how many are left, except of course for the current account. Of course you could do it if you specify a full character list with setCharList, but if you use chars={}, which means 'all characters in the account', then there would be no way to know the numbers.
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.
rock5 wrote:The output looks a bit confusing. Are you saying that every time it changes character you want it to print out the whole list of characters and where you are up to? Or are you saying you want it to just print 3 of 4 etc?
The second I only want to print out: "Account 1 of 2 (1 left)" etc
rock5 wrote:
One thing you have to realize, there is no way for the userfunction (or even loginxml) to know how many characters there are in all the listed accounts. So at this point, I don't even think we could add how many are left, except of course for the current account. Of course you could do it if you specify a full character list with setCharList, but if you use chars={}, which means 'all characters in the account', then there would be no way to know the numbers.
I mean accounts (not chars) ...
If account 1 has 3 chars then the output of all 3 chars would be for example: Account 1 of 2 (1 left)
I see what you mean now. It just gets a bit confusing especially when you add the existing printout. When you print both I think it will look confusing. How about modifying the existing print out to look something like this.
Maybe a second idea: would it be possible to print out the runtime of the script?
for example: charlist has 3 accounts... after finished the last acc (char) it would print out the runtime. it tryed to make it by myself but i get it only to print nonsence
Printout:
I think that could be done. Of course the time wont make much sense if you had to restart a waypoint file or if you paused it for a time.
All we would have to do is record the time when it loads a new character and then display the difference when we load the next one. For the first character, that wont have a start time, we can just record the time as soon as the userfunction is loaded which is as soon as you start the bot.
To display the time you need to format it with something like os.date. This would work
printf("\nWe where running for %s seconds.\n", math.floor (os.difftime(os.time(),player.BotStartTime_nr) - player.Sleeping_time ));
but it displays nonsence by using the relog function (if i use it with a single waypoint and one char it works). maybe because i have 2 waypoint in a loop and 6 accounts.
I can't guess what you mean by 'nonsense'. I suppose it would depend on when and where BotStartTime_nr and Sleeping_time are updated. Probably, also, if you do a loadProfile it will reset those values. Hm... that's probably what you want. Are you doing a loadProfile() after changing character?
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.
I think the problems with the hours is because of time zones. The ! is supposed to fix that. Seeing as it adds 1 hour maybe it is a daylight hours issue?
At this point I would just give up using os.date and do it manually by calculating the separate values and formatting it.