/// <summary> /// 79 - "AO" /// </summary> public void LOOKTO() { roomUser Me = Session.roomInstance.getRoomUser(Session.ID); if (!Me.hasStatus("sit") && !Me.hasStatus("lay")) // Can rotate { string[] Coords = Request.Content.Split(' '); int toX = int.Parse(Coords[0]); int toY = int.Parse(Coords[1]); Me.rotationHead = rotationCalculator.calculateHumanDirection(Me.X, Me.Y, toX, toY); Me.rotationBody = Me.rotationHead; Me.requiresUpdate = true; } }
/// <summary> /// 93 - "A]" /// </summary> public void DANCE() { roomUser Me = Session.roomInstance.getRoomUser(Session.ID); if (Me.hasStatus("sit") || Me.hasStatus("lay") || Me.hasStatus("swim")) // Can't dance right now { return; } string danceType = null; if (Request.Content.Length > 0) // Club dance { int danceID = Request.getNextWiredParameter(); if (danceID < 1 || danceID > 4 || !Session.User.hasFuseRight("fuse_use_club_dance")) { return; } danceType = danceID.ToString(); } Me.removeStatus("handitem"); Me.addStatus("dance", "dance", danceType, 0, null, 0, 0); }