public static void setHandItem(ref roomUser User, string Item) { int ID = 0; if (int.TryParse(Item, out ID)) { try { string carryStatus = ""; string useStatus = ""; handItemType iType = handItemTypes[ID]; if (iType == handItemType.eat) { carryStatus = "carryf"; useStatus = "eat"; } else if (iType == handItemType.drink) { carryStatus = "carryd"; useStatus = "drink"; } else if (iType == handItemType.item) { carryStatus = "cri"; useStatus = "usei"; } User.removeStatus("dance"); User.addStatus("handitem", carryStatus, ID.ToString(), 120, useStatus, 12, 1); } catch { } } }
/// <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); }