This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: Delete Eula terms  (Read 1808 times)

rollth

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 2
    • View Profile
Delete Eula terms
« 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: Delete Eula terms
« Reply #1 on: October 14, 2014, 12:46:09 am »
set cvars readeula, readtos, readTerminationWithoutNotice, readScanning to 1, either in lua or just in config.wtf.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

rollth

  • Registred Member
  • MWCS Enthusiast
  • *****
  • Posts: 2
    • View Profile
Re: Delete Eula terms
« Reply #2 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

phantomx

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 615
    • View Profile
Re: Delete Eula terms
« Reply #3 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.



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.

« Last Edit: January 01, 1970, 01:00:00 am by Admin »
[wimg]http://i.imgur.com/6fxUQL1.gif[/wimg]

stoneharry

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 617
    • View Profile
Re: Delete Eula terms
« Reply #4 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

jacburn1

  • Registred Member
  • GM Isle Explorer
  • *****
  • Posts: 19
    • View Profile
Re: Delete Eula terms
« Reply #5 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.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »