rock5 wrote:I've been able to narrow it down to something in the logindialog files because if I delete those, it works (after entering the secondary password manually).
aaa i can not log in wold after secpass
plz fix it ;-(
thx i sink the code from character select and logindialog handel up together
and can you put the Secondary password to the accountlogin file?
Account1 = { UserName = "xyz", Password = "xyz", SecPassword="xyz", },
functions from logindialog are not workind correct imho... i still have some issues with this, if u'll come up with some code share it, ill upload asap my will work correctly
function CheckSecondaryPass()
for i = 1, 18 do
if CustomSecondaryPass["Account"..i].ID = LogID then return CustomSecondaryPass["Account"..i].SecondaryPassword end
return 0
end
end
function CheckSecondaryPass()
for i = 1, 18 do
if CustomSecondaryPass["Account"..i].ID = LogID then return CustomSecondaryPass["Account"..i].SecondaryPassword end
end
return 0
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.
imho logindialog doesnt work at all, i added a onshow function to the character.lua and it works, but i cannot add confrim pass and ofc the function u just metnioned wasnt working either, ill try to make it work tonight
I may have spoken too soon. It did work but now it's not. I discovered another bug but it still doesn't work after I fixed it. In that function a '=' is used where it's supposed to be '=='. So it should be.
function CheckSecondaryPass()
for i = 1, 18 do
if CustomSecondaryPass["Account"..i].ID == LogID then return CustomSecondaryPass["Account"..i].SecondaryPassword end
end
return 0
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.
For me it's not filling the first password. Account name comes. But if i write password there it didn't ask for secondary password. I used rock5 file. I am using english client. And then i cannot enter world with any character.
function LoginDialog_OnShow()
local CustomSecondaryPass = CheckSecondaryPass()
LoginDialogEditBox:SetText(CustomSecondaryPass);
end
local function CheckSecondaryPass()
for i = 1, 18 do
if CustomSecondaryPass["Account"..i].ID == LogID then return CustomSecondaryPass["Account"..i].SecondaryPassword end
end
return 0
end
function ToonChange(toontoload, acctoload)
local AutoLoginAccount = acctoload
local AutoLoginCharacter = toontoload
Logout();
if ( AutoLoginAccount == LogID ) then
CHARACTER_SELECT.selectedIndex = AutoLoginCharacter
CharacterSelect_EnterWorld();
else
CharacterSelect_Exit();
CustomLoginButton_OnClick("..AutoLoginAccount..");
CHARACTER_SELECT.selectedIndex = AutoLoginCharacter
CharacterSelect_EnterWorld();
end
end
this code is still not working, it logouts but doesnt login in after, i think i should add some wait for login screen or smt, u guys have some ideas?
I was messing around with that function too when I was fixing logindialog.lua but I couldn't get it to work.
What you have to realize is when it logs off, a whole lot of automatic things start happening. The onshow event happens and all the code that was there before for autoreloging is there. Values get changed and it interferes with what you intend to do.
The only way I could get it to log back in was to set "fastLoginRelog = true" but it didn't change character and of course it wouldn't work for changing account anyway.
I think it's going to be very hard to implement this on top of the code that's already there that's why I was going to start from scratch if I did it. Your best bet I think is to figure out how the "LoginNextToon=true" option works because it still does, and try to use it or modify it to do what you want.
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.