本文整理汇总了C#中GoldTree.Messages.ServerMessage.AppendString方法的典型用法代码示例。如果您正苦于以下问题:C# ServerMessage.AppendString方法的具体用法?C# ServerMessage.AppendString怎么用?C# ServerMessage.AppendString使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GoldTree.Messages.ServerMessage
的用法示例。
在下文中一共展示了ServerMessage.AppendString方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnTrigger
public override void OnTrigger(GameClient Session, RoomItem Item, int Request, bool UserHasRights)
{
if (UserHasRights && Session != null)
{
Item.method_9();
ServerMessage Message = new ServerMessage(652u);
Message.AppendInt32(0);
Message.AppendInt32(5);
if (Item.string_5.Length > 0)
{
Message.AppendString(Item.string_5);
}
else
{
Message.AppendInt32(0);
}
Message.AppendInt32(Item.GetBaseItem().Sprite);
Message.AppendUInt(Item.uint_0);
Message.AppendStringWithBreak("");
Message.AppendString("J");
if (Item.string_3.Length > 0)
{
Message.AppendString(Item.string_3);
}
else
{
Message.AppendString("HHH");
}
Session.SendMessage(Message);
}
}
开发者ID:ArneVanDaele,项目名称:GoldenTreeEMU,代码行数:31,代码来源:InteractorWiredConditionFurniStatesAndPositionsMatch.cs
示例2: OnTrigger
public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
{
if (bool_0)
{
ServerMessage Message = new ServerMessage(650u);
Message.AppendInt32(0);
Message.AppendInt32(5);
Message.AppendInt32(0);
Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite);
Message.AppendUInt(RoomItem_0.uint_0);
Message.AppendStringWithBreak("");
Message.AppendString("I");
if (RoomItem_0.string_3.Length > 0)
{
Message.AppendString(RoomItem_0.string_3);
}
else
{
Message.AppendString("RB");
}
Message.AppendStringWithBreak("HRAH");
Session.SendMessage(Message);
RoomItem_0.ReqUpdate(1);
}
}
示例3: OnTrigger
public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
{
if (bool_0)
{
RoomItem_0.method_9();
ServerMessage Message = new ServerMessage(651u);
Message.AppendInt32(0);
Message.AppendInt32(5);
if (RoomItem_0.string_5.Length > 0)
{
Message.AppendString(RoomItem_0.string_5);
}
else
{
Message.AppendInt32(0);
}
Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite);
Message.AppendUInt(RoomItem_0.uint_0);
Message.AppendStringWithBreak("");
Message.AppendString("J");
if (RoomItem_0.string_2.Length > 0)
{
Message.AppendInt32(Convert.ToInt32(RoomItem_0.string_2));
}
else
{
Message.AppendInt32(0);
}
if (RoomItem_0.string_3.Length > 0)
{
Message.AppendInt32(Convert.ToInt32(RoomItem_0.string_3));
}
else
{
Message.AppendInt32(0);
}
Message.AppendString("HPA");
if (RoomItem_0.string_6.Length > 0)
{
Message.AppendInt32(Convert.ToInt32(RoomItem_0.string_6));
}
else
{
Message.AppendInt32(0);
}
Message.AppendStringWithBreak("H");
Session.SendMessage(Message);
}
}
示例4: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
uint num = Event.PopWiredUInt();
string text = GoldTree.FilterString(Event.PopFixedString());
if (Session != null && Session.GetHabbo() != null && Session.GetHabbo().GetMessenger() != null)
{
if (num == 0u && Session.GetHabbo().HasFuse("cmd_sa"))
{
ServerMessage Message = new ServerMessage(134u);
Message.AppendUInt(0u);
Message.AppendString(Session.GetHabbo().Username + ": " + text);
GoldTree.GetGame().GetClientManager().method_17(Session, Message);
}
else
{
if (num == 0u)
{
ServerMessage Message2 = new ServerMessage(261u);
Message2.AppendInt32(4);
Message2.AppendUInt(0u);
Session.SendMessage(Message2);
}
else
{
if (Session != null && Session.GetHabbo() != null)
{
Session.GetHabbo().GetMessenger().method_18(num, text);
}
}
}
}
}
示例5: OnTrigger
public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
{
if (bool_0)
{
ServerMessage Message = new ServerMessage(650u);
Message.AppendInt32(0);
Message.AppendInt32(0);
Message.AppendInt32(0);
Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite);
Message.AppendUInt(RoomItem_0.uint_0);
Message.AppendString(RoomItem_0.string_2);
Session.SendMessage(Message);
}
}
示例6: OnTrigger
public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
{
if (bool_0 && Session != null)
{
RoomItem_0.method_10();
ServerMessage Message = new ServerMessage(652u);
Message.AppendInt32(0);
Message.AppendInt32(5);
if (RoomItem_0.string_2.Length > 0)
{
Message.AppendString(RoomItem_0.string_2);
}
else
{
Message.AppendInt32(0);
}
Message.AppendInt32(RoomItem_0.GetBaseItem().Sprite);
Message.AppendUInt(RoomItem_0.uint_0);
Message.AppendStringWithBreak("");
Message.AppendStringWithBreak("HH");
Session.SendMessage(Message);
}
}
示例7: method_2
public ServerMessage method_2()
{
ServerMessage Message = new ServerMessage(470u);
string[] array = this.string_1.Split(new char[]
{
Convert.ToChar(13)
});
for (int i = 0; i < this.int_5; i++)
{
if (i > 0)
{
array[i] = array[i].Substring(1);
}
for (int j = 0; j < this.int_4; j++)
{
string text = array[i].Substring(j, 1).Trim().ToLower();
if (this.int_0 == j && this.int_1 == i)
{
text = string.Concat((int)this.double_0);
}
Message.AppendString(text);
}
Message.AppendString(string.Concat(Convert.ToChar(13)));
}
return Message;
}
示例8: smethod_5
//.........这里部分代码省略.........
Session.SendNotif("Input must be a number");
}
GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
return true;
}
return false;
case 18:
if (Session.GetHabbo().HasFuse("cmd_globalpoints"))
{
try
{
int num5 = int.Parse(Params[1]);
GoldTree.GetGame().GetClientManager().method_20(num5, false);
using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
{
class5.ExecuteQuery("UPDATE users SET vip_points = vip_points + " + num5);
}
}
catch
{
Session.SendNotif("Input must be a number");
}
GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
return true;
}
return false;
case 19:
if (Session.GetHabbo().HasFuse("cmd_hal"))
{
string text2 = Params[1];
Input = Input.Substring(4).Replace(text2, "");
string text3 = Input.Substring(1);
ServerMessage Message = new ServerMessage(161u);
Message.AppendStringWithBreak(string.Concat(new string[]
{
GoldTreeEnvironment.smethod_1("cmd_hal_title"),
"\r\n",
text3,
"\r\n-",
Session.GetHabbo().Username
}));
Message.AppendStringWithBreak(text2);
GoldTree.GetGame().GetClientManager().method_14(Message);
GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
return true;
}
return false;
case 20:
if (Session.GetHabbo().HasFuse("cmd_ha"))
{
string str = Input.Substring(3);
ServerMessage Message2 = new ServerMessage(808u);
Message2.AppendStringWithBreak(GoldTreeEnvironment.smethod_1("cmd_ha_title"));
Message2.AppendStringWithBreak(str + "\r\n- " + Session.GetHabbo().Username);
ServerMessage Message3 = new ServerMessage(161u);
Message3.AppendStringWithBreak(str + "\r\n- " + Session.GetHabbo().Username);
GoldTree.GetGame().GetClientManager().method_15(Message2, Message3);
GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
return true;
}
return false;
case 21:
if (Session.GetHabbo().HasFuse("cmd_invisible"))
{
Session.GetHabbo().isVisible = !Session.GetHabbo().isVisible;
Session.SendNotif("You are now " + (Session.GetHabbo().isVisible ? "visible" : "invisible") + "\nTo apply the changes reload the room ;D");
示例9: method_2
//.........这里部分代码省略.........
if (@class != null)
{
@class.GetHabbo().method_14(true, false);
goto IL_C70;
}
goto IL_C70;
case 19:
using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
{
GoldTree.GetGame().GetBanManager().method_0(class2);
}
GoldTree.GetGame().GetClientManager().method_28();
goto IL_C70;
case 20:
using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
{
GoldTree.GetGame().GetBotManager().method_0(class2);
goto IL_C70;
}
case 21:
goto IL_839;
case 22:
using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
{
class2.ExecuteQuery(text2);
goto IL_C70;
}
case 23:
goto IL_880;
case 24:
{
ServerMessage Message = new ServerMessage(134u);
Message.AppendUInt(0u);
Message.AppendString("PHX: " + text2);
GoldTree.GetGame().GetClientManager().method_16(Message, Message);
goto IL_C70;
}
case 25:
{
ServerMessage Message2 = new ServerMessage(808u);
Message2.AppendStringWithBreak(GoldTreeEnvironment.smethod_1("mus_ha_title"));
Message2.AppendStringWithBreak(text2);
ServerMessage Message3 = new ServerMessage(161u);
Message3.AppendStringWithBreak(text2);
GoldTree.GetGame().GetClientManager().method_15(Message2, Message3);
goto IL_C70;
}
case 26:
{
string text4 = text2.Split(new char[]
{
' '
})[0];
text5 = text2.Substring(text4.Length + 1);
ServerMessage Message4 = new ServerMessage(161u);
Message4.AppendStringWithBreak(string.Concat(new string[]
{
GoldTreeEnvironment.smethod_1("mus_hal_title"),
"\r\n",
text5,
"\r\n-",
GoldTreeEnvironment.smethod_1("mus_hal_tail")
}));
Message4.AppendStringWithBreak(text4);
GoldTree.GetGame().GetClientManager().method_14(Message4);
goto IL_C70;
示例10: method_42
private void method_42(RoomUser RoomUser_1, ThreeDCoord gstruct1_1, uint uint_2, double double_3)
{
ServerMessage Message = new ServerMessage();
Message.Init(230u);
Message.AppendInt32(RoomUser_1.int_3);
Message.AppendInt32(RoomUser_1.int_4);
Message.AppendInt32(gstruct1_1.x);
Message.AppendInt32(gstruct1_1.y);
Message.AppendInt32(0);
Message.AppendUInt(uint_2);
Message.AppendString("J");
Message.AppendInt32(RoomUser_1.VirtualId);
Message.AppendStringWithBreak(RoomUser_1.double_0.ToString().Replace(',', '.'));
Message.AppendStringWithBreak(double_3.ToString().Replace(',', '.'));
this.SendMessage(Message, null);
this.byte_0[RoomUser_1.int_3, RoomUser_1.int_4] = 1;
RoomUser_1.int_3 = gstruct1_1.x;
RoomUser_1.int_4 = gstruct1_1.y;
RoomUser_1.double_0 = double_3;
RoomUser_1.int_12 = gstruct1_1.x;
RoomUser_1.int_13 = gstruct1_1.y;
RoomUser_1.double_1 = double_3;
RoomUser_1.int_9 = 2;
this.byte_0[RoomUser_1.int_3, RoomUser_1.int_4] = 0;
this.method_87(RoomUser_1, false, true);
}
示例11: OnTrigger
public override void OnTrigger(GameClient Session, RoomItem RoomItem_0, int int_0, bool bool_0)
{
Room @class = RoomItem_0.method_8();
RoomUser class2 = @class.GetRoomUserByHabbo(Session.GetHabbo().Id);
if (class2 != null && @class != null)
{
ThreeDCoord gstruct1_ = new ThreeDCoord(RoomItem_0.Int32_0 + 1, RoomItem_0.Int32_1);
ThreeDCoord gstruct1_2 = new ThreeDCoord(RoomItem_0.Int32_0 - 1, RoomItem_0.Int32_1);
ThreeDCoord gstruct1_3 = new ThreeDCoord(RoomItem_0.Int32_0, RoomItem_0.Int32_1 + 1);
ThreeDCoord gstruct1_4 = new ThreeDCoord(RoomItem_0.Int32_0, RoomItem_0.Int32_1 - 1);
if (ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_) && ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_2) && ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_3) && ThreeDCoord.smethod_1(class2.GStruct1_0, gstruct1_4))
{
if (class2.bool_0)
{
class2.method_4(RoomItem_0.GStruct1_0);
}
}
else
{
int num = RoomItem_0.Int32_0;
int num2 = RoomItem_0.Int32_1;
if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_))
{
num = RoomItem_0.Int32_0 - 1;
num2 = RoomItem_0.Int32_1;
}
else
{
if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_2))
{
num = RoomItem_0.Int32_0 + 1;
num2 = RoomItem_0.Int32_1;
}
else
{
if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_3))
{
num = RoomItem_0.Int32_0;
num2 = RoomItem_0.Int32_1 - 1;
}
else
{
if (ThreeDCoord.smethod_0(class2.GStruct1_0, gstruct1_4))
{
num = RoomItem_0.Int32_0;
num2 = RoomItem_0.Int32_1 + 1;
}
}
}
}
if (@class.method_37(num, num2, true, true, true, true, false, false, false))
{
List<RoomItem> list_ = new List<RoomItem>();
list_ = @class.method_93(num, num2);
double double_ = @class.method_84(num, num2, list_);
ServerMessage Message = new ServerMessage(230u);
Message.AppendInt32(RoomItem_0.Int32_0);
Message.AppendInt32(RoomItem_0.Int32_1);
Message.AppendInt32(num);
Message.AppendInt32(num2);
Message.AppendInt32(1);
Message.AppendUInt(RoomItem_0.uint_0);
Message.AppendByte(2);
Message.AppendStringWithBreak(double_.ToString());
Message.AppendString("M");
@class.SendMessage(Message, null);
@class.method_81(RoomItem_0, num, num2, double_);
}
}
}
}
示例12: method_19
internal void method_19(string string_0, uint uint_1)
{
ServerMessage Message = new ServerMessage(134u);
Message.AppendUInt(uint_1);
Message.AppendString(string_0);
this.method_25().SendMessage(Message);
}
示例13: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
ServerMessage Message = new ServerMessage(827u);
string text = Event.ToString().Split(new char[]
{
' '
})[1];
if (text.ToLower().Contains("pet"))
{
int num = Convert.ToInt32(text.Substring(3));
Message.AppendStringWithBreak("a0 pet" + num);
switch (num)
{
case 0:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_0"));
break;
case 1:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_1"));
break;
case 2:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_2"));
break;
case 3:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_3"));
break;
case 4:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_4"));
break;
case 5:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_5"));
break;
case 6:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_6"));
break;
case 7:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_7"));
break;
case 8:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_8"));
break;
case 9:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_9"));
break;
case 10:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_10"));
break;
case 11:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_11"));
break;
case 12:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_12"));
break;
case 13:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_13"));
break;
case 14:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_14"));
break;
case 15:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_15"));
break;
case 16:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_16"));
break;
case 17:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_17"));
break;
case 18:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_18"));
break;
case 19:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_19"));
break;
case 20:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_20"));
break;
case 21:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_21"));
break;
case 22:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_22"));
break;
case 23:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_23"));
break;
case 24:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_24"));
break;
case 25:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_25"));
break;
case 26:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_26"));
break;
case 27:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_27"));
break;
case 28:
Message.AppendString(GoldTreeEnvironment.smethod_1("pet_breeds_28"));
break;
//.........这里部分代码省略.........
示例14: method_14
public ServerMessage method_14()
{
ServerMessage Message = new ServerMessage(140u);
Message.AppendStringWithBreak("I");
Message.AppendString("II");
Message.AppendInt32(0);
return Message;
}
示例15: method_15
public void method_15(ServerMessage Message5_0)
{
if (!this.bool_11)
{
Message5_0.AppendInt32(this.VirtualId);
Message5_0.AppendInt32(this.int_3);
Message5_0.AppendInt32(this.int_4);
Message5_0.AppendStringWithBreak(this.double_0.ToString().Replace(',', '.'));
Message5_0.AppendInt32(this.int_7);
Message5_0.AppendInt32(this.int_8);
Message5_0.AppendString("/");
try
{
foreach (KeyValuePair<string, string> current in this.Statusses)
{
Message5_0.AppendString(current.Key);
Message5_0.AppendString(" ");
Message5_0.AppendString(current.Value);
Message5_0.AppendString("/");
}
}
catch
{
}
Message5_0.AppendStringWithBreak("/");
}
}