diff options
Diffstat (limited to 'OpenSim/Tools/pCampBot/Bot.cs')
-rw-r--r-- | OpenSim/Tools/pCampBot/Bot.cs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Tools/pCampBot/Bot.cs b/OpenSim/Tools/pCampBot/Bot.cs index c56d29b..79344e8 100644 --- a/OpenSim/Tools/pCampBot/Bot.cs +++ b/OpenSim/Tools/pCampBot/Bot.cs | |||
@@ -97,6 +97,8 @@ namespace pCampBot | |||
97 | public string Name { get; private set; } | 97 | public string Name { get; private set; } |
98 | public string Password { get; private set; } | 98 | public string Password { get; private set; } |
99 | public string LoginUri { get; private set; } | 99 | public string LoginUri { get; private set; } |
100 | public string StartLocation { get; private set; } | ||
101 | |||
100 | public string saveDir; | 102 | public string saveDir; |
101 | public string wear; | 103 | public string wear; |
102 | 104 | ||
@@ -132,7 +134,7 @@ namespace pCampBot | |||
132 | /// <param name="behaviours"></param> | 134 | /// <param name="behaviours"></param> |
133 | public Bot( | 135 | public Bot( |
134 | BotManager bm, List<IBehaviour> behaviours, | 136 | BotManager bm, List<IBehaviour> behaviours, |
135 | string firstName, string lastName, string password, string loginUri) | 137 | string firstName, string lastName, string password, string startLocation, string loginUri) |
136 | { | 138 | { |
137 | ConnectionState = ConnectionState.Disconnected; | 139 | ConnectionState = ConnectionState.Disconnected; |
138 | 140 | ||
@@ -146,6 +148,7 @@ namespace pCampBot | |||
146 | Name = string.Format("{0} {1}", FirstName, LastName); | 148 | Name = string.Format("{0} {1}", FirstName, LastName); |
147 | Password = password; | 149 | Password = password; |
148 | LoginUri = loginUri; | 150 | LoginUri = loginUri; |
151 | StartLocation = startLocation; | ||
149 | 152 | ||
150 | Manager = bm; | 153 | Manager = bm; |
151 | Behaviours = behaviours; | 154 | Behaviours = behaviours; |
@@ -209,7 +212,7 @@ namespace pCampBot | |||
209 | 212 | ||
210 | ConnectionState = ConnectionState.Connecting; | 213 | ConnectionState = ConnectionState.Connecting; |
211 | 214 | ||
212 | if (Client.Network.Login(FirstName, LastName, Password, "pCampBot", "Your name")) | 215 | if (Client.Network.Login(FirstName, LastName, Password, "pCampBot", StartLocation, "Your name")) |
213 | { | 216 | { |
214 | ConnectionState = ConnectionState.Connected; | 217 | ConnectionState = ConnectionState.Connected; |
215 | 218 | ||