Dissi edit:
Should work, if not tell me wot error there is and ill fix it up.Code:case "Ch": // Ch + ONE-WAY-DOOR-FURNI-ID (answer: Dx + WIRE(FURNI-ID) + I + WIRE(ROOM-UID-OF-CLICKER)) (sprite: 'one_way_door*#) { if (Room == null || roomUser == null || _inPublicroom) return; int itemID = Encoding.decodeVL64(currentPacket.Substring(2)); Rooms.Items.floorItem Item = Room.floorItemManager.getItem(itemID); // Find the item. try { if (Room.floorItemManager.containsItem(itemID) && stringManager.getStringPart(Item.Sprite, 0, 12) == "one_way_door") { using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { string toll; toll = dbClient.getString("SELECT toll FROM rooms WHERE id = '" + _roomID + "'"); string owner; owner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'"); } Room.sendData("Dx" + Encoding.encodeVL64(itemID) + "I" + Encoding.encodeVL64(Room.roomID)); // Opens the gate, with green light Room.setSquareState(Item.X, Item.Y, 1, 1, virtualRoom.squareState.Open); roomUser.walkLock = true; switch (Item.Z) // Walk into the item { case 0: roomUser.goalY = Room.sqSTATE[Item.X, Item.Y + 1] == virtualRoom.squareState.Blocked ? Item.Y : Item.Y + 1; roomUser.goalX = Item.X; break; case 2: roomUser.goalX = Room.sqSTATE[Item.X - 1, Item.Y] == virtualRoom.squareState.Blocked ? Item.X : Item.X - 1; roomUser.goalY = Item.Y; break; case 4: roomUser.goalY = Room.sqSTATE[Item.X, Item.Y - 1] == virtualRoom.squareState.Blocked ? Item.Y : Item.Y - 1; roomUser.goalX = Item.X; break; case 6: roomUser.goalX = Room.sqSTATE[Item.X + 1, Item.Y] == virtualRoom.squareState.Blocked ? Item.X : Item.X + 1; roomUser.goalY = Item.Y; break; } roomUser.walkLock = false; while (true) if (roomUser.statusManager.containsStatus("mv")) break; Room.sendData("Dx" + Encoding.encodeVL64(itemID) + "H" + Encoding.encodeVL64(Room.roomID), 1000); Room.setSquareState(Item.X, Item.Y, 1, 1, virtualRoom.squareState.Blocked); using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { dbClient.runQuery("UPDATE users SET credits = credits - '" + toll + "' WHERE id = '" + userID + "'"); dbClient.runQuery("UPDATE users SET credits = credits + '" + toll + "' WHERE name = '" + owner + "'"); } _User.refreshValueables; break; } } catch { } break; } COMMAND: case "toll": { using (DatabaseClient dbClient = Eucalypt.dbManager.GetClient()) { string rowner; rowner = dbClient.getString("SELECT owner FROM rooms WHERE id = '" + _roomID + "'"); if (rowner == _Username) { string amount = Text.Substring(args[0].Length + 1); dbClient.runQuery("UPDATE rooms SET toll = '" + amount + "' WHERE id = '" + _roomID + "'"); } } break; }




What went through your mind while writing this? Did you think of anything when you clicked "Submit Reply"?

I said What?'s poof command wouldn't work for normal holograph sources. In his poof command it runs a query checking if the user is working, arrested, etc but in normal holograph it doesn't have working, arresting, etc.

