Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ballock1
committed
Apr 2, 2012
1 parent
66c65a3
commit 70afa07
Showing
22 changed files
with
267 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
using System; | ||
using System.Threading; | ||
using MCLawl; | ||
|
||
namespace MCDek | ||
{ | ||
public class CmdConverse : Command | ||
{ | ||
public override string name { get { return "converse"; } } | ||
public override string shortcut { get { return "co"; } } | ||
public override string type { get { return "other"; } } | ||
public override bool museumUsable { get { return false; } } | ||
public override LevelPermission defaultRank { get { return LevelPermission.Guest; } } | ||
public override void Use(Player p, string message) | ||
{ | ||
if (message.ToLower() == "1") | ||
{ | ||
Player.GlobalChat(p, p.name + Server.DefaultColor + "is feeling happy! :)"); | ||
} | ||
|
||
else if (message.ToLower() == "2") | ||
{ | ||
Player.GlobalChat(p, p.name + Server.DefaultColor + "is feeling sad :("); | ||
} | ||
|
||
else if (message.ToLower() == "3") | ||
{ | ||
Player.GlobalChat(p, p.name + Server.DefaultColor + "is angry >:("); | ||
} | ||
|
||
else if (message.ToLower() == "4") | ||
{ | ||
Player.GlobalChat(p, p.name + Server.DefaultColor + "is excited :D"); | ||
} | ||
|
||
else if (message.ToLower() == "5") | ||
{ | ||
Player.GlobalChat(p, p.name + Server.DefaultColor + "is bored |-O"); | ||
} | ||
|
||
else if (message.ToLower() == "6") | ||
{ | ||
Player.GlobalChat(p, p.name + Server.DefaultColor + "is feeling mischevious }:-)"); | ||
} | ||
|
||
else if (message.ToLower() == "7") | ||
{ | ||
Player.GlobalChat(p, p.name + Server.DefaultColor + "is suprised o.O"); | ||
} | ||
|
||
else if (message.ToLower() == "8") | ||
{ | ||
Player.GlobalChat(p, p.name + Server.DefaultColor + "is not amused -_-"); | ||
} | ||
|
||
else if (message.ToLower() == "9") | ||
{ | ||
Player.GlobalChat(p, p.name + Server.DefaultColor + "is confused :-/"); | ||
} | ||
|
||
else if (message.ToLower() == "10") | ||
{ | ||
Player.GlobalChat(p, p.name + Server.DefaultColor + "is feeling happy!"); | ||
} | ||
} | ||
|
||
public override void Help(Player p) | ||
{ | ||
Player.SendMessage(p, "/converse <1-10> - Quick chat about how you feel"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
using System; | ||
using MCLawl; | ||
|
||
|
||
namespace MCDek | ||
{ | ||
/// <summary> | ||
/// This is the command /vote | ||
/// </summary> | ||
public class CmdVote : Command | ||
{ | ||
public override string name { get { return "vote"; } } | ||
public override string shortcut { get { return "vo"; } } | ||
public override string type { get { return "other"; } } | ||
public override bool museumUsable { get { return false; } } | ||
public override LevelPermission defaultRank { get { return LevelPermission.Operator; } } | ||
public CmdVote() { } | ||
|
||
public override void Use(Player p, string message) | ||
{ | ||
if (message != "") | ||
{ | ||
if (!Server.voting) | ||
{ | ||
string temp = message.Substring(0, 1) == "%" ? "" : Server.DefaultColor; | ||
Server.voting = true; | ||
Server.NoVotes = 0; | ||
Server.YesVotes = 0; | ||
Player.GlobalMessage(" " + c.green + "VOTE: " + temp + message + "(" + c.green + "Yes " + Server.DefaultColor + "/" + c.red + "No" + Server.DefaultColor + ")"); | ||
System.Threading.Thread.Sleep(15000); | ||
Server.voting = false; | ||
Player.GlobalMessage("The vote is in! " + c.green + "Y: " + Server.YesVotes + c.red + " N: " + Server.NoVotes); | ||
Player.players.ForEach(delegate(Player winners) | ||
{ | ||
winners.voted = false; | ||
}); | ||
} | ||
else | ||
{ | ||
p.SendMessage("A vote is in progress!"); | ||
} | ||
} | ||
else | ||
{ | ||
Help(p); | ||
} | ||
} | ||
public override void Help(Player p) | ||
{ | ||
p.SendMessage("/vote [message] - Obviously starts a vote!"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
using System; | ||
using System.IO; | ||
using MCLawl; | ||
|
||
|
||
namespace MCDek | ||
{ | ||
/// <summary> | ||
/// This is the command /voteresults | ||
/// use /help voteresults in-game for more info | ||
/// </summary> | ||
public class CmdVoteResults : Command | ||
{ | ||
public override string name { get { return "voteresults"; } } | ||
public override string shortcut { get { return "vr"; } } | ||
public override string type { get { return ""; } } | ||
public override bool museumUsable { get { return true; } } | ||
public override LevelPermission defaultRank { get { return LevelPermission.Banned; } } | ||
public CmdVoteResults() { } | ||
public override void Use(Player p, string message) | ||
{ | ||
Player who = null; | ||
if (message == "") { who = p; message = p.name; } else { who = Player.Find(message); } | ||
if (Server.YesVotes >= 1 || Server.NoVotes >= 1) | ||
{ | ||
p.SendMessage(c.green + "Y: " + Server.YesVotes + c.red + " N: " + Server.NoVotes); | ||
return; | ||
} | ||
else | ||
{ | ||
p.SendMessage("There hasn't been a vote yet!"); | ||
} | ||
} | ||
public override void Help(Player p) | ||
{ | ||
Player.SendMessage(p, "/voteresults - see the results of the last vote!"); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
namespace MCDekGUI.Properties | ||
{ | ||
using System; | ||
|
||
|
||
/// <summary> | ||
/// A strongly-typed resource class, for looking up localized strings, etc. | ||
/// </summary> | ||
// This class was auto-generated by the StronglyTypedResourceBuilder | ||
// class via a tool like ResGen or Visual Studio. | ||
// To add or remove a member, edit your .ResX file then rerun ResGen | ||
// with the /str option, or rebuild your VS project. | ||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "2.0.0.0")] | ||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] | ||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] | ||
internal class Resources | ||
{ | ||
|
||
private static global::System.Resources.ResourceManager resourceMan; | ||
|
||
private static global::System.Globalization.CultureInfo resourceCulture; | ||
|
||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] | ||
internal Resources() | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Returns the cached ResourceManager instance used by this class. | ||
/// </summary> | ||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
internal static global::System.Resources.ResourceManager ResourceManager | ||
{ | ||
get | ||
{ | ||
if (object.ReferenceEquals(resourceMan, null)) | ||
{ | ||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("fCraftGUI.Properties.Resources", typeof(Resources).Assembly); | ||
resourceMan = temp; | ||
} | ||
return resourceMan; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Overrides the current thread's CurrentUICulture property for all | ||
/// resource lookups using this strongly typed resource class. | ||
/// </summary> | ||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] | ||
internal static global::System.Globalization.CultureInfo Culture | ||
{ | ||
get | ||
{ | ||
return resourceCulture; | ||
} | ||
set | ||
{ | ||
resourceCulture = value; | ||
} | ||
} | ||
|
||
internal static System.Drawing.Bitmap Tileset | ||
{ | ||
get | ||
{ | ||
object obj = ResourceManager.GetObject("Tileset", resourceCulture); | ||
return ((System.Drawing.Bitmap)(obj)); | ||
} | ||
} | ||
|
||
internal static System.Drawing.Bitmap TilesetShadowed | ||
{ | ||
get | ||
{ | ||
object obj = ResourceManager.GetObject("TilesetShadowed", resourceCulture); | ||
return ((System.Drawing.Bitmap)(obj)); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
TO DO FOR MCDEK | ||
/PUSH PUSHES PERSON FORWARD | ||
/converse # | ||
PREMADE MESSAGES |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Oops, something went wrong.