AutoLogin EverQuest II

Discussion of Inner Space

Moderators: Lavish Software Team, Moderators

Post Reply
hegvape
GamingTools Subscriber
Posts: 30
Joined: Tue May 02, 2006 4:28 am

AutoLogin EverQuest II

Post by hegvape » Fri Aug 07, 2015 8:52 am

Hey,

I thought I'd share my old autologin that I have reworked and now only uses LavishScript. it saves time starting more than one session without having to type in account names and passwords :)

Create a file named AL.ISS and place it in the InnerSpace\Scripts folder.
The syntax and parameters are in the code.

Code: Select all

/* -----------------------------------------------------------------------------------
 * AL.iss - LavishScript AutoLogin for EverQuest II
 * Created: By hegvape
 *
 * 1.0 (150731) - Remake of EQ2AutoLogin. Works with standard EQ2 UI.
 *
 * Todo:
 		- Make sure Caps Lock is turned off...
 * -----------------------------------------------------------------------------------
 * Description:
 * Send password to the login screen and press Enter
 * Syntax&#58; run AL <Password> [Wait]
 */


function main&#40;string PwdVar, string DlyVar&#41;
&#123;
	variable int CntMsClks=1
	variable string MyAppl=AutoLogin
	/* Check if password has been supplied when starting the script */
	if !$&#123;PwdVar.Length&#125;
	&#123;
		/* Optionally You can specify Your password below */
		PwdVar&#58;Set[-?]
	&#125;
	;switch $&#123;PwdVar&#125;
	&#123;
		case ?
		case /?
		case -?
			echo " "
			echo "Syntax&#58; run AL <Password> [Wait]"
			echo " "
			echo "  Where <Password> specifies your account password &#40;required&#41;."
			echo "  Where [Wait] specifies the pause in 10th/sec before executing &#40;optional&#41;."
			echo " "
			echo "  Use InnerSpace Configuration to create a specific game profile for your account."
			echo "  Add AL.iss to the startup sequence of your profile. Ex&#58; RUN AL your_Password"
			echo " "
			echo "  To automate the login further then add the parameters, described below, to the 'Main executable parameters' section of your game profile."
			echo " "
			echo "  Parameters for EverQuest2.exe&#58; cl_username <Your_Account_Name>;cl_autoplay_char <Character_Name>;cl_autoplay_world <World_Server>"
			echo "  Note! Character names are case sensitive and You need to separate the parameters with a semicolon ';'."
			echo " "
			return
		case Default
	&#125;

	echo "--------------------------"
	echo $&#123;MyAppl&#125;&#58; Script Started!
	
	/* Execute delay if provided */
	if $&#123;DlyVar.Length&#125;
	&#123;
		echo $&#123;MyAppl&#125;&#58; Waiting for $&#123;Math.Calc[$&#123;DlyVar&#125;/10].Precision[1]&#125; sec...
		wait $&#123;DlyVar&#125;
	&#125;

		
	/* Do mouse clicks to speed up the login &#40;SOE Logo, ESRB Rating, Advertisement, EQ2 Title&#41; */
	CntMsClks&#58;Set[1]
	do
	&#123;
		echo $&#123;MyAppl&#125;&#58; Executing mouse click $&#123;CntMsClks&#125;
		MouseClick -hold left
		waitframe
		wait .5
		MouseClick -release left 	
		waitframe
		wait .5
	&#125;
	while $&#123;CntMsClks&#58;Inc&#125;<=4
	
	echo $&#123;MyAppl&#125;&#58; Using LavishScript... Make sure CAPS LOCK is Off!
	; press -hold "Caps Lock" ;This Doesn't work
	type $&#123;PwdVar&#125;
	squelch press Enter ;US, DK Keyb
	squelch press Retur ;SE Keyb
	
	/* Load extensions */
	call Load_Extension
	
	echo "-----------------------"
	echo $&#123;MyAppl&#125;&#58; Script Done!
	Script&#58;End
&#125;

function Load_Extension&#40;&#41;
&#123;
	/* Try to load Extension_Name if not already loaded - Replace Extension_Name with your actual extension */
	if !$&#123;Extension[Extension_Name]&#40;exists&#41;&#125;
	&#123;
		echo $&#123;MyAppl&#125;"&#58; Loading extension Extension_Name..."
		ext Extension_Name
	&#125;
&#125;

hegvape
GamingTools Subscriber
Posts: 30
Joined: Tue May 02, 2006 4:28 am

Post by hegvape » Fri Aug 07, 2015 8:59 am

Please remove the "SemiColon" in row 26:

;switch ${PwdVar} --> switch ${PwdVar}

Post Reply