本文整理汇总了C#中GoldTree.Messages.ServerMessage.AppendRawInt32方法的典型用法代码示例。如果您正苦于以下问题:C# ServerMessage.AppendRawInt32方法的具体用法?C# ServerMessage.AppendRawInt32怎么用?C# ServerMessage.AppendRawInt32使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GoldTree.Messages.ServerMessage
的用法示例。
在下文中一共展示了ServerMessage.AppendRawInt32方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: method_2
public void method_2(GameClient Session, string string_0)
{
if (!this.method_0(string_0))
{
ServerMessage Message = new ServerMessage(213u);
Message.AppendRawInt32(0);
Session.SendMessage(Message);
}
else
{
DataRow dataRow = null;
using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
{
@class.AddParamWithValue("code", string_0);
dataRow = @class.ReadDataRow("SELECT * FROM vouchers WHERE code = @code LIMIT 1");
}
int num = (int)dataRow["credits"];
int num2 = (int)dataRow["pixels"];
int num3 = (int)dataRow["vip_points"];
this.method_1(string_0);
if (num > 0)
{
Session.GetHabbo().Credits += num;
Session.GetHabbo().method_13(true);
}
if (num2 > 0)
{
Session.GetHabbo().ActivityPoints += num2;
Session.GetHabbo().method_15(true);
}
if (num3 > 0)
{
Session.GetHabbo().VipPoints += num3;
Session.GetHabbo().method_14(false, true);
}
Session.SendMessage(new ServerMessage(212u));
}
}
示例2: method_33
//.........这里部分代码省略.........
if (class3.GetClient().GetHabbo() != null && class3.GetClient().GetHabbo().int_4 > 0)
{
class3.GetClient().GetHabbo().int_4--;
if (class3.GetClient().GetHabbo().int_4 == 0)
{
class3.GetClient().GetHabbo().bool_3 = false;
}
}
}
if (this.musicController != null)
{
this.musicController.Update(this);
}
class3.int_1++;
this.GetFreeze().CycleUser(class3);
num = 2;
if (!class3.bool_8 && class3.int_1 >= LicenseTools.int_14)
{
class3.bool_8 = true;
ServerMessage Message = new ServerMessage(486u);
Message.AppendInt32(class3.VirtualId);
Message.AppendBoolean(true);
this.SendMessage(Message, null);
}
num = 3;
if (class3.GetClient() == null && !class3.IsBot)
{
this.RoomUser_0[i] = null;
if (!class3.bool_1)
{
this.byte_0[class3.int_3, class3.int_4] = class3.byte_0;
}
ServerMessage Message2 = new ServerMessage(29u);
Message2.AppendRawInt32(class3.VirtualId);
this.SendMessage(Message2, null);
this.method_50();
}
num = 4;
if (class3.Boolean_2 && !list.Contains(class3.uint_0))
{
list.Add(class3.uint_0);
}
num = 5;
if (class3.CarryItemID > 0)
{
class3.int_6--;
if (class3.int_6 <= 0)
{
class3.CarryItem(0);
}
}
num = 6;
if (class3.bool_4 && class3.class34_1 == null)
{
num = 7;
if (class3.IsBot && class3.class34_0.RoomUser_0 != null && this.method_30(class3.int_12, class3.int_13, 0.0, true, true))
{
num = 8;
this.method_85(class3);
class3.int_3 = class3.int_12;
class3.int_4 = class3.int_13;
class3.double_0 = class3.double_1;
class3.class34_0.RoomUser_0.int_3 = class3.int_12;
class3.class34_0.RoomUser_0.int_4 = class3.int_13;
class3.class34_0.RoomUser_0.double_0 = class3.double_1 + 1.0;
class3.class34_0.RoomUser_0.bool_4 = false;
示例3: method_6
public void method_6(int int_17, bool bool_13)
{
RoomUser @class = this.method_52(int_17);
if (@class != null && @class.IsBot)
{
@class.BotAI.OnSelfLeaveRoom(bool_13);
ServerMessage Message = new ServerMessage(29u);
Message.AppendRawInt32(@class.VirtualId);
this.SendMessage(Message, null);
uint num = @class.uint_0;
for (int i = 0; i < this.RoomUser_0.Length; i++)
{
RoomUser class2 = this.RoomUser_0[i];
if (class2 != null && class2.uint_0 == num)
{
this.RoomUser_0[i] = null;
}
}
}
}
示例4: method_47
public void method_47(GameClient Session, bool bool_13, bool bool_14)
{
int num = 1;
if (Session != null && Session.GetHabbo() != null)
{
RoomUser @class = this.GetRoomUserByHabbo(Session.GetHabbo().Id);
if (@class != null)
{
this.GetRoomTeamManager().OnUserLeave(@class);
}
}
if (!bool_14 || !Session.GetHabbo().isJuniori)
{
if (this.bool_12)
{
if (bool_13 && Session != null)
{
if (bool_14)
{
ServerMessage Message = new ServerMessage(33u);
Message.AppendInt32(4008);
Session.SendMessage(Message);
}
ServerMessage Message5_ = new ServerMessage(18u);
Session.SendMessage(Message5_);
}
}
else
{
try
{
if (Session != null && Session.GetHabbo() != null)
{
num = 2;
RoomUser @class = this.GetRoomUserByHabbo(Session.GetHabbo().Id);
if (@class != null)
{
this.RoomUser_0[@class.int_20] = null;
@class.int_20 = -1;
this.byte_0[@class.int_3, @class.int_4] = @class.byte_0;
}
num = 3;
if (bool_13)
{
if (bool_14)
{
ServerMessage Message = new ServerMessage(33u);
Message.AppendInt32(4008);
Session.SendMessage(Message);
}
ServerMessage Message5_ = new ServerMessage(18u);
Session.SendMessage(Message5_);
}
num = 4;
if (@class != null && [email protected]_11)
{
if (@class.byte_1 > 0 && @class.GetClient() != null)
{
@class.GetClient().GetHabbo().method_24().int_0 = -1;
}
this.byte_0[@class.int_3, @class.int_4] = @class.byte_0;
if (!this.Boolean_3)
{
ServerMessage Message2 = new ServerMessage(700u);
Message2.AppendBoolean(false);
Session.SendMessage(Message2);
}
ServerMessage Message3 = new ServerMessage(29u);
Message3.AppendRawInt32(@class.VirtualId);
this.SendMessage(Message3, null);
if (this.method_74(Session.GetHabbo().Id))
{
this.method_78(Session.GetHabbo().Id);
}
num = 5;
if (Session.GetHabbo().Username.ToLower() == this.Owner.ToLower() && this.Boolean_0)
{
this.Event = null;
ServerMessage Logging = new ServerMessage(370u);
Logging.AppendStringWithBreak("-1");
this.SendMessage(Logging, null);
}
num = 6;
if (@class.class34_1 != null)
{
@class.class34_1.RoomUser_0 = null;
@class.class34_1 = null;
Session.GetHabbo().method_24().int_0 = -1;
}
Session.GetHabbo().method_11();
this.bool_10 = true;
this.method_51();
List<RoomUser> list = new List<RoomUser>();
for (int i = 0; i < this.RoomUser_0.Length; i++)
{
RoomUser class2 = this.RoomUser_0[i];
if (class2 != null && class2.IsBot)
{
list.Add(class2);
}
//.........这里部分代码省略.........