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); } }
public override void OnTrigger(GameClient Session, RoomItem Item, int Request, bool UserHasRights) { if (UserHasRights && Session != null) { Item.method_9(); ServerMessage Message = new ServerMessage(651u); 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("K"); if (Item.string_3.Length > 0) { Message.AppendString(Item.string_3); } else { Message.AppendString("HHH"); } Message.AppendString("IK"); if (Item.string_6.Length > 0) { Message.AppendInt32(Convert.ToInt32(Item.string_6)); } else { Message.AppendInt32(0); } Message.AppendStringWithBreak("H"); Session.SendMessage(Message); } }