NewUserWalkthrough:Page2

From ISXOgre
Jump to: navigation, search

New User Walkthrough - Page 2: EQ2Chars.inc



EQ2Chars.inc

First thing you have to do, is setup a file called EQ2chars.inc. This file contains private information the bot needs to complete some functions. This file is used for the following reasons:

  • Auto-logging toons in
  • Allowing other toons to give commands (such as making you a leader)
  • Responding to events from characters (such as accepting group invites, or accepting a res)
  • Connecting to other computers via Innerspace's uplink

Navigate to the following directory: /innerspace/scripts/EQ2OgreCommon/DoNotShareWithOthers/

In here you will find 2 files, Blank.EQ2Chars.inc and readme.txt. First thing you need to do, is rename the file from "Blank.EQ2Chars.inc" to "EQ2Chars.inc". Now edit the file (you can right click -edit).

Setting up your movement keys

If you use the standard: w is move forward, s is move backwards, and num lock is autorun, you can skip down to the next section (Setting up the Uplink).


;// Default movement keys for Ogrebot. Only change the letters at the end.
#if !${OgreForwardKey(exists)}
	variable(global) string OgreForwardKey=w
#endif
#if !${OgreBackwardKey(exists)}
	variable(global) string OgreBackwardKey=s
#endif
#if !${OgreAutoRunKey(exists)}
	variable(global) string OgreAutoRunKey=Num Lock
#endif

Simply change the "w", "s", "Num Lock" to the keys you use. Make sure NOT to modify anything else in this section.

Setting up the Uplink

The first function is the Uplink. This allows you to connect to other computers. If you run some of your bot sessions on other computers, make sure they are all listed here. If you only use 1 computer, you can continue to the next section.

The first function you should see is:

function SetUpUplink()
{
	UplinkInfo[${UplinkCount:Inc}]:Set[Computername1]
	UplinkInfo[${UplinkCount:Inc}]:Set[Computername2]
}


** NOTE: It's safe to go ahead and add any computers you plan to use with ISXOgre, even if they're not on/connected/active all of the time.

** NOTE: It's important that the computer names match the names Innerspace uses. On each computer, right-click the Innerspace icon in your taskbar, then click "Configuration". The computer name will be right there.

Change the "Computername#" to the names of the other computers you wish to connect to. If you have more than 2 computers, simply add more.

Here are a few examples:

Example 1: Connecting to 1 other computer named "Kannkor1"

function SetUpUplink()
{
	UplinkInfo[${UplinkCount:Inc}]:Set[Kannkor1]
}

You will notice I simply deleted the extra line.

Example 2: Connecting to 5 other computers"

function SetUpUplink()
{
	UplinkInfo[${UplinkCount:Inc}]:Set[Kannkor1]
	UplinkInfo[${UplinkCount:Inc}]:Set[Kannkor2]
	UplinkInfo[${UplinkCount:Inc}]:Set[Kannkor3]
	UplinkInfo[${UplinkCount:Inc}]:Set[Kannkor4]
	UplinkInfo[${UplinkCount:Inc}]:Set[Kannkor5]
}

If you have more computers, just add more lines.

Setting up Character information

The next function is used to set up your character information.

NOTE - You don't technically need to fill this information out. It is 100% secure as only your computer uses this information. You should NEVER share this file with anyone, not even me - ever. If you are not comfortable filling this out, you do not have to. You will just limit some of the functionality. Either way, continue reading as filling out part of the information will add to functionality.

The next function should look like this:

function SetUpChars()
{
variable int TempCounter=1
CharInfo[${TempCounter},1]:Set[ToonName]
CharInfo[${TempCounter},2]:Set[Password]
CharInfo[${TempCounter},3]:Set[LoginName]
CharInfo[${TempCounter},4]:Set[ServerName]

TempCounter:Inc
CharInfo[${TempCounter},1]:Set[ToonName]
CharInfo[${TempCounter},2]:Set[Password]
CharInfo[${TempCounter},3]:Set[LoginName]
CharInfo[${TempCounter},4]:Set[ServerName]
}

Options:

  • Fill out everything - Provides full functionality. Including authorization list, auto login, support for Hireg etc.
    • Fill out all 4
  • Fill out ToonName only - Provides most functionality - Including authorization list. Lose auto login and Hireg support.
    • Fill out "ToonName" only
  • Fill out nothing - You lose authorization and auto login. I don't recommend this if you run more than 1 character since your bots will not respond to each other if they give commands (since they won't be authorized).
    • Fill nothing out.

In the example, it only gives you room for two characters. For more than two, you copy/paste the following lines. Here is an example of 4 characters with full information (it's obviously fake information, so don't try to log into my account :) ).


function SetUpChars()
{
variable int TempCounter=1
CharInfo[${TempCounter},1]:Set[Kannkor]
CharInfo[${TempCounter},2]:Set[SecretPassword]
CharInfo[${TempCounter},3]:Set[KannkorLoginOne]
CharInfo[${TempCounter},4]:Set[Unrest]

TempCounter:Inc
CharInfo[${TempCounter},1]:Set[KannkorWife]
CharInfo[${TempCounter},2]:Set[SecretPassword]
CharInfo[${TempCounter},3]:Set[KannkorLoginTwo]
CharInfo[${TempCounter},4]:Set[Unrest]

TempCounter:Inc
CharInfo[${TempCounter},1]:Set[KannkorGirlfriend]
CharInfo[${TempCounter},2]:Set[SecretPassword]
CharInfo[${TempCounter},3]:Set[KannkorLoginThree]
CharInfo[${TempCounter},4]:Set[Unrest]

TempCounter:Inc
CharInfo[${TempCounter},1]:Set[KannkorWhore]
CharInfo[${TempCounter},2]:Set[SecretPassword]
CharInfo[${TempCounter},3]:Set[KannkorLoginFour]
CharInfo[${TempCounter},4]:Set[Unrest]
}

If you choose to fill out your character name only, it would look like this:


function SetUpChars()
{
variable int TempCounter=1
CharInfo[${TempCounter},1]:Set[Kannkor]
CharInfo[${TempCounter},2]:Set[Password]
CharInfo[${TempCounter},3]:Set[LoginName]
CharInfo[${TempCounter},4]:Set[ServerName]

TempCounter:Inc
CharInfo[${TempCounter},1]:Set[KannkorWife]
CharInfo[${TempCounter},2]:Set[Password]
CharInfo[${TempCounter},3]:Set[LoginName]
CharInfo[${TempCounter},4]:Set[ServerName]
}

Since you won't be using the auto-login feature, the "Password" field can stay as "Password".


NOTE - If you play with others that know you bot, or people you trust to be on your authorized list, you can add them also. You can have a mix of full information, and character name only. For example, here is my character information, with a friend's character that gives him authorization. Since I don't know his login information, it won't be used.


function SetUpChars()
{
variable int TempCounter=1
CharInfo[${TempCounter},1]:Set[Kannkor]
CharInfo[${TempCounter},2]:Set[SecretPassword]
CharInfo[${TempCounter},3]:Set[KannkorLoginOne]
CharInfo[${TempCounter},4]:Set[Unrest]

TempCounter:Inc
CharInfo[${TempCounter},1]:Set[Abe] <---- Friends character name
CharInfo[${TempCounter},2]:Set[Password]
CharInfo[${TempCounter},3]:Set[LoginName]
CharInfo[${TempCounter},4]:Set[ServerName]
}


You can always edit this file at any time. Just remember not to share this file with anyone, because it has your character names, and your username and passwords!

Save the file, and continue on.

Navigation

Back to Page 1 Introduction

Continue to Page 3 Tips and Tricks