本文整理汇总了C#中GoldTree.HabboHotel.GameClients.GameClient.SendNotif方法的典型用法代码示例。如果您正苦于以下问题:C# GameClient.SendNotif方法的具体用法?C# GameClient.SendNotif怎么用?C# GameClient.SendNotif使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类GoldTree.HabboHotel.GameClients.GameClient
的用法示例。
在下文中一共展示了GameClient.SendNotif方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (@class != null && (@class.AllowPet || @class.CheckRights(Session, true)))
{
uint uint_ = Event.PopWiredUInt();
Pet class2 = Session.GetHabbo().method_23().method_4(uint_);
if (class2 != null && !class2.PlacedInRoom)
{
int num = Event.PopWiredInt32();
int num2 = Event.PopWiredInt32();
if (@class.method_30(num, num2, 0.0, true, false))
{
if (@class.Int32_2 >= LicenseTools.int_2)
{
Session.SendNotif(GoldTreeEnvironment.smethod_1("error_maxpets") + LicenseTools.int_2);
}
else
{
class2.PlacedInRoom = true;
class2.RoomId = @class.Id;
List<RandomSpeech> list = new List<RandomSpeech>();
List<BotResponse> list2 = new List<BotResponse>();
@class.method_4(new RoomBot(class2.PetId, class2.RoomId, AIType.const_0, "freeroam", class2.Name, "", class2.Look, num, num2, 0, 0, 0, 0, 0, 0, ref list, ref list2, 0), class2);
if (@class.CheckRights(Session, true))
{
Session.GetHabbo().method_23().method_6(class2.PetId, @class.Id);
}
}
}
}
}
}
示例2: method_20
public RoomData method_20(GameClient Session, string string_0, string string_1)
{
string_0 = GoldTree.FilterString(string_0);
RoomData result;
if (!this.Models.ContainsKey(string_1))
{
Session.SendNotif("Sorry, this room model has not been added yet. Try again later.");
result = null;
}
else
{
if (this.Models[string_1].bool_0 && !Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club") && !Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip"))
{
Session.SendNotif("You must be an GoldTree Club member to use that room layout.");
result = null;
}
else
{
if (string_0.Length < 3)
{
Session.SendNotif("Room name is too short for room creation!");
result = null;
}
else
{
uint uint_ = 0u;
using (DatabaseClient @class = GoldTree.GetDatabase().GetClient())
{
@class.AddParamWithValue("caption", string_0);
@class.AddParamWithValue("model", string_1);
@class.AddParamWithValue("username", Session.GetHabbo().Username);
@class.ExecuteQuery("INSERT INTO rooms (roomtype,caption,owner,model_name) VALUES ('private',@caption,@username,@model)");
Session.GetHabbo().Class12_0.DataTable_10 = @class.ReadDataTable("SELECT * FROM rooms WHERE owner = @username ORDER BY Id ASC");
uint_ = (uint)@class.ReadDataRow("SELECT Id FROM rooms WHERE owner = @username AND caption = @caption ORDER BY Id DESC")[0];
Session.GetHabbo().method_1(@class);
}
result = this.method_12(uint_);
}
}
}
return result;
}
示例3: RedeemShell
public void RedeemShell(GameClient class16_1)
{
int num = 0;
List<UserItem> list = new List<UserItem>();
foreach (UserItem current in this.list_0)
{
if (current != null && (current.method_1().Name.StartsWith("PntEx_")))
{
string[] array = current.method_1().Name.Split(new char[]
{
'_'
});
int num2 = int.Parse(array[1]);
if (!this.list_1.Contains(current.uint_0))
{
if (num2 > 0)
{
num += num2;
}
list.Add(current);
}
}
}
foreach (UserItem current in list)
{
this.method_12(current.uint_0, 0u, false);
}
class16_1.GetHabbo().VipPoints += num;
class16_1.GetHabbo().method_14(false, true);
class16_1.SendNotif("All shells in your inventory have been converted back into " + num + " shells!");
}
示例4: method_9
//.........这里部分代码省略.........
i++;
Session.GetHabbo().CheckPetCountAchievements();
continue;
IL_4CF:
Session.GetHabbo().method_23().method_11(num, Item.UInt32_0, string_0, bool_0);
goto IL_4EA;
}
Session.GetHabbo().method_23().method_9(false);
return;
}
if (text == "e")
{
for (int i = 0; i < int_0; i++)
{
Session.GetHabbo().method_24().method_0(Item.Sprite, 3600);
}
return;
}
if (text == "h")
{
for (int i = 0; i < int_0; i++)
{
Session.GetHabbo().GetSubscriptionManager().method_3("habbo_club", 2678400);
Session.GetHabbo().CheckHCAchievements();
}
ServerMessage Message2 = new ServerMessage(7u);
Message2.AppendStringWithBreak("habbo_club");
if (Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
{
double num3 = (double)Session.GetHabbo().GetSubscriptionManager().method_1("habbo_club").Int32_0;
double num4 = num3 - GoldTree.GetUnixTimestamp();
int num5 = (int)Math.Ceiling(num4 / 86400.0);
int num6 = num5 / 31;
if (num6 >= 1)
{
num6--;
}
Message2.AppendInt32(num5 - num6 * 31);
Message2.AppendBoolean(true);
Message2.AppendInt32(num6);
}
else
{
for (int i = 0; i < 3; i++)
{
Message2.AppendInt32(0);
}
}
Session.SendMessage(Message2);
ServerMessage Message3 = new ServerMessage(2u);
if (Session.GetHabbo().Vip || LicenseTools.Boolean_3)
{
Message3.AppendInt32(2);
}
else
{
if (Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
{
Message3.AppendInt32(1);
}
else
{
Message3.AppendInt32(0);
}
}
if (Session.GetHabbo().HasFuse("acc_anyroomowner"))
{
Message3.AppendInt32(7);
}
else
{
if (Session.GetHabbo().HasFuse("acc_anyroomrights"))
{
Message3.AppendInt32(5);
}
else
{
if (Session.GetHabbo().HasFuse("acc_supporttool"))
{
Message3.AppendInt32(4);
}
else
{
if (Session.GetHabbo().Vip || LicenseTools.Boolean_3 || Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
{
Message3.AppendInt32(2);
}
else
{
Message3.AppendInt32(0);
}
}
}
}
Session.SendMessage(Message3);
return;
}
}
Session.SendNotif("Something went wrong! The item type could not be processed. Please do not try to buy this item anymore, instead inform support as soon as possible.");
}
示例5: method_6
public bool method_6(GameClient Session, int int_0, uint uint_1, string string_0, bool bool_0, string string_1, string string_2, bool bool_1)
{
CatalogPage @class = this.method_5(int_0);
if (@class == null || [email protected]_1 || [email protected]_0 || @class.uint_0 > Session.GetHabbo().Rank)
{
return false;
}
else
{
if (@class.bool_2 && (!Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club") || !Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_vip")))
{
return false;
}
else
{
CatalogItem class2 = @class.method_1(uint_1);
if (class2 == null)
{
return false;
}
else
{
uint num = 0u;
if (bool_0)
{
if (!class2.method_0().AllowGift)
{
return false;
}
if (Session.GetHabbo().method_4() > 0)
{
TimeSpan timeSpan = DateTime.Now - Session.GetHabbo().dateTime_0;
if (timeSpan.Seconds > 4)
{
Session.GetHabbo().int_23 = 0;
}
if (timeSpan.Seconds < 4 && Session.GetHabbo().int_23 > 3)
{
Session.GetHabbo().bool_15 = true;
return false;
}
if (Session.GetHabbo().bool_15 && timeSpan.Seconds < Session.GetHabbo().method_4())
{
return false;
}
Session.GetHabbo().bool_15 = false;
Session.GetHabbo().dateTime_0 = DateTime.Now;
Session.GetHabbo().int_23++;
}
using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
{
class3.AddParamWithValue("gift_user", string_1);
try
{
num = (uint)class3.ReadDataRow("SELECT Id FROM users WHERE username = @gift_user LIMIT 1")[0];
}
catch (Exception)
{
}
}
if (num == 0u)
{
ServerMessage Message = new ServerMessage(76u);
Message.AppendBoolean(true);
Message.AppendStringWithBreak(string_1);
Session.SendMessage(Message);
return false;
}
}
bool flag = false;
bool flag2 = false;
int int_ = class2.int_2;
if (Session.GetHabbo().Credits < class2.int_0)
{
flag = true;
}
if ((int_ == 0 && Session.GetHabbo().ActivityPoints < class2.int_1) || (int_ > 0 && Session.GetHabbo().VipPoints < class2.int_1))
{
flag2 = true;
}
if (flag || flag2)
{
ServerMessage Message2 = new ServerMessage(68u);
Message2.AppendBoolean(flag);
Message2.AppendBoolean(flag2);
Session.SendMessage(Message2);
return false;
}
else
{
if (bool_0 && class2.method_0().Type == 'e')
{
Session.SendNotif("You can not send this item as a gift.");
return false;
}
else
{
string text = class2.method_0().InteractionType.ToLower();
if (text != null)
{
//.........这里部分代码省略.........
示例6: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
Room Room = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
int AlreadyStaffPicks;
AlreadyStaffPicks = 0;
using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
{
if (dbClient.ReadDataRow("SELECT * FROM navigator_publics WHERE room_id = '" + Room.Id + "'") != null)
{
AlreadyStaffPicks = 1;
}
}
if (AlreadyStaffPicks == 0)
{
string Owner;
int OwnerID;
using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
{
Owner = dbClient.ReadString("SELECT owner FROM rooms WHERE id = '" + Room.Id + "'");
dbClient.ExecuteQuery("INSERT INTO `navigator_publics` (`bannertype`, `caption`, `room_id`, `category_parent_id`, `image`, `image_type`) VALUES ('1', '" + Room.Name + "', '" + Room.Id + "', '" + LicenseTools.int_16 + "', 'officialrooms_hq/staffpickfolder.gif', 'external')");
}
GameClient RoomOwner = GoldTree.GetGame().GetClientManager().GetClientByHabbo(Owner);
if (RoomOwner != null)
{
RoomOwner.GetHabbo().StaffPicks++;
RoomOwner.GetHabbo().CheckStaffPicksAchievement();
}
else
{
using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
{
OwnerID = dbClient.ReadInt32("SELECT id FROM users WHERE username = '" + Owner + "'");
dbClient.ExecuteQuery("UPDATE user_stats SET staff_picks = staff_picks + 1 WHERE id = '" + OwnerID + "' LIMIT 1");
}
}
using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
{
GoldTree.GetGame().GetNavigator().method_0(class5);
}
Session.SendNotif("Room added to Staff Picks successfully.");
}
else
{
using (DatabaseClient dbClient = GoldTree.GetDatabase().GetClient())
{
dbClient.ExecuteQuery("DELETE FROM `navigator_publics` WHERE (`room_id`='" + Room.Id + "')");
}
using (DatabaseClient class5 = GoldTree.GetDatabase().GetClient())
{
GoldTree.GetGame().GetNavigator().method_0(class5);
}
Session.SendNotif("Room removed from Staff Picks successfully.");
}
}
示例7: smethod_5
public static bool smethod_5(GameClient Session, string Input)
{
string[] Params = Input.Split(new char[]
{
' '
});
GameClient TargetClient = null;
Room class2 = Session.GetHabbo().CurrentRoom;
if (!GoldTree.GetGame().GetRoleManager().dictionary_4.ContainsKey(Params[0]))
{
return false;
}
else
{
try
{
int num;
if (class2 != null && class2.CheckRights(Session, true))
{
num = GoldTree.GetGame().GetRoleManager().dictionary_4[Params[0]];
if (num <= 33)
{
if (num == 8)
{
class2 = Session.GetHabbo().CurrentRoom;
if (class2.bool_5)
{
class2.bool_5 = false;
}
else
{
class2.bool_5 = true;
}
GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
return true;
}
if (num == 33)
{
class2 = Session.GetHabbo().CurrentRoom;
if (class2 != null && class2.CheckRights(Session, true))
{
List<RoomItem> list = class2.method_24(Session);
Session.GetHabbo().method_23().method_17(list);
Session.GetHabbo().method_23().method_9(true);
GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input + " " + Session.GetHabbo().CurrentRoomId);
return true;
}
return false;
}
}
else
{
if (num == 46)
{
class2 = Session.GetHabbo().CurrentRoom;
try
{
int num2 = int.Parse(Params[1]);
if (Session.GetHabbo().Rank >= 6u)
{
class2.UsersMax = num2;
}
else
{
if (num2 > 100 || num2 < 5)
{
Session.SendNotif("ERROR: Use a number between 5 and 100");
}
else
{
class2.UsersMax = num2;
}
}
}
catch
{
return false;
}
GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
return true;
}
if (num == 53)
{
class2 = Session.GetHabbo().CurrentRoom;
GoldTree.GetGame().GetRoomManager().method_16(class2);
GoldTree.GetGame().GetClientManager().method_31(Session, Params[0].ToLower(), Input);
return true;
}
}
}
switch (GoldTree.GetGame().GetRoleManager().dictionary_4[Params[0]])
{
case 2:
{
if (!Session.GetHabbo().HasFuse("cmd_alert"))
{
return false;
}
string TargetUser = Params[1];
TargetClient = GoldTree.GetGame().GetClientManager().GetClientByHabbo(TargetUser);
//.........这里部分代码省略.........
示例8: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
if (Session.GetHabbo().uint_2 > 0u && Session.GetHabbo().bool_5)
{
RoomData @class = GoldTree.GetGame().GetRoomManager().method_12(Session.GetHabbo().uint_2);
if (@class != null)
{
if (@class.Model == null)
{
Session.SendNotif("Error loading room, please try again soon! (Error Code: MdlData)");
Session.SendMessage(new ServerMessage(18u));
Session.method_1().method_7();
}
else
{
Session.SendMessage(@class.Model.method_1());
Session.SendMessage(@class.Model.method_2());
Room class2 = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().uint_2);
if (class2 != null)
{
Session.method_1().method_7();
ServerMessage Message = new ServerMessage(30u);
if (class2.Class28_0.string_2 != "")
{
Message.AppendStringWithBreak(class2.Class28_0.string_2);
}
else
{
Message.AppendInt32(0);
}
Session.SendMessage(Message);
if (class2.Type == "private")
{
Hashtable hashtable_ = class2.Hashtable_0;
Hashtable hashtable_2 = class2.Hashtable_1;
ServerMessage Message2 = new ServerMessage(32u);
Message2.AppendInt32(hashtable_.Count);
foreach (RoomItem class3 in hashtable_.Values)
{
class3.method_6(Message2);
}
Session.SendMessage(Message2);
ServerMessage Message3 = new ServerMessage(45u);
Message3.AppendInt32(hashtable_2.Count);
foreach (RoomItem class3 in hashtable_2.Values)
{
class3.method_6(Message3);
}
Session.SendMessage(Message3);
}
class2.method_46(Session, Session.GetHabbo().bool_8);
List<RoomUser> list = new List<RoomUser>();
for (int i = 0; i < class2.RoomUser_0.Length; i++)
{
RoomUser class4 = class2.RoomUser_0[i];
if (class4 != null && (!class4.bool_11 && class4.bool_12))
{
list.Add(class4);
}
}
ServerMessage Message4 = new ServerMessage(28u);
Message4.AppendInt32(list.Count);
foreach (RoomUser class4 in list)
{
class4.method_14(Message4);
}
Session.SendMessage(Message4);
ServerMessage Message5 = new ServerMessage(472u);
Message5.AppendBoolean(class2.Hidewall);
Message5.AppendInt32(class2.Wallthick);
Message5.AppendInt32(class2.Floorthick);
Session.SendMessage(Message5);
if (class2.Type == "public")
{
ServerMessage Message6 = new ServerMessage(471u);
Message6.AppendBoolean(false);
Message6.AppendStringWithBreak(class2.ModelName);
Message6.AppendBoolean(false);
Session.SendMessage(Message6);
}
else
{
if (class2.Type == "private")
{
ServerMessage Message6 = new ServerMessage(471u);
Message6.AppendBoolean(true);
Message6.AppendUInt(class2.Id);
if (class2.CheckRights(Session, true))
{
Message6.AppendBoolean(true);
}
else
{
Message6.AppendBoolean(false);
}
Session.SendMessage(Message6);
ServerMessage Message7 = new ServerMessage(454u);
Message7.AppendBoolean(false);
@class.method_3(Message7, false, false);
Session.SendMessage(Message7);
//.........这里部分代码省略.........
示例9: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (@class != null && @class.method_26(Session) && (LicenseTools.Boolean_1 || !(@class.Owner != Session.GetHabbo().Username)))
{
string text = Event.PopFixedString();
string[] array = text.Split(new char[]
{
' '
});
if (array[0].Contains("-"))
{
array[0] = array[0].Replace("-", "");
}
uint uint_ = 0u;
try
{
uint_ = uint.Parse(array[0]);
}
catch
{
return;
}
UserItem class2 = Session.GetHabbo().method_23().method_10(uint_);
if (class2 != null)
{
string text2 = class2.method_1().InteractionType.ToLower();
if (text2 != null && text2 == "dimmer" && @class.method_72("dimmer") >= 1)
{
Session.SendNotif("You can only have one moodlight in a room.");
}
else if (text2 != null && text2 == "jukebox" && @class.method_72("jukebox") >= 1)
{
Session.SendNotif("You can only have one jukebox in a room.");
}
else
{
RoomItem RoomItem_;
if (array[1].StartsWith(":"))
{
string text3 = @class.method_98(":" + text.Split(new char[]
{
':'
})[1]);
if (text3 == null)
{
ServerMessage Message = new ServerMessage(516u);
Message.AppendInt32(11);
Session.SendMessage(Message);
return;
}
RoomItem_ = new RoomItem(class2.uint_0, @class.Id, class2.uint_1, class2.string_0, 0, 0, 0.0, 0, text3, @class);
if ([email protected]_82(Session, RoomItem_, true, null))
{
goto IL_32C;
}
Session.GetHabbo().method_23().method_12(uint_, 1u, false);
using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
{
class3.ExecuteQuery(string.Concat(new object[]
{
"UPDATE items SET room_id = '",
@class.Id,
"' WHERE Id = '",
class2.uint_0,
"' LIMIT 1"
}));
goto IL_32C;
}
}
int int_ = int.Parse(array[1]);
int int_2 = int.Parse(array[2]);
int int_3 = int.Parse(array[3]);
RoomItem_ = new RoomItem(class2.uint_0, @class.Id, class2.uint_1, class2.string_0, 0, 0, 0.0, 0, "", @class);
if (@class.method_79(Session, RoomItem_, int_, int_2, int_3, true, false, false))
{
Session.GetHabbo().method_23().method_12(uint_, 1u, false);
using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
{
class3.ExecuteQuery(string.Concat(new object[]
{
"UPDATE items SET room_id = '",
@class.Id,
"' WHERE Id = '",
class2.uint_0,
"' LIMIT 1"
}));
}
}
IL_32C:
if (Session.GetHabbo().CurrentQuestId == 14u)
{
GoldTree.GetGame().GetQuestManager().ProgressUserQuest(14u, Session);
}
}
}
}
}
示例10: method_16
public void method_16(GameClient Session, uint uint_0, string string_0, bool bool_0)
{
GameClient @class = GoldTree.GetGame().GetClientManager().method_2(uint_0);
if (@class != null && @class.GetHabbo().Id != Session.GetHabbo().Id)
{
if (bool_0 && @class.GetHabbo().Rank >= Session.GetHabbo().Rank)
{
Session.SendNotif(GoldTreeEnvironment.smethod_1("mod_error_permission_caution"));
bool_0 = false;
}
@class.SendNotif(string_0, 0);
if (bool_0)
{
using (DatabaseClient class2 = GoldTree.GetDatabase().GetClient())
{
class2.ExecuteQuery("UPDATE user_info SET cautions = cautions + 1 WHERE user_id = '" + uint_0 + "' LIMIT 1");
}
}
}
}
示例11: method_17
public void method_17(GameClient Session, uint uint_0, int int_0, string string_0)
{
GameClient @class = GoldTree.GetGame().GetClientManager().method_2(uint_0);
if (@class != null && @class.GetHabbo().Id != Session.GetHabbo().Id)
{
if (@class.GetHabbo().Rank >= Session.GetHabbo().Rank)
{
Session.SendNotif(GoldTreeEnvironment.smethod_1("mod_error_permission_ban"));
}
else
{
double double_ = (double)int_0;
GoldTree.GetGame().GetBanManager().method_2(@class, Session.GetHabbo().Username, double_, string_0, false);
}
}
}
示例12: method_15
public void method_15(GameClient Session, uint uint_0, string string_0, bool bool_0)
{
GameClient @class = GoldTree.GetGame().GetClientManager().method_2(uint_0);
if (@class != null && @class.GetHabbo().CurrentRoomId >= 1u && @class.GetHabbo().Id != Session.GetHabbo().Id)
{
if (@class.GetHabbo().Rank >= Session.GetHabbo().Rank)
{
Session.SendNotif(GoldTreeEnvironment.smethod_1("mod_error_permission_kick"));
}
else
{
Room class2 = GoldTree.GetGame().GetRoomManager().GetRoom(@class.GetHabbo().CurrentRoomId);
if (class2 != null)
{
class2.method_47(@class, true, false);
if (!bool_0)
{
@class.SendNotif(string_0);
using (DatabaseClient class3 = GoldTree.GetDatabase().GetClient())
{
class3.ExecuteQuery("UPDATE user_info SET cautions = cautions + 1 WHERE user_id = '" + uint_0 + "' LIMIT 1");
}
}
}
}
}
}
示例13: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
CatalogPage @class = GoldTree.GetGame().GetCatalog().method_5(Event.PopWiredInt32());
if (@class != null && @class.bool_1 && @class.bool_0 && @class.uint_0 <= Session.GetHabbo().Rank)
{
if (@class.bool_2 && !Session.GetHabbo().GetSubscriptionManager().HasSubscription("habbo_club"))
{
Session.SendNotif("This page is for GoldTree Club members only!");
}
else
{
Session.SendMessage(@class.message5_0);
if (@class.string_1 == "recycler")
{
ServerMessage Message = new ServerMessage(507u);
Message.AppendBoolean(true);
Message.AppendBoolean(false);
Session.SendMessage(Message);
}
else
{
if (@class.string_1 == "club_buy")
{
ServerMessage Message2 = new ServerMessage(625u);
if (Session.GetHabbo().Vip)
{
Message2.AppendInt32(2);
Message2.AppendInt32(4535);
Message2.AppendStringWithBreak("HABBO_CLUB_VIP_1_MONTH");
Message2.AppendInt32(25);
Message2.AppendInt32(0);
Message2.AppendInt32(1);
Message2.AppendInt32(1);
Message2.AppendInt32(101);
Message2.AppendInt32(DateTime.Today.AddDays(30.0).Year);
Message2.AppendInt32(DateTime.Today.AddDays(30.0).Month);
Message2.AppendInt32(DateTime.Today.AddDays(30.0).Day);
Message2.AppendInt32(4536);
Message2.AppendStringWithBreak("HABBO_CLUB_VIP_3_MONTHS");
Message2.AppendInt32(60);
Message2.AppendInt32(0);
Message2.AppendInt32(1);
Message2.AppendInt32(3);
Message2.AppendInt32(163);
Message2.AppendInt32(DateTime.Today.AddDays(90.0).Year);
Message2.AppendInt32(DateTime.Today.AddDays(90.0).Month);
Message2.AppendInt32(DateTime.Today.AddDays(90.0).Day);
}
else
{
Message2.AppendInt32(4);
Message2.AppendInt32(4533);
Message2.AppendStringWithBreak("HABBO_CLUB_BASIC_1_MONTH");
Message2.AppendInt32(15);
Message2.AppendInt32(0);
Message2.AppendInt32(0);
Message2.AppendInt32(1);
Message2.AppendInt32(31);
Message2.AppendInt32(DateTime.Today.AddDays(30.0).Year);
Message2.AppendInt32(DateTime.Today.AddDays(30.0).Month);
Message2.AppendInt32(DateTime.Today.AddDays(30.0).Day);
Message2.AppendInt32(4534);
Message2.AppendStringWithBreak("HABBO_CLUB_BASIC_3_MONTHS");
Message2.AppendInt32(45);
Message2.AppendInt32(0);
Message2.AppendInt32(0);
Message2.AppendInt32(3);
Message2.AppendInt32(93);
Message2.AppendInt32(DateTime.Today.AddDays(90.0).Year);
Message2.AppendInt32(DateTime.Today.AddDays(90.0).Month);
Message2.AppendInt32(DateTime.Today.AddDays(90.0).Day);
Message2.AppendInt32(4535);
Message2.AppendStringWithBreak("HABBO_CLUB_VIP_1_MONTH");
Message2.AppendInt32(25);
Message2.AppendInt32(0);
Message2.AppendInt32(1);
Message2.AppendInt32(1);
Message2.AppendInt32(101);
Message2.AppendInt32(DateTime.Today.AddDays(30.0).Year);
Message2.AppendInt32(DateTime.Today.AddDays(30.0).Month);
Message2.AppendInt32(DateTime.Today.AddDays(30.0).Day);
Message2.AppendInt32(4536);
Message2.AppendStringWithBreak("HABBO_CLUB_VIP_3_MONTHS");
Message2.AppendInt32(60);
Message2.AppendInt32(0);
Message2.AppendInt32(1);
Message2.AppendInt32(3);
Message2.AppendInt32(163);
Message2.AppendInt32(DateTime.Today.AddDays(90.0).Year);
Message2.AppendInt32(DateTime.Today.AddDays(90.0).Month);
Message2.AppendInt32(DateTime.Today.AddDays(90.0).Day);
}
Session.SendMessage(Message2);
}
}
}
}
}
示例14: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (@class != null && @class.CheckRights(Session, true))
{
Event.PopWiredInt32();
string text = GoldTree.FilterString(Event.PopFixedString());
string text2 = GoldTree.FilterString(Event.PopFixedString());
if (text2.Length > 255)
{
text2 = text2.Substring(0, 255);
}
int num = Event.PopWiredInt32();
string text3 = GoldTree.FilterString(Event.PopFixedString());
int num2 = Event.PopWiredInt32();
int num3 = Event.PopWiredInt32();
int num4 = Event.PopWiredInt32();
List<string> list = new List<string>();
StringBuilder stringBuilder = new StringBuilder();
for (int i = 0; i < num4; i++)
{
if (i > 0)
{
stringBuilder.Append(",");
}
string text4 = GoldTree.FilterString(Event.PopFixedString().ToLower());
if (text4 == ChatCommandHandler.smethod_4(text4))
{
list.Add(text4);
stringBuilder.Append(text4);
}
}
if (stringBuilder.Length > 100)
{
stringBuilder.Clear();
stringBuilder.Append("");
}
int num5 = 0;
int num6 = 0;
int num7 = 0;
int num8 = 0;
string a = Event.PlainReadBytes(1)[0].ToString();
Event.AdvancePointer(1);
string a2 = Event.PlainReadBytes(1)[0].ToString();
Event.AdvancePointer(1);
string a3 = Event.PlainReadBytes(1)[0].ToString();
Event.AdvancePointer(1);
string a4 = Event.PlainReadBytes(1)[0].ToString();
Event.AdvancePointer(1);
int num9 = Event.PopWiredInt32();
int num10 = Event.PopWiredInt32();
if (!(text != ChatCommandHandler.smethod_4(text)) && !(text2 != ChatCommandHandler.smethod_4(text2)) && text.Length >= 1 && (num9 >= -2 && num9 <= 1 && num10 >= -2 && num10 <= 1))
{
@class.Wallthick = num9;
@class.Floorthick = num10;
if (num >= 0 && num <= 2 && (num2 == 10 || num2 == 15 || num2 == 20 || num2 == 25 || num2 == 30 || num2 == 35 || num2 == 40 || num2 == 45 || num2 == 50 || num2 == 55 || num2 == 60 || num2 == 65 || num2 == 70 || num2 == 75 || num2 == 80 || num2 == 85 || num2 == 90 || num2 == 95 || num2 == 100))
{
FlatCat class2 = GoldTree.GetGame().GetNavigator().method_2(num3);
if (class2 != null)
{
if ((long)class2.MinRank > (long)((ulong)Session.GetHabbo().Rank))
{
Session.SendNotif("You are not allowed to use this category. Your room has been moved to no category instead.");
num3 = 0;
}
if (num4 <= 2)
{
if (a == "65")
{
num5 = 1;
@class.AllowPet = true;
}
else
{
@class.AllowPet = false;
}
if (a2 == "65")
{
num6 = 1;
@class.AllowPetsEating = true;
}
else
{
@class.AllowPetsEating = false;
}
if (a3 == "65")
{
num7 = 1;
@class.AllowWalkthrough = true;
}
else
{
@class.AllowWalkthrough = false;
}
@class.method_22();
if (a4 == "65")
{
num8 = 1;
@class.Hidewall = true;
}
//.........这里部分代码省略.........
示例15: Handle
public void Handle(GameClient Session, ClientMessage Event)
{
Room @class = GoldTree.GetGame().GetRoomManager().GetRoom(Session.GetHabbo().CurrentRoomId);
if (@class != null && Session != null)
{
if (Session.GetHabbo().bool_3)
{
Session.SendNotif(GoldTreeEnvironment.smethod_1("error_muted"));
}
else
{
if (Session.GetHabbo().HasFuse("ignore_roommute") || [email protected]_4)
{
string text = GoldTree.FilterString(Event.PopFixedString());
string text2 = text.Split(new char[]
{
' '
})[0];
string text3 = text.Substring(text2.Length + 1);
text3 = ChatCommandHandler.smethod_4(text3);
RoomUser class2 = @class.GetRoomUserByHabbo(Session.GetHabbo().Id);
RoomUser class3 = @class.method_56(text2);
if (Session.GetHabbo().method_4() > 0)
{
TimeSpan timeSpan = DateTime.Now - Session.GetHabbo().dateTime_0;
if (timeSpan.Seconds > 4)
{
Session.GetHabbo().int_23 = 0;
}
if (timeSpan.Seconds < 4 && Session.GetHabbo().int_23 > 5 && !class2.IsBot)
{
ServerMessage Message = new ServerMessage(27u);
Message.AppendInt32(Session.GetHabbo().method_4());
Session.SendMessage(Message);
Session.GetHabbo().bool_3 = true;
Session.GetHabbo().int_4 = Session.GetHabbo().method_4();
return;
}
Session.GetHabbo().dateTime_0 = DateTime.Now;
Session.GetHabbo().int_23++;
}
ServerMessage Message2 = new ServerMessage(25u);
Message2.AppendInt32(class2.VirtualId);
Message2.AppendStringWithBreak(text3);
Message2.AppendBoolean(false);
if (class2 != null && !class2.IsBot)
{
class2.GetClient().SendMessage(Message2);
}
class2.Unidle();
if (class3 != null && !class3.IsBot && (class3.GetClient().GetHabbo().list_2.Count <= 0 || !class3.GetClient().GetHabbo().list_2.Contains(Session.GetHabbo().Id)))
{
class3.GetClient().SendMessage(Message2);
if (LicenseTools.Boolean_4 && !Session.GetHabbo().isJuniori)
{
using (DatabaseClient class4 = GoldTree.GetDatabase().GetClient())
{
class4.AddParamWithValue("message", "<Whisper to " + class3.GetClient().GetHabbo().Username + ">: " + text3);
class4.ExecuteQuery(string.Concat(new object[]
{
"INSERT INTO chatlogs (user_id,room_id,hour,minute,timestamp,message,user_name,full_date) VALUES ('",
Session.GetHabbo().Id,
"','",
@class.Id,
"','",
DateTime.Now.Hour,
"','",
DateTime.Now.Minute,
"',UNIX_TIMESTAMP(),@message,'",
Session.GetHabbo().Username,
"','",
DateTime.Now.ToLongDateString(),
"')"
}));
}
}
}
}
}
}
}