Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: rollth on October 14, 2014, 12:34:47 am

Title: Delete Eula terms
Post by: rollth on October 14, 2014, 12:34:47 am
Hello Modcraft.  
I have created a custom login screen editing the accountlogin.lua and accountlogin.xml and it works great but I have problems with the EULA accept and decline button.
The Eula buttons to accept and decline are invisible so I cant accept it. Do you know a lua script to disable the EULA and bypass it or how to delete it. I deleted some lines
in the .lua and .xml but I got errors. Maybe im no a pro in lua but im sure it can be made.
Title: Re: Delete Eula terms
Post by: schlumpf on October 14, 2014, 12:46:09 am
set cvars readeula, readtos, readTerminationWithoutNotice, readScanning to 1, either in lua or just in config.wtf.
Title: Re: Delete Eula terms
Post by: rollth on October 14, 2014, 04:54:09 pm
Quote from: "schlumpf"
set cvars readeula, readtos, readTerminationWithoutNotice, readScanning to 1, either in lua or just in config.wtf.

I tried editing what you said:

In function AccountLogin_OnLoad(self) I used:

SetCVar("readTOS", 1);
SetCVar("readEULA", 1);
SetCVar("readTerminationWithoutNotice", 1);


But did not works.
Only to test, I tried editing function AccountLogin_OnShow(self) too, using the same SetCVar before AccountLogin_ShowUserAgreements(); but nothing...

Thanks for reading.
Title: Re: Delete Eula terms
Post by: phantomx on October 16, 2014, 03:31:38 am
Open your wow installation folder then open the folder called WTF there should be a .wtf file called Config open it and then find this.

(http://puu.sh/cdXkE/188be63587.png)

Make sure SET ReadToS is set to 1 like in the picture above and the same for SET readEULA.

In AccountLogin.LUA you could just comment it out like so but it's not really something I like to do.

(http://puu.sh/cdXGU/208cc754d5.png)
Title: Re: Delete Eula terms
Post by: stoneharry on October 16, 2014, 07:42:51 pm
My AccountLogin.lua looks like this:

Code: [Select]
function AccountLogin_OnLoad(self)

SetCVar("readTOS", "1");
SetCVar("readEULA", "1");
SetCVar("readTerminationWithoutNotice", "1");
--SetCVar("realmList", GLOBAL_REALMLIST);
--SetCVar("portal", "eoc");

TOSFrame.noticeType = "EULA";
...

If you use a Blizzard Installer you can deploy a RunOnce.wtf to set these too before the login screen hits. Setting the CVAR's from the Interface code takes a restart of the client to take effect.
Title: Re: Delete Eula terms
Post by: jacburn1 on November 18, 2014, 02:50:55 am
Alternatively, you can add
AcceptTOS();
AcceptEULA();
AcceptTerminationWithoutNotice();

to the AccountLogin_OnLoad function, which should force your game to think you accepted them using the button.

function AccountLogin_OnLoad(self)
AcceptTOS();
AcceptEULA();
AcceptTerminationWithoutNotice();

along with all the other crap in there. Then go through and like these guys said disable the actual showing of the EULA/TOS frame.

Not sure what exactly what else is edited on the one I'm working on, but that made it so the login worked again without having to restart the game if you skip those terms and stuff.