MudEngine:
- Fixed the login command not creating new players. - Fixed the login command allowing players to log into accounts even if passwords weren't correct. MudGame: - Deleted the debug and release folders. These are not needed.
This commit is contained in:
parent
f185bf4626
commit
e1c25dd9a1
5 changed files with 12 additions and 99 deletions
|
@ -150,25 +150,24 @@ namespace MudEngine.Commands
|
||||||
//Now that we have no duplicate connections, load the real player.
|
//Now that we have no duplicate connections, load the real player.
|
||||||
//no need to re-varify password as we have already done this above.
|
//no need to re-varify password as we have already done this above.
|
||||||
player.Load(savedFile);
|
player.Load(savedFile);
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
player.Load(savedFile);
|
|
||||||
if (player.VarifyPassword(playerPwrd))
|
|
||||||
{
|
|
||||||
player.Send("Welcome back " + player.Name + "!");
|
player.Send("Welcome back " + player.Name + "!");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
if (!p.VarifyPassword(playerPwrd))
|
||||||
|
{
|
||||||
|
player.Send("Invalid password!");
|
||||||
passwordLegal = false;
|
passwordLegal = false;
|
||||||
player.Send("Invalid password.");
|
|
||||||
//Don't keep a reference to the already loaded character. The player will need to
|
|
||||||
//re-enter their credentials.
|
|
||||||
player = new BaseCharacter(player.ActiveGame);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
player.Create(playerName, playerPwrd);
|
||||||
|
player.Send("Welcome " + playerName + "!");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//Look to see if there are players in the Room, if there are then we need to let
|
//Look to see if there are players in the Room, if there are then we need to let
|
||||||
|
|
|
@ -1,46 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?><ItemProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Properties><Property><Name>svn:ignore</Name><Value>Log.txt
|
|
||||||
MudEngine.dll
|
|
||||||
MudEngine.pdb
|
|
||||||
MudGame.exe
|
|
||||||
MudGame.pdb
|
|
||||||
MudGame.vshost.exe
|
|
||||||
MudGame.vshost.exe.manifest
|
|
||||||
Player
|
|
||||||
temp
|
|
||||||
</Value></Property><Property><Name>svn:ignore</Name><Value>Log.txt
|
|
||||||
MudEngine.dll
|
|
||||||
MudEngine.pdb
|
|
||||||
MudGame.exe
|
|
||||||
MudGame.pdb
|
|
||||||
MudGame.vshost.exe
|
|
||||||
MudGame.vshost.exe.manifest
|
|
||||||
Player
|
|
||||||
temp
|
|
||||||
Realms
|
|
||||||
</Value></Property><Property><Name>svn:ignore</Name><Value>Log.txt
|
|
||||||
MudEngine.dll
|
|
||||||
MudEngine.pdb
|
|
||||||
MudGame.exe
|
|
||||||
MudGame.pdb
|
|
||||||
MudGame.vshost.exe
|
|
||||||
MudGame.vshost.exe.manifest
|
|
||||||
Player
|
|
||||||
temp
|
|
||||||
Realms
|
|
||||||
Mud Designer Example Game.ini
|
|
||||||
World
|
|
||||||
</Value></Property><Property><Name>svn:ignore</Name><Value>Log.txt
|
|
||||||
MudEngine.dll
|
|
||||||
MudEngine.pdb
|
|
||||||
MudGame.exe
|
|
||||||
MudGame.pdb
|
|
||||||
MudGame.vshost.exe
|
|
||||||
MudGame.vshost.exe.manifest
|
|
||||||
Player
|
|
||||||
temp
|
|
||||||
Realms
|
|
||||||
Mud Designer Example Game.ini
|
|
||||||
World
|
|
||||||
Planet Earth MUD.ini
|
|
||||||
Saved
|
|
||||||
</Value></Property></Properties></ItemProperties>
|
|
|
@ -1,21 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?><ItemProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Properties><Property><Name>svn:ignore</Name><Value>CommandClear.cs
|
|
||||||
CommandCreate.cs
|
|
||||||
CommandSay.cs
|
|
||||||
EarthGame.cs
|
|
||||||
</Value></Property><Property><Name>svn:ignore</Name><Value>CommandClear.cs
|
|
||||||
CommandCreate.cs
|
|
||||||
CommandSay.cs
|
|
||||||
EarthGame.cs
|
|
||||||
CommandHelp.cs
|
|
||||||
</Value></Property><Property><Name>svn:ignore</Name><Value>CommandClear.cs
|
|
||||||
CommandCreate.cs
|
|
||||||
CommandSay.cs
|
|
||||||
EarthGame.cs
|
|
||||||
CommandHelp.cs
|
|
||||||
CommandExit.cs
|
|
||||||
CommandGetTime.cs
|
|
||||||
CommandLinkRoom.cs
|
|
||||||
CommandLook.cs
|
|
||||||
CommandSave.cs
|
|
||||||
CommandWalk.cs
|
|
||||||
</Value></Property></Properties></ItemProperties>
|
|
|
@ -1,2 +0,0 @@
|
||||||
ScriptPath=Scripts
|
|
||||||
ScriptExtension=.cs
|
|
|
@ -1,17 +0,0 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?><ItemProperties xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><Properties><Property><Name>svn:ignore</Name><Value>MudEngine.dll
|
|
||||||
MudEngine.pdb
|
|
||||||
MudGame.exe
|
|
||||||
MudGame.pdb
|
|
||||||
</Value></Property><Property><Name>svn:ignore</Name><Value>MudEngine.dll
|
|
||||||
MudEngine.pdb
|
|
||||||
MudGame.exe
|
|
||||||
MudGame.pdb
|
|
||||||
Scripts
|
|
||||||
</Value></Property><Property><Name>svn:ignore</Name><Value>MudEngine.dll
|
|
||||||
MudEngine.pdb
|
|
||||||
MudGame.exe
|
|
||||||
MudGame.pdb
|
|
||||||
Scripts
|
|
||||||
Commands
|
|
||||||
Settings.ini
|
|
||||||
</Value></Property></Properties></ItemProperties>
|
|
Loading…
Add table
Add a link
Reference in a new issue