/// <summary> /// Places the prizes ontop of tile set 2 /// </summary> public void PlaceTiles2() { try { if (timeleft == 8000) { RoleplayManager.PlaceItemToRoomReturn(Convert.ToUInt32(prize1), SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 1].Tile2.X, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 1].Tile2.Y, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 1].Tile2.Z + 0.1, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 1].Tile2.Rot, false, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 1].Tile2.RoomId); } else if (timeleft == 6000) { RoleplayManager.PlaceItemToRoomReturn(Convert.ToUInt32(prize2), SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 2].Tile2.X, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 2].Tile2.Y, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 2].Tile2.Z + 0.1, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 2].Tile2.Rot, false, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 2].Tile2.RoomId); } else if (timeleft == 4000) { RoleplayManager.PlaceItemToRoomReturn(Convert.ToUInt32(prize3), SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 3].Tile2.X, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 3].Tile2.Y, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 3].Tile2.Z + 0.1, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 3].Tile2.Rot, false, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 3].Tile2.RoomId); } else if (timeleft == 2000) { RoleplayManager.PlaceItemToRoomReturn(Convert.ToUInt32(prize4), SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 4].Tile2.X, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 4].Tile2.Y, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 4].Tile2.Z + 0.1, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 4].Tile2.Rot, false, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 4].Tile2.RoomId); } else if (timeleft == 0) { RoleplayManager.PlaceItemToRoomReturn(Convert.ToUInt32(prize5), SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 5].Tile2.X, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 5].Tile2.Y, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 5].Tile2.Z + 0.1, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 5].Tile2.Rot, false, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 5].Tile2.RoomId); } } catch { } }
/// <summary> /// Places the prizes ontop of tile set 1 /// </summary> public void PlaceTiles1() { try { if (timeleft > 8000) { RoleplayManager.PlaceItemToRoomReturn(Convert.ToUInt32(prize1), SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 1].Tile1.X, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 1].Tile1.Y, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 1].Tile1.Z + 0.1, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 1].Tile1.Rot, false, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 1].Tile1.RoomId); } if (timeleft > 6000) { RoleplayManager.PlaceItemToRoomReturn(Convert.ToUInt32(prize2), SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 2].Tile1.X, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 2].Tile1.Y, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 2].Tile1.Z + 0.1, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 2].Tile1.Rot, false, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 2].Tile1.RoomId); } if (timeleft > 4000) { RoleplayManager.PlaceItemToRoomReturn(Convert.ToUInt32(prize3), SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 3].Tile1.X, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 3].Tile1.Y, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 3].Tile1.Z + 0.1, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 3].Tile1.Rot, false, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 3].Tile1.RoomId); } if (timeleft > 2000) { RoleplayManager.PlaceItemToRoomReturn(Convert.ToUInt32(prize4), SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 4].Tile1.X, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 4].Tile1.Y, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 4].Tile1.Z + 0.1, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 4].Tile1.Rot, false, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 4].Tile1.RoomId); } if (timeleft > 0) { RoleplayManager.PlaceItemToRoomReturn(Convert.ToUInt32(prize5), SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 5].Tile1.X, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 5].Tile1.Y, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 5].Tile1.Z + 0.1, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 5].Tile1.Rot, false, SlotsManager.SlotsTilesData[Convert.ToInt32(slot.Id), 5].Tile1.RoomId); } } catch { } }